How to access a column value in a Select list in a tabular presentation for each line

Hello

Environment: Using Oracle APEX v4.2.1 on an Oracle 11 g 2 DB

In a tabular presentation using the following example query, i.e.:

select
"EMPNO",
"EMPNO" EMPNO_DISPLAY,
"ENAME",
"HIREDATE",
"SAL",
"DEPTNO",
"MY_LOV"
from"#OWNER#"."EMP"

I need access to every line of my sub form of table, the EMPNO of this line value, within a list of selection (query based LOV) in the column "MY_LOV."

So, basically, the MY_LOV column in my table presentation, would be a list of selection (query based LOV) where MY_EMPNO =: EMPNO (first column in the select statement above), for each line of the tabular presentation.

With the help of a picture ( Tom's Blog ) and assuming 'Deptno' column here is actually my new column, i.e. "MY_LOV, I want to know how this list of selection based on lov query would be able to access each EMPNO down in the form of tables, i.e. 7839, 7698, 7782 etc.?

overview.png

Any help would be appreciated.

Thank you.

Tony.

Hi Tony,.

Take a look at the API APEX_ITEM for LOV

http://docs.Oracle.com/CD/E37097_01/doc/doc.42/e35127/apex_item.htm#AEAPI208

Kind regards

Brad

Tags: Database

Similar Questions

  • How to set the default value in the select list to cascaded

    Hello
    I use Denes Kubicek cascade example list of selection http://htmldb.oracle.com/pls/otn/f?p=31517:119

    And I want to give cascading the selection list with a default value. So, anyway, I use this application process:

    < pre >
    BEGIN
    OWA_UTIL.mime_header ("text/xml", FALSE);
    HTP.p ('Cache-Control: non-cache');
    HTP.p ('Pragma: non-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ("< select >");
    HTP.prn ("< option value ="' | 1 |) "" > ' | '- all employees-' | ' < / option > ");"

    FOR c IN (SELECT ename, empno
    WCP
    WHERE mgr =: cascading_selectlist_item_2)
    LOOP
    HTP.prn ("< option value ="' | c.empno |) '">' || c.Ename | ("< / option >");
    END LOOP;

    HTP.prn ("< / select >");
    END;
    < / pre >

    How can I select for example empno default 1000?
    Thanks in advance.
    Jacob

    Jakob,

    In this case, your default value is

    HTP.prn (')

    However, you can set the default value in the loop as you want. You just say that is your default - first, second, third...

    In the list select ajax there's no submit and no calculation of values then I assuem your default is the punch one you wan to display when a selection list has been changed?

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • I can't understand how to access my Creative Suite cloud computer crash. I pay every month for the student version, but it is not let me re - download now that my computer is fixed and back.

    I can't understand how to access my Creative Suite cloud computer crash. I pay every month for the student version, but it is not let me re - download now that my computer is fixed and back. Looking for help.

    Unfortunately, I was unable to trace any CC with this identification code Adobe is there any other Adobe ID in which you have saved CC? Please let us know

    Concerning

    Stéphane

  • Refreshing a report on the change in value of the selection list

    -Very well, this should be very easy, but I can't seem to do things.

    I have 2 items on a page: a list of selection and a report.

    The report contains a WHERE clause that uses the value of the selection list.

    So when I change the value of the selection list, the report needs to be recharged.

    I don't want to use a 'Redirect and set' when I change the selection list, because I don't think it's very pretty.

    So I created a dynamic action that updates the State when the selection list is changed.

    Now for the problem: the report get updated, but the new value of the selection list is not used!

    How can I make select the value of the item to be stored in session state?

    I can't find this option anywhere in the parameters of the dynamic action.

    Thank you.

    popovitsj wrote:

    How can I make select the value of the item to be stored in session state?

    I can't find this option anywhere in the parameters of the dynamic action.

    It is in the region of report definition: Page to submit items in the Source section.

  • How do I disable a text field or select list when I change record.

    Dear Sir.

    I created the form with the report when I insert the new record, then all ground are able to insert the value in the table.

    Here I want to when I change any folder, then a field as a TEXTFIELD or select list, which I should be disabled in the case of a CHANGE.



    How do I disable a text field or select list when I change record.



    Thank you

    CORINE

    Hello

    Edit the element... There is a Readonly tab... Enter the condition for readonly... for example... Suppose you have a hidden field P1_X for the primary key. To add the new record, this field will be null and for editting p1_x will have the primary key value...

    So you can make the condition as P1_X readonly IS not null...

    Kind regards
    Shijesh

  • get the value of a selection list

    I made a request and on a page, I have a selection list filled from a list of values (made with a sql statement select).
    on the same page, I have a report made after a select statement.

    How can I did... when I select an item in the selection list in the report show me the item that is selected in the select list

    example:
    Select list: select name of EMP

    List of reports:
    Select * from emp;

    When I click on the selection list and chose a name of the employee in the report show me the first name, middle name, address and everything in emp.

    I tried to use emp.name = 'selectlist.value' and it gives me the invalid number.
    tried with the selection list with submit but still without work.

    can someone give me an ideea? How the current value of the selection list can be put in select condition of a statement or something to do all this?

    Thank you

    E-mail: [email protected]
    name: Andrei


    a quick description

    Page rendering
    Regions
    Point of view: Page (1) template body

    * Report: emp (10)

    Display: Position of the region 01

    * HTML: EMP1 (20)
    * Report: search (30)

    Elements
    Region: research

    * 10: P4_X select list


    Lists of values

    * EMP_name



    is an element of the region of report research.
    search source report is select name, address from emp;
    and the list of values is select name from emp;

    Andrei,

    Change your selection of P4_X list and make a list of selection with Submit. Now edit the report in the form query

    SELECT name, first name, address of the emp, whose name is nvl(:P4_X,name);

    I hope this helps.

    Thank you
    Manish

  • How do I either set channel name of a graph of cluster or get a 1 d waveform chart to start different time (t0) for each line of the waveform?

    I have a chart single 2D out a conditional of a loop indexing output such that over the rows of the table are not the same size. -Basically, they have different starting and ending points and sizes. -Not so concerned by the endpoints, because as soon as I get correctly starting points, everything shows fall in place.

    The challenge is that when I try to have the variable t0 (start time) for each line, the wave of construction vi form would always keep each line at the same starting point.

    I used the approach bundled with success (the cluster approach ensures that each waveform starts at different times according to the guidelines of my t0 defined for each line) but then I'm not able to get in the channel names I could make using the graphical approach (wave generation) waveform.

    In essence what I get here, I'm losing here.

    Because I don't want one of my mentors, Bob and Altenbach have fed up with me I have attached a vi this time

    Attached VI shows a combination of the two attempts (first with the waveform graph) and then with the graph of cluster

    1. with the first (graphical waveform), I get my channel names as you wish, but the alignment of the wave is not correct.

    2. with the second (graphical cluster), the alignment is good, but I can't do the names of channel in the chart, even if they are present in the cluster.

    I read some reviews that mentions that attributes can be displayed with waveform and data Dynamics (not clsuters) so I guess that's why.

    I saw another report indicating the start time for a waveform 1 d will always remain the same for the rest lines defined for the first line even if changed for the following lines in a loop.

    So I guess my question is: what is the way around questions like that?

    First of all, let me be the first to the congratulate and thank you for finally posting a code!  I'm not 100% certain I understand your question or your code, but I have an idea, perhaps, of what you want to do, so I wrote a little VI who made something simple that could be relevant.

    You mention waveforms of different lengths and beginning at different times.  You also want everyone to have a unique attribute (although I'm not sure what you want to do with the attribute).  So, I did the following:

    1. Generated an array of 100-sample random to represent one second of a waveform.
    2. Created 4 waveforms on this 100-sample basis.  The first waveform (channel 0) is just these 100 points.  The second, 1 channel, is the concatenation of string 0 with the base of 100 samples, or a waveform "double".  Channel 2 is 1 string concatenated with the base, and channel 3 is 2 string concatenated with the base.
    3. In order to trace the four channels that they rest 'on' the other, the waveform has the number of the channel added to it.  Channel 3 is 3 + (4 copies of the basis of 100 points), a waveform 400-point random centered around a shift of 3.
    4. All channels have dt value 0.01 (but I guess I could have varied, as well).
    5. To make the channels start at different times, I started channel N N seconds before channel 0 (by subtracting the index of the loop, I, T0).
    6. For each channel, I created an attribute called "Chan" equal to "Channel N" (where N = 0, 1, 2 or 3, as the case may be).

    This is the plot that results. Scale X is the absolute time value (no Date) using the 24-hour HH: mmS format.  You can see that the plots are 1, 2, 3 and 4 seconds of time, and are offset from each other by a second.  I used the trace attributes to change the name to the respective attribute.

    The code to do this is very simple - I almost don't need to show it, because I think it is completely described by the text above, but this is here:

    Now, it was not that much faster that some of your previous posts, when you refused to your postcode, "guess us" what you wanted (but not to not correctly guess), you tried to "push" us in the right direction (still refuses to post code), and no one seemed very happy?

    Bob Schor

  • Get the selected value of a select list item in a tabular presentation.

    Hi, I have a tabular form and I'm trying to get the selected value of a select list item and store the selected value in a page element hidden elsewhere on the form of tables, so I can use this value.

    I already have something similar to the input on the tabular presentation elements.

    Get the initial values
    var line = $x_UpTill (this.triggeringElement, 'TR');
    numberOfItems var = $(' input [nom = "f12"]', ligne) [0];

    numberOfItems = 123456.123

    What I want to do is soemthing similar as above but capture the value of a select element in tabular form. I thought I could do something like:

    Get the selected value
    var line = $x_UpTill (this.triggeringElement, 'TR');
    numberOfItems var = $('selected [name = "f08"] .val ()', line) [0];

    But this method leaves the as undefined var numberOfItems.

    Please help me to find a way to identify the item 'select' in the tabular form called "f08" and get this value.

    I am a newbie to jQuery selectors etc...

    Thank you.

    Strange that you do not get an error when you run your 2nd selector.
    In any case for this kind of thing, see the HTML code of your tabular form and tell us what triggers, the element can be useful. Or better create an example at apex.oracle.com.
    In any case, I see two errors:
    (1) is there any html element "not selected" instead, the LOV in the APEX element has the select tag
    (2) you can not write a. val() inside a selector that you must place it after your selection.

    So I'd like to rewrite your code to:
    var line = $x_UpTill (this.triggeringElement, 'TR');
    numberOfItems = $("select_[nom_="f08"]",_row).val () var [0];

  • dynamically change the value of a selection list in the form based on a table

    Hi friends,

    I use a form based on a table. I want to display two fields in the form of lists of selection instead of text boxes and when a value

    in a select list is selected, the corresponding values will be included in the next list of selection. For example if Department

    value is selected in a selection list that employees in this Department will be included in the employee selection list. I saw a

    even using ajax to achieve this as a table in the Dene example application [click here | http://apex.oracle.com/pls/otn/f?p=31517:176:462842537250908:NO].

    Is it possible to achieve the same for a form based on a table.

    Thank you
    TJ

    Hi TJ.

    Take a look on: [http://apex.oracle.com/pls/otn/f?p=56976:4] - instructions are on the page

    Andy

  • How to access point password value

    I created two points where the element type is password.

    Name of the element is P1_PASS1 and P1_PASS2I

    In the PL/SQL code, I can't access the values ITEM P1_PASS1 and P1_PASS2

    I tried to debug too, but there is no value printed in the debug log.

    Actually, I want to call to a PL/SQL procedure where I need to pass the value as a variable. How to access values of these elements of password? I use 5 APEX

    Start

    wwv_flow. Debug ('test123');

    wwv_flow. Debug ('pass' |) V ('P1_PASS1'));

    p_testproc (V ('P1_PASS1'),: P1_RETVAL);

    end;

    If your problem is fixed?

  • How to set values in a select list dynamically according to the user action

    Hello

    I'm new to Apex. With the help of Apex 4.0 on Oracle 10 g. In my page, I will have a list of selected countries. According to the user selection value I have to display the States / provinces of this country in another selection list. States have to fetch the state_list table and the province of province_list table.

    Can someone tell me how to do this.

    n advance thanks

    Hello
    LoV using cascading as detailed here http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/bldapp_item.htm#HTMDB05014

    Kind regards

  • How do the value in a selection list to a text field without submit?

    Hi all

    I have a Select list that looks like:
    Select short_name | ' - ' || country d
    SHORT_NAME r
    of mo.eu_country
    order by 1

    Then I have a text field (persons with reduced mobility, saved state).

    What I want to do: when a country is selected in the list-> set the value of text field with the short name of the country from the selection list (short_name r).


    Anyone know how I can get this done? (should I use AJAX?)

    Kind regards
    Ana-Maria

    Here is alink to Scott Spendolini autopopulate generator:

    http://HTMLDB.Oracle.com/pls/OTN/f?p=33867:2:1496599659878861:no:

    I use it and it works fine.

  • Reset the value of the selection list

    APEX version: 4.2.2

    I'm fighting to implement a solution to reset the value of an element from the list of selection on a page in my application.

    I currently have about 4 pages in my application with a level of tabs with every page on its own tab.

    I have a report of Emp page that lists employees. The page contains an element of selection list for emp_no who submits the page when the value changes. The query for the list of selection queries the emp for name and emp_no table. It has:
    Display additional values: Yes
    Display Null values: Yes
    Display NULL value: all THE
    Return NULL value:
    (no value for the return NULL value)
    Page, in itself, works the way you want. During the first visit to the page, EVERYTHING is selected and the report shows all the EMOS. If I select a specific employee, the page refreshes with just this employee.

    On the Main page is another employee list report. The report has a link between the employee id column and the Emp report page. The link sets the value of Emp.emp_no to the value of Main.emp_no. It works very well so if I take emp hand 123, 123 shows Emp.emp_no and the report shows that retail for emp 123.

    The problem is when a specific employee has been selected previously from the homepage or the Emp page and I click on a tab to another page, say the status tab / page and then click on the tab of the page of the Emp. The current behavior of the page, is that it continues to show some used was previously selected regardless of how it has been set, either Emp or to the homepage page. I want to reset select Emp.emp_no ALL (or null) if I navigate to the page of the Emp to any other page except hand or Emp itself.

    I searched through the forums and tried to use processes at the level of the page and after region to reset the value of Emp.emp_no, but nothing has worked. I believe there is a 'simple' way to do it that doesn't require coding on each page to set Emp.emp_no on a null value before calling it.

    I would like ideas on solving this seemingly simple task that has managed to escape.

    Thanks in advance.

    cagora

    Use a query in your link for filtering the selection list. Create a compuation on the definition page of the selection to NULL list if the request is NULL > PL/SQL Expression >: APPLICATION IS NULL. In this way, you can check the list of selection gets nulled while accessing the page normally.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    https://Apex.Oracle.com/pls/Apex/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • Tabular presentation - defining a line just to the first of the default value.

    Hi all

    How to set a default tabular form only in the first row?
    When I click on "add row" I want the new line have an empty value.

    Thanks in advance.

    Hello

    When you add a new line to the shape of the table, all existing lines must be recorded in the database. You can, therefore, to verify the existence of these files and set the value of a page hidden as a result element. The default value for an item of tabular presentation can then rest on this hidden item.

    This is possible by setting the Source used for "Always,...» "on the hidden item called, say, P1_DEPTNO_DEFAULT, and the Source to something like:

    DECLARE
     X NUMBER;
    BEGIN
     SELECT COUNT(*) INTO X FROM EMP WHERE DEPTNO = :P1_DEPTNO;
     IF X > 0 THEN
      RETURN '';
     ELSE
      RETURN :P1_DEPTNO;
     END IF;
    END;
    

    It is a Type of Source of "body of the PL/SQL function.

    In this example, we will check if there are all the records with a DEPTNO value that matches the P1_DEPTNO EMP. If there is, then the tabular presentation must contain at least one line already, so we return an empty string. If there is no record, the tabular presentation should be empty, so return us the value of P1_DEPTNO.

    The default settings on the DEPTNO column in tabular form would then be:

    Default type: (name of the application or page element) Element
    Default: P1_DEPTNO_DEFAULT

    Andy

  • How to run to another page in a select list

    Hello

    I am newbie to APEX. Our version of the APEX is 5.0.2. Currently, I have a 7 page, which displays a selection list, of which user selects an element of value and then supposed to be directed to another page 8.  But nothing happens once I've selected only one item, say, he's not going anywhere.  Please let me know how I can fix the problem.  Thank you very much!

    Page 7, I turned "Go To Page 8" as:

    page7.PNG

    And then to page 8, I have:

    page8.PNG

    Best regards

    Hello

    Since you've already done this job, you probably realized that you need to add p7_study_name to Page elements field to submit and create a dynamic action related to this item (change), which updates the State of the list of sites.

    If you want to go to another page, when you select the item in the list, follow these steps:

    (1) create a dynamic action on p7_study_name, the Change event.

    (2) create a real action, Action: submit the page, button of request/name MY_REQUEST (or whatever you want).

    3) go to the processing Section and create logic to your page target Condition: Type Request = value, value MY_REQUEST

    Hope that helps.

    Pavel

Maybe you are looking for

  • notification of banner iPhone 6 freezes on ios10

    This happened to me twice since I upgraded my iPhone6 to Ios10.0.2. Banner notifications were frozen and remain in place on the top of the screen. No matter what you do, it won't move off the screen. The point of pain, is that even if you try to turn

  • Authentication problem of proxy server for the domain while accessing internet users?

    We have a problem in my company with the proxy server. We have an Isa proxy server to restrict some users who access the internet allow us some users and sites for them to access but some times it requires authentication for all users who have access

  • How could I have with windows MediaPlayer

    How could I have with windows MediaPlayer

  • fwss23. ISO - impossible to create bootable CD

    I'm trying to update the firmware of my Samsung SSD with the fwss23.iso of http://www-307.ibm.com/pc/support/site.wss/document.do?sitestyle=lenovo&lndocid=MIGR-69806 unfortunately I am not able to create bootable CDs by burning that ISO to a CDR. emp

  • Drive DVD keeps opening by itself

    Hello Since I bought my Dell computer in December drive keeps opening by itself regardless of whether or not there is a CD inside. As soon as I turn on the computer, it opens and opens again whenever I close. I checked properties which asserts that i