SELECT_LIST_FROM_QUERY_XL in table form

Hey,.

I created a SELECT_LIST_FROM_QUERY_XL element in my sub form of table, but when I click on "Add line", the coresponding to the new line element is null, not a selection list.

No idea why this is happening?

Here's my query for the form:

SELECT
    TLT.LABONUMMER, TLT.TEELTCODE,
    APEX_ITEM.SELECT_LIST_FROM_QUERY_XL(
                                    1,
                                    (select initcap(omschr) 
                                     from prt_teksten
                                     where groep = 'STDTEELT'
                                     AND OMSCHR IS NOT NULL
                                     AND CODE = TLT.TEELTCODE), 
                                    'select initcap(omschr) D, 
                                            code R
                                     from prt_teksten
                                     where groep = ''STDTEELT''
                                     AND OMSCHR IS NOT NULL
                                     ORDER BY OMSCHR')
                                    "Omschrijving",
 TLT.ZAAIDATUM,
 TLT.OOGSTDATUM
FROM 
 EXP_INOUT.CSLIM_TEELTEN_30 TLT 
WHERE 
  TLT.LABONUMMER = :P26_LABONUMMER

And here's a screenshot of what I get:

query.PNG

Version of the APEX is Application Express 4.0.2.00.07

Thanks in advance,

J

Hi Julijan,

Julijan wrote:

I have to return it especially as a CLOB, I guess she did this because I use a PART of the APEX.
What I need, is essentially that the user selects a value from the drop-down list, then clicking on submit, the new row is inserted in the database.

It is a wizard based as a right. Why you mix APEX_ITEM with assistant based in a table? As both use the APEX_APPLICATION. G_FXX tables for treatment there is clash with index and create a mess. There is no equivalent SELECT_LIST_FROM_QUERY_XL in tabular form based Wizard, but there is a solution, instead of the selection list using the popup LOV.

Create a LOV named in the shared components and associate it with the column popup LOV.

I hope this helps!

Kind regards

Kiran

Tags: Database

Similar Questions

  • How can I recover file in table form in a modal window with the id of the request.

    Dear all,

    I use Apex 4.2 worm.

    I've created classic report with 5 columns and add additional column with the name "ADD COMPONENT" link in classic report.

    I call in a table in a modal window, click on link add COMPONENT classic report. .

    Modal window is popup when I click on the link add COMPONENTS , but it does not have any record of respective "Reservation_id and Res_line_id" I have place in link add COMPONENT report Classic.

    How can I view respective folder of reservation_id and res_line_id in table form in the modal window.

    I create in my account. You can view using

    Workspace: APEX_ISSUE

    User:               [email protected]

    Password: kaushik1@34


    Application 71690 - questions

    Page not 13

    Tab: In the form of modal window.

    Thank you

    Hi Maxence,

    CORINE wrote:

    It is wounderfull but I use the Apex 4.2 worm. There is no dialogue option and page mode.

    So how can I do that in Apex 4.2 worm.

    Check this old similar thread that runs in 4.2 APEX where I explained step by step: How to extract the values inside the jquery element dialogue modal rigion

    Also check the options of the iframe for your application sholud be set to 'Allow' or ' Allow from same origin.

    Edit Application Properties-> security-> the browser-> Embed security Connectionwithsuchprocedures-> is set to 'Allow' or 'Allow same origin'

    Hope this helps you,

    Kind regards

    Jitendra

  • JHeadstart - how to configure the form to be modal window in the style of table-form available?

    JHeadstart release 11.1.2 Relase

    When you use the Application JHeadstart Editor, I chose "table-form" style of layout for the field.

    Issue. When the field editing either way, by clicking on the edit button, which will be the user to the form, is it possible to have the form opens in a modal window?  If Yes, where and how configure this option?

    Summary: currently, the flow is as follows: field displays in a table.  The user clicks on the button Edit and screen refreshes the field in a form.  What I want is to have the form to be displayed as a modal window with the table in the background.

    Thank you.


    I think you could do this with 2 different versions of the JHS group.  A configured as 'table' and set up the other as a 'form '.  Then, add a groupLink item in the table to open the form in a modal popup.  (you might even be able to link the group to itself, but then you will need to do some adaptations to prevent it to generate the default table-form link)

  • Refresh table-form query on table only for pages in .jsff

    I have a group being generated as a presentation of table form. I would like for the page of the table to always refresh, and submit the form to refresh page after.
    I saw a thread about how to do this on a .jspx page: Refresh table-form query on table only

    Unfortunately, this does not work for me because I use the .jsff pages and they do not have access to the facesContext. Does anyone know how to do this for a .jsff page?

    Thank you
    Michelle

    Michelle,

    The taskflow 11 ADF in the equivalent of the region of this expression would be

    #{jhsPageChanged and controllerContext.currentViewPort.viewId=='/MyGroupTaskFlow/MyGroupTable'}

    Unfortunately, this currently does not work because there is an error in the JhsNavigationHandlerImpl class we're going to fix in the next release.
    You can apply a work around by creating a subclass of JhsNavigationHandler and replace as follows:

    ' public Sub handleNavigation (FacesContext facesContext, string action,
    The string result)
    {
    String oldPageFragmentId = ControllerContext.getInstance () .getCurrentViewPort () .getViewId ();
    super.handleNavigation (facesContext, action, result);
    String newPageFragmentId = ControllerContext.getInstance () .getCurrentViewPort () .getViewId ();
    If (! oldPageFragmentId.equals (newPageFragmentId))
    {
    JsfUtils.storeOnRequest (JHS_PAGE_CHANGED, Boolean.TRUE);
    }
    }

    To use your subclass, create a custom template for the facesConfig.vm and modify the navigation Manager to use your subclass.

    Steven Davelaar,
    JHeadstart team.

  • ScrollBar in table form

    Is it possible to put the region in a table for a height/width set with a vertical scroll bar, allowing users to scroll the rows if several lines appear that what is permitted for the height?

    If this is not possible, is it possible to have a region move with the page? For example, I have 2 regions on the page (display in 2 columns). A region is an updated report which shows 25 rows of data in a spreadsheet pre-filled the other region is a region which list availability that users can use to help determine the data for information entry in region 1. The tabular presentation requires scrolling to display all records if then the user loses sight of the valuable information contained in region 2.

    Any help would be appreciated.

    Thank you!

    Hello

    Very quick and dirty will be added to your presentation tabular region header somethinglike

    and at the foot of the region

adjust the style width and height to your needs

But as table form is the same as classic report, you can use the method for example from this post
Scroll to report but I want the column headings to stay where they are

And if you look in the forum there is same more friendly messages

BR, JAri

Published by: jarola November 4, 2009 01:02

  • ORA-01445: cannot select ROWID, or sample, a view of join without key - preserved table form w/report and LOV

    I create a page "Form on a Table with Report" (APEX 5). Table I has 3 columns: cat_key, item_value, item_description. The cat_key is a foreign key in a table with columns cat_key, cat_value. I created the report and everything works fine.  The page of the report shows my domain cat_key in number, so I want it instead to display the cat_value. I change the field cat_key to a text based on LOV, select my LOV and now when I view the page of report I get the "'ORA-01445: cannot select ROWID from where sample, a join without key preserved table view ' error." The report uses the ROWID as a link to the edit page field.

    If I use the same tables and even shared LOV in a report page interactive, it works fine.

    What I am doing wrong?

    This is a limitation of the IR Apex will rewrite your query to a query that includes the lookup table and the columns. So now you have actually created a query on an inline view, which causes the error. You can see the query apex created when running in debug mode. APEX will join the table of choice with your primary table. For example from one of my IR:

    Select 'ID '...

    "MSL". "" HIS_COUNTRIES "=> my primary table

    ) ) b,

    (select rv_meaning d, rv_low_value r

    of msl_ref_codes_table

    where rv_domain = "JOHN".

    ) L1 = > query My LOV Lookup

    ...

    So, if possible, base your reports and forms on the real primary key, no rowid.

    You can also write the IR query with the search yourself:

    Select T1.rowid...

    of primary_table T1

    look_table L1

    ...

  • In table form, a dynamic action to disable and set of columns of text

    Hello!!

    With the help of APEX 4.2.6 with Oracle 11 g R2, someone I work with has a tabular presentation of the need to do the following:

    Tables has the following provision:

    When the user selects the UOM LOV Dollars, the rate must have related associated text box the amount set to 1.  We currently have JavaScript disable and set the background color, but fo rth elife of me that I can seem to help set the value...

    The code we have in dynamic action:

    < tt >

    ROW_ID = $(this.triggeringElement).attr('id').substr (4);

    If (. val() $(this.triggeringElement) == 2)

    {

    $(«#f04_» + row_id) prop ('readOnly', 'readonly');

    $(«#f04_» + row_id) prop ("class", "textinputdisabled");

    .Val (1) $("#f04_" + row_id);  < = Here's where we had the question...

    }

    on the other

    {

    $(«#f04_» + row_id) prop ("readOnly", false);

    $(«#f04_» + row_id) prop ("class", false);

    < /tt >

    Thank you

    Tony Miller
    Los Alamos, NM

    Hi Tony

    What exactly is the problem here? I have no problem setting the value using the method described above. There is even a '1' in the screenshot above, no doubt, which indicates that the value has been successfully changed.

    For ease of improved management, I'd use traversal Dynamics for the form element affected, rather than hard-code the ID (or go with a DA conditional with distinct actions of true/false), but the jQuery code to set the value is the same:

    var uom, rate;
    
    uom = $(this.triggeringElement);
    rate = uom.closest('tr').find('td[headers="RATE"] input');
    
    if (uom.val() === "USD") {
      rate
        .prop("readOnly", true)
        .addClass("textinputdisabled")
        .val("1");
    }
    else {
      rate
        .prop("readOnly", false)
        .removeClass("textinputdisabled");
    }
    

    (I used a static LOV in the column of the unit of MEASURE, so the value of '$' is 'USD' rather than '2').

  • Total of a column when the check box is selected in table form

    Hi all

    Total of a column when the checkbox is enabled in the form of tables, but is not work, help

    https://Apex.Oracle.com/pls/Apex/f?p=82062

    My credentials for my worksapce:

    https://Apex.Oracle.com/pls/apex/

    Workspace: GB

    USERNAE: [email protected]

    PASSWORD; GB

    Thank you.

    abb.JPG

    abcd.JPG

    abcde.JPG

    Kind regards

    GB

    Hi user13028844,

    user13028844 wrote:

    Please change your login username of "user13028844" to something meaningful. Reference: Video tutorial how to change username available

    The second button is a javascript function call, which is not a summary. the javascript function has a problem

    This function has the problem help me correct, whereas we can summarize the amount of lines checked

    I have made changes to your page. Check the "Display of Javascript" button, now it shows the correct amount for active items.

    Made the following changes:

    • The following are removed from the section "run when Page Loads:
    Declare
      p_qty          number;
      p_total_qty    number := 0 ;
    Begin
    for i in 1..APEX_APPLICATION.G_F01.COUNT LOOP
      select nvl(qty,0) qty into p_qty from DURATION
        where id = to_number(APEX_APPLICATION.G_F01(i));
       p_total_qty := p_total_qty + p_qty;
    end loop;
        --htp.prn(p_total_qty);
    htp.prn('');
    apex_application.g_print_success_message := 'Checked total qty:'||p_total_qty  ;
    End;
    

    NOTE: The section "run when Page Loads" is intended for JavaScript code to perform the loading of the Page and NOT PL/SQL code.

    • The following code removed from the section "Header HTML":
    
    

    This code was going nowhere, so removed and replaced with code below.

    • Added the following code in the section "function and Global Variable declaration:
    function enableButton() {
        // code goes here
    }
    
    function total_checked() {
       var total = 0; var qty = 0;
       $( 'input[name="f01"]' ).each(function() {
         if ( $(this).is(':checked') ){
           qty = $(this).closest('tr').find('td[headers="quantity"]').text();
           total += parseFloat(qty);
         }
       });
       alert("Checked Total Quantity : " + total);
    }
    

    Your APEX_ITEM. BOX calls a JS "enableButton" function, but it has no definition, dummy definition so added.

    Kind regards

    Kiran

  • Problem of update in table form (after validation fails)

    Hello.

    I have a problem on the shape of tables using APEX 4.2.5.

    Application page has a table and a filter element to filter results in a table.

    The default value of this element is 0 (zero). This means that all the records are retrieved.

    SQL WHERE clause look like where deptno = decode(:P1_deptno,0,deptno,:P1_deptno)

    I created testcase: https://apex.oracle.com/pls/apex/f?p=4000

    W: nlzoh

    SUP: test01

    P: test

    The application name is A1.

    Everything works fine (insert and update), until there are validation error - due to an incorrect value in the column form.

    If I add by example in the second row (ename BLAKE) in the column WORK 1111 - so it would look like MANAGER1111 I get a validation error.

    Then I remove 1111 so validation would be ok, form insert 16 records (all). I is not updated that one record, it inserts all records.

    This allways happens after the validation error.


    When there is no validation error, changed row is updated as expected

    Insert also didn't happen, when there are value DEPTNO in filter.

    So the unexpected result is because of that where would adopt.


    So I have two questions.

    1. Why does it inserts all lines after the validation error? When there is no validation error, only the changed rows are updated - even if there is no DEPTNO in the filter.

    -Why modified column id drop apex?

    2. How can I change where clause, so iz will not work correctly.


    I hope it's understandable.


    Kind regards

    Dean


    Hello

    I created a new shape similar to your condition. His work with no problems.

    Please check Page 2 of application A1

    BR,

    Patrick

  • Auto generation of serial number in table form

    Hi all

    I need to implement number line concept as in the Oracle Applications in my Apex a table

    (IE):

    If I create 3 files in tabular form, it should appear as shown below:

    Example
    Line number
    1Sample1
    2Example2

    line number must be a number that is automatically generated and must be a database column (ie), we need to show as text (saves the State) column in the form of tables since it is not editable by the user.

    "In case I have delete a record, it must be as shown below.

    Example
    Line number
    1Example2

    (IE) but I deleted the first record it should automatically change the line number of the second record to 1.

    and if I update the tabular presentation by adding another line, then it should appear as shown below:

    Example
    Line number
    1Example2
    2Sample3

    This functionality is achievable in apex? can someone help me?

    I use APEX 4.2.2.00.11 version.

    Thank you and best regards,

    Madonna

    Hey Madonna,

    ".t20Report" is a cass which refers to your report, I guess. Since you only have a single report, the index will be never greater than 1.

    What you want to do is to look at each line of the table in this report and to count the index of each line:

    $('.t20Report_tbody_tr').each (function () {}

    var i = $(this) .index () + 1 //javscript index is 0, sql is 1

    $(this) .find ('td [headers = "ORDNO"] input') .val (i)

    })

  • In table form. No data displayed

    Hello world

    I have a tabular presentation that uses elements of the application to query data. The user enters the page the first page that contains the calendar by clicking on any date. If the date has no records are attributed to him, the shape of paintings shows them to view/change/remove. If no data is found, it displays the message "no data found".

    I start a new session and access the page in a table by clicking the date without any registration. Then, when I go back to the first page (calendar) and click on the date that has affected records, the format of table shows all records. What's really weird is that it does not even show the message "no data found". I don't see the form with the names of column header.

    In debugging, I found the following info on the form:

    Print column headers

    loop lines: 0 line (s)

    paging

    All elements on the page, based on the same query appear successfully, then the query, as well as the item values are correct.

    Apex version: 4.0.2.00.07

    Please, help me to solve the problem!

    Elena

    Hello everyone,

    Just for information, the problem has been resolved. The problem is in the process of apex 'Add Row' that was used to create a new line in a tabular layout on a page load. As soon as I removed from the page and created a dynamic of action that runs the::AddRow() javascript instead of this function, all the records in the report have become visible.

    The conclusion: use this process 'Add a line' with caution because it can behave in a strange way.

    See you soon,.

    Elena

  • Dynamic action on the fields of forms in table form

    Hello guys.

    That I can see on the form fields in a table, I can't perform dynamic actions. What I want is to have an element of the selection list when in the change event, it changes the values for all the records in the report. For example if I have 40 records in this tabular form and I change the value of 'Open' to ' near the field called State, I want to see this change (status value of 'Open' close ') all rows in this tabular presentation. Is this sensible?

    Thank you very much, Bernardo.

    Hello Bernardo.

    There are several ways to accomplish what you want.

    -You can create a PL/SQL procedure to manage an update on all the rows according to the value of the value of your column. I wrote once a blog that can help you with that:

    http://vincentdeelen.blogspot.nl/2013/06/custom-multi-row-processing-using.html

    -You can create a dynamic action with javascript or jQuery to handle the change event.

    The first option is more secure because it is managed by the database, the second is more simple and example adjustable all the entire column for all rows displayed, without the need to refresh your tabular presentation, or your entire page. For course work, you should however have little validation at the end of the database. I also think that it is not possible to set the values of the rows that are not displayed, which would again require some PL/SQL for handling.

    If you need help setting up the dynamic action, please set up an example on apex.oracle.com.

    Kind regards

    Vincent

  • In table form, addition of line, enter the key

    I have a tabular presentation.  The user must enter the number of items; Sometimes one, sometimes thirty. There is a field to display in the report, i.e. 11111 22222 33333... By default, we can enter an element using the ten key pad, press TAB and jump on the add a line button, press ENTER and a new line is created.  But the cursor happened somewhere else in the form.  I would then put the Add button a line sets the cursor to the new line of tables so that the user can quickly add multiple numbers without having to use the mouse to click in each new domain. Thanks in advance...

    Also, is there anyway to notify if the user enters a number double?

    Hello

    I have add to your page sample 3 new JavaScript function in the HTML page header

    function validateAndAddNewRow(){
    
    /* get all input tags */
    var lInput=$("input[name=f06]");
    
    /* array to hold input values */
    var lValues=[]
    
    /* collect input values to array */
    lInput.each(function(i){
      lValues.push(this.value);
    });
    
    /* get unique values */
    lValues=$.unique(lValues);
    
    /* compare input count to unique values count */
    if(lInput.length !== lValues.length){
    
      /* if there is duplicate values */
      /* alert about duplicates and exit */
      alert("Duplicate values");
      return false;
    
    }
    
    /* no duplicates. so we add new row */
    addRow();
    
    /* set focus to last row */
    $("input[name=f06]:last").focus();
    
    }
    

    And add a line button target has changed

    javascript:validateAndAddNewRow();
    

    This seems to work ok in your example when I run with Firefox.

    I noticed that on page 3, you have little JavaScript in the HTML Body Page attribute.

    You should not write here all the JavaScript functions. You must fix this.

    After you have correct this problem and try my proposal in your own environment return message it works.

    If it doesn't, the control is there are JavaScript errors, for example by using Firebug.

    Kind regards

    Jari

  • The documents that I have inserted with SQL do not appear in table form

    Hi all -
    I have not tried to reproduce this on apex.oracle.com yet, as I think that this may be a question easily answered:

    I have a page with an LOV, a graphic and a shape table all based on the same table. Everything has been working fine without any problems. Today, I updated the table using SQL Developer and introduced a few new lines in the table. The LOV and the graphic on my page reflect the new lines that were inserted through SQL, but the tabular form is not seeing them. When I select a value LOV that must return some new lines, my tabular report shows simply no found data. If I copy the SQL of the tabular report definition and run it in SQL Developer, all the appropriate lines are returned.

    Maybe I don't understand tabular forms. Any way to solve this problem or do I need to refresh the Page? Is the problem with the ID of the LINE or something?

    All ideas are as much appreciated - thank you.
    John

    Useful is fine. I don't know if these things can be changed.

    Well, they say: ' it's always the last place you want! "? Some of them can make you tear your hair out.

    My approach is 1) to display as much data as possible to ensure that data values are what you think they are. Often, they are not. And, (2) 'believe the error message.

    Best wishes
    Howard

  • character string buffer too small error in table form

    Hi people,

    One of my tabular forms suddenly stopped working suddenly after 3 months of work perfectly. Then I ran into debugging and looks like something bad went my LOV like below:
         0.16968     0.00328     ...Execute Statement: begin begin SELECT TIME_DISPLAY D, TIME_RETURN R bulk collect into wwv_flow_utilities.g_display,wwv_flow_utilities.g_value FROM TS_HOURS ORDER BY 2; end; end;     4     
    8
         0.17292     0.03912     ...Execute Statement: begin begin select /*+ cardinality(t 10) */ disp, val bulk collect into wwv_flow_utilities.g_display,wwv_flow_utilities.g_value from table(wwv_flow_utilities.get_temp_lov_data(2)) t order by insert_order, disp; end; end;     4     
    100
         0.21211     0.00224     report error: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    I have looked around and I saw a few others with the same problems but nothing that has like mine. Could someone please help me to find what is the problem? Thank you.

    I use Apex 4.1.1

    Hello

    the LOVs are displayed as a row okay? I wonder if it's some kind of a problem with the tabular forms?

    Concerning
    André

  • Maybe you are looking for

    • Tips for an A60 - 181 RAM change - need information:------.

      I have an Equium A60-181 according to the specification, this is a P4 3.20 GHz HT with 2x256MB DDR RAM FSB 533 MHz and ATI 7000 IGP graphics processor.Since I bought it 5 years ago, I've had random blue screens of death, the corruption of the system

    • iMovie in El Capitan

      No longer can get from iMovie to iDVD on export. How do you burn iMovie on a DVD?

    • How can I see my object in image 3D of Labview optimization?

      Hey everybody, I am very new to Labviews interface and I was wondering how do I go about creating a VI (or sub - VI) to load my pre VRML file - which does not exist and display it using the 3D picture control. Looking for a very simple solution. Than

    • BlackBerry Curve 8520 smartphones... Strange symbol!

      Does anyone know what the little red line with a number next to it on the home screen? This is where the message notification and email notifications go. It did my head and I have no idea what it is, and the number continues to go up. He'd really app

    • Play TV DLNA

      Hello I have a Samsung 46C8700 led tv being dlna capable. I use Windows 8 Pro and I can easily broadcast video from the Explorer file to my Samsung TV using "Play To" File Explorer or media player. It's really amazing because it instantly plays the v