Pass values to a tabular presentation from a Popup window

Hi All-

I could use your help with a problem I encounter.

I created a tabular presentation (simple selection of the five fields in a table). One of the fields must call a popup window that will be used to return multiple values in the form of tables. I can't use a contextual list in this case, because it only returns a single value. I can get it works without problem on page elements.

How can I go on the field reference record current in the form of my popup window?

Here is my request on apex.com:
Here is the sample application:
http://Apex.Oracle.com/pls/Apex/f?p=15071:4

Workspace: XENAKIS
ID: MATHEW. [email protected]
PWD: matt2011

Your help would be greatly appreciated!

Hello

You can pass the names of items in a table for the popup and use some JavaScript to assign values to these elements by using something like

opener.document.getElementById(vItemId).value

* where vItemId can be a variable in the page Popup with the name of the element where the value should be returned.

--
Lavenu
MaxApex accommodation
http://www.maxapex.com

Tags: Database

Similar Questions

  • How to set values in a tabular presentation?

    Hi all

    Is it possible to set all column values in a tabular presentation of a button (or another element on the page)?

    I have a tabular form and when you click on a button, I want to set all the values in a column some (say Col2 below), the value of X. Any ideas on how can this be achieved?
    Please see my example here...


    In the form of:

    Col1 - Col2 - Col3
    1----------2-----------3
    1----------2-----------3
    1----------2-----------3


    The user clicks on a button, and the values in the form of tables are changed for this column.



    In the form of:

    Col1 - Col2 - Col3
    1----------X-----------3
    1----------X-----------3
    1----------X-----------3


    Thanks for any help.

    -Chris

    Haven't tried, but I think that:

    1 have the button call a javascript function onclick.

    2. the function should perform a loop on document.wwv_flow.fxx (where xx is the column number, assume that it is 03 for this example) and set (have not tried this but just guess offhand):

    function myFunc(pSomeValue) {
      for (i=0;i,pSomeValue);}
    
    Might take a few tweaks to get it right but something along those lines is what I'd try. 
    
  • setting the selection list values in the tabular presentation

    Hi all

    I have a form of a table with a column that contains lists of selection I need to set the values for all rows in the form of tables.
    I'm trying to set the values on the click of a button, but apparently not enough to work.

    Is there another way to do it, perhaps with javascript?

    Any help would be appreciated.

    Kind regards
    Cleo

    Cleo,

    He's working now, sorry I missed the fundamental thing that you try on a selection list and not entry, as says my above entry script...

    Just use this code

    $('select[name="f10"]').val('Y');
    
    //OR this if you need to loop through them
    
    function approveAll(){
       jQuery.each($('select[name="f10"]'), function(i) {
        this.value ='Y';
      });
    }
    

    It was me!

    Published by: VC on July 13, 2012 15:57

  • How to pass values to external applications to guests of dashboard?

    Any idea is appreciated.

    How can I pass values of the guests dashboard from external applications to the dashboard inviting so that the dashboard is filtred based on the values sent by external applications.

    Thanks in advance!

    Kris

    Kris,

    I am able to change the session variable and able to call external application dashboard, but I identified the prompt value changes do not. but finally I am able to find a solution for you.

    Use the following URL and he explained here

    http://localhost:9704/Analytics/saw.dll?dashboard&nquser=administrator&nqpassword=administrator&PortalPath=/shared/ABCD/_portal/Dash1&options=RMF&DSN=Madan

    CheminPortail is your dashboard location. / Shared/ABCD is the folder in which I recorded dashboards. Dash1 is my dashboard name.

    internally, this dashboard includes a lot of reports that use the session variable. After above that, I am able to update the session variable to the value I have given in the URL, DSN = value.

    You can observe here called the dashboard and happening of value, but its not updated to the prompt value. so this workaround is change the prompt,

    Replace the default - SQL result and place the code sql

    SELECT CASE WHEN 1 = 0 THEN ANOTHER VALUEOF Markets.Region (NQ_SESSION. DSN) END saw_0 OF paint

    again here Market.Region is a column in the presentation layer and paint material. After you complete this step, the command prompt displays always value in the default session variable.

    Now include reports and dashboard invites in the dashboard and run this url from external applications.

    http://localhost:9704/Analytics/saw.dll?dashboard&nquser=administrator&nqpassword=administrator&PortalPath=/shared/ABCD/_portal/Dash1&options=RMF&DSN=Madan

    It worked for me and blog it soon. If it works for you question mark as answered and mark my answers as being correct.

    Thank you
    -Madan

  • 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

  • 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

  • Tabular presentation - column to turn it off (with picture) based on another value of the column

    Hi all

    I haven't worked much on tabular forms and JS. I'm looking for help in this regard.

    I'm working on a tabular presentation. with several editable fields... I need to disable a column (just for this single line), which contains an image, based on a field of LOV (static) list) (Y/N). The image column must be disabled if the value is N.

    My SQL for the report is something like this: (will keep things simple)

    Select

    emp_id,

    emp_name,

    static_list,

    (case when STATIC_LIST = "Y" THEN ' < a title = "Edit SAMPLE TBL" href = "f?) p = & APP_ID.:10: & APP_SESSION.:NO:P10_EMP_ID, P10_EMP_NAME :'|| EMP_ID | «, » || EMP_NAME | "" "> < img src =" "#IMAGE_PREFIX #SAMPLE.gif" border = '0' (> < /a > ' other ' ' end) as disable_col, "

    dept_name

    of sample_table

    I scoured the topics in this forum. Most of them were made using the table ID f_001, f_002.

    I tried to follow the same path by inspecting the item but the disable_col does not have any ID.  Let's say, f_003 is for the static list and f_004 is assigned to dept_name.

    I tried dynamic actions, but it did not work. Read in a topic that dynamic action does not work on tables. So I chose this approach. Is there a simpler way to solve this?

    need your help on how to proceed with this scenario. Thank you in advance.

    Versions: Apex: 4.2, DB: 11 g

    Thank you

    Daniel

    Hi Daniel_A,

    Daniel_A wrote:

    I did my job in Page 4.

    If the IS_VALID column is select as 'Yes' then the column hyper must be enabled, allowing the user to click on it. If she chose the 'no', then the column Hyper must be disabled for this line.

    The initial question about toggle the hyperlink is resolved. Check your App-> Page 4 35160.

    This is done with the help of two dynamic actions:

    • DA first loading of the Page / after updating of region "tabular":

    Event: After refresh

    Selection type: region

    Region: The other 'tabular '.

    Condition: No strings attached

    Action: Run the JavaScript Code

    Fire on loading the Page: Yes

    Code:

    $( 'select[name="f08"]' ).each(function() {
      if ( $(this).val() === "N" ) {
        $(this).closest("tr").find('td[headers="HYPER"]').find("a").addClass("apex_disabled").unbind("click");
      }
    });
    

    Items concerned: no item affected

    • Second DA on the evolution of the selection list:

    Event: change

    Selection type: jQuery Selector

    jQuery Selector: select [name = "f08"]

    Condition: No strings attached

    Action: Run the JavaScript Code

    Fire on loading the Page: No.

    Code:

    var el = this.triggeringElement;
    if ( el.value === "N" ) {
        $(el).closest("tr").find('td[headers="HYPER"]').find("a").addClass("apex_disabled").unbind("click");
    } else {
        $(el).closest("tr").find('td[headers="HYPER"]').find("a").removeClass("apex_disabled").bind("click");
    }
    

    Items concerned: no item affected

    NOTE: as the original question/topic related to toggle the image link in the column, for the problem with the Page 5, please create a new thread with the details.

    Kind regards

    Kiran

  • What should I do for default values when a new line is created in a tabular presentation?

    Hello all-

    I have a tabular presentation that requires a few columns to be entered by the user when he or she creates a new line, but other fields in the column can just default to certain values.  How to set these values by default so that the user doesn't have to be bothered with enter no data except those which MUST be entered?

    An example:

    Form1

    CITY OF COUNTRIES IN THE REGION

    APAC JAPAN TOKYO

    SIDNEY AUSTRALIA, APAC

    APAC KOREA-SEOUL

    REGION is almost always APAC, then I want that by default.  The user can always adjust if necessary, but I want to put it to the user, only to save having to enter a value.  When the user clicks on the button to add a line, that I want to load this value immediately and leave the two empty fields so the user can enter what they want.

    Thank you!

    John

    Hello

    Go change this column.

    Under attributes of tabular form, you will find options to set the default value

    Kind regards
    Jari

  • is it possible to toggle an element of tabular presentation according to the value of an element of the second?

    Hello world

    I have a tabular presentation based on a collection.   The column c050 (f30 cards) will be either Y/N.  If it is there, then I would enable the column c024 (f24 cards) (which is be based on lov radio button).  If the value of c050 = N, then disable c024.   There are potentially as many lines, and the c024 element would only be enable / disabled for the specific line.   So if line 1 is c050 = Y line 2 is C050 = N then rank 1 c024 is activated and 2nd c024 is disabled.  Hope that makes sense.

    I created a dynamic action called turn HMS fields.

    event = CHANGE

    selection type = jquery selector

    jQuery selector = input [name = "f30"]

    the condition EQUAL to

    value Y

    true action1 - enable, picker jquery, input [name = "f24"]

    real action 2 - alert, you added a sort of HMS.   There may be additional data to enter.  Thank you

    fake Action1 - disable jquery selector, input [name = "f24"]

    false action2 - alert, no worries of hms.

    Alerts in both cases show correctly... but nothing seems to happen to f24... What am I doing wrong?

    Thank you

    AGH! This is the first time you mention, that there is a radio button!  That changes a lot! As you can see, the format is different (f24_0001_0001) than what we discussed (f24_0001).

    Radio buttons have their own quirks.  My bad, I should have asked what you had.  But since you said your selectors original input were I just thought they are fields of text or something like that.

    How replace you a right drop-down list so that you can see all the work?  And understand it fully.

    Then you can work on the radio button option.

    If you don't get there... I will ask you to install an example in apex.oracle.com and give me credentials to sign in and have a look.

    I could re - try the js on my side with a radio, but it will take time.

    So, just to be clear... f30 is a drop down and f24 is a radio?

    See this line:

    $x_disableItem ("f24_" + row, true);

    Will NEVER find the radio buttons because it lacks the 3rd 0001 and 0002 (how many options do you have?)

    So maybe try you like this:

    $x_disableItem ("f24_" + line + '_0001', true);

    $x_disableItem ("f24_" + line + "_0002", true);

    ... keep for options...

    Do the same for the fake, of course.

    But I think that this needs a better approach if you have radio buttons.  I just need to get out.

    OK, go try things...

    Thank you

    -Jorge

  • 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];

  • How can I pass values from one node to the other

    Give a standard and efficient way to pass values of the child to the parent

    Hai Prathap

    You can use the custom event to pass values from the children to the parent

  • Tabular presentation - PK_DISPLAY with name

    Hi all

    Request Express 4.2.4.00.08

    I have setup an example on apex.oracle.com.

    Workspace: BRENTDEMO

    user: demo

    PW:demo

    On page 2, I have a dynamic action

     jQuery.each($('input[name="f03"]'), function() {
         alert('Name = ' + $(this).val());
         var deptno =$(this).closest('tr').children('td[headers="DEPTNO_DISPLAY"]').find('input[name="f02"]').val()
         alert('deptno = ' + deptno);
    
     })
    

    If you use firebug on the page, the DEPTNO_DISPLAY column has no name/id associated so obviously that this action will not warn the correct value.  How I would go about assigning an id/name of the DEPTNO_DISPLAY column to retrieve the value.  I want to get this value it is because I have a how to remove custom that needs the PK ID.  (Not in this application example).

    I tried to make the column DEPTNO_DISPLAY a text field (changing names in dynamic action).  However, it gives an error message of "current version of the data in the database has changed since the user initiated the update process. version of current line identifier = "6FC404C2EDDB998C91CD7473B6DDA6A5" line application version identifier = "D3B1B18D31905688985A3EA6D5F82FB2" (line 1).

    On page 3, I tried to adjust the sql query to read

    select 
    "DEPTNO",
    "DEPTNO" DEPTNO_DISPLAY,
    "DNAME",
    "LOC",
    apex_item.text(10,deptno) as deptno_with_name
    from "#OWNER#"."DEPT"
    
    

    With dynamic Action

     jQuery.each($('input[name="f03"]'), function() {
         alert('Name = ' + $(this).val());
         var deptno =$(this).closest('tr').children('td[headers="DEPTNO_WITH_NAME"]').find('input[name="f10"]').val()
         alert('deptno = ' + deptno);
    
     });
    

    This allows all work fine, except when a validation fails on the page.  If you set Dname null and try to send the page, the following error message is displayed in the form of tables:

    error report:

    ORA-01403: no data found

    ORA-06510: PL/SQL: not supported by the user-defined exception

    Now, if you are populating Dname with what either, and you're trying to send the page again, you receive the following error message:

    Current version of the data in the database has changed since the user initiated the update process. version of current line identifier = "A884FA378C851786DDFE3A33709CB23C" line application version identifier = "6FC404C2EDDB998C91CD7473B6DDA6A5" (line 2)

    I tried searching forums and I believe that page 3 does not work because the mixture of apex_items and a Query (updateable report) "SQL" does not work.  Please correct me if that's wrong.

    Does anyone have a solution on how I can retrieve the value of DEPTNO? Is the best solution to use a tabular presentation manual?  If more information is needed, please let me know.

    Thank you

    Brett

    What about just using the text() td value?

    The javascript code for your dynamic action reads as as follows, and the alert shows what is desired:

     jQuery.each($('input[name="f03"]'), function() {
         alert('Name = ' + $(this).val());
         var deptno =$(this).closest('tr').children('td[headers="DEPTNO_DISPLAY"]').text();
         alert('deptno = ' + deptno);
    
     });
    
  • Navigate between the report and dashboard and pass values between another column

    Hello

    I have a question about navigate from 1 report to a dashboard page passing value from column 1 to column 2 in the second report...

    In OBIEE 11 G, I create link action report 1, column 1 and this link from the action is go to the content of the BI and the destination is a dashboard page, which has used 2 column as a dashboard and there are 3 reports that all use column 2 to filter. Now, the dashboard page 2 column is an alias for column 1 report 1, from the point of view of users, these are the same, but OBIEE point of view, they are different.

    My action link is able to access the dashboard, however, the value in column 1 which I clicked on run navigation, not are placed in column 2 as the line of dashboard does not receive this value when navigating...

    Since I can't put column 1 in dashboard 2, nor that I can put the 2 column in the report 1. Because our data model is done in the way that if I use column 1 or 2 in both cases, it will be o-ring...

    Is there a way around this problem?

    Let me know if I need to elaborate

    Thank you

    Hello

    You are going to have three main dashboard page (i.e., dashboad1, 2, 3) in the dashboard you will be having 3 different relationship with different column aliases (e.g. columnx_alias1, columnx_alias2, columnx_alias3) and you're going to have a dashboard more page say dashboardx a report with columnx. Now if you click on report of dashboard1 to go to dashboardx, click on report of dashboard2 also should go to dashboardx, click dashboard3 report should also go to dashboardx.

    1 > you can create 3 variable presentation for column 3 aliases and hide. {{{You can use the union query in sql result say columnx select from table where columnx='@{column1}' union select columnx table where columnx='@{column2}' union select columnx table where columnx='@{column3}'.
    2 > now you can hide these guests with variables.

    Please let me know if you are facing a problem.

    Thank you
    Yacoub

  • Change the value of the Variable presentation

    Hello
    If I want to change the value of the variable presentation, where I can change. Means that I need to check the value of the variable presentation and then I need to change the value of the variable presentation.
    I need help from anyone.
    Thanks in advance.

    When all the choices is selected past the value zero in the variable of presentation...

    Why not consult especially column by making it is fx as a presentation...

    in any case, if need be like that you can't pass null (persons) to your title. You should change it accordingly...

    create a column in the criteria, changing it is fx to: case when ' @{Pers_Var}' is null then 'people' else ' @{Pers_Var}' end

    Call the location of the column with the text in narrative mode, then add it to made available...

  • Insert/update of the lines in tabular form from one table to another table

    Hello

    I'm having a tabular presentation for a table (equip_test) with 2 columns (equip_id, equip_name). I create a new

    Button (submit_alt) in this tabular form. I need to insert or update lines that are changed in this table to form

    another table (equip_staging) when you press the submit_alt button. How can I do this? How can I identify which lines are

    Insert or update? The process of the page I am trying since this button is
    begin
    
    FOR i in 1..APEX_APPLICATION.G_F01.count
    
    LOOP
    insert into equip_staging values(APEX_APPLICATION.G_F02(i),APEX_APPLICATION.G_F03(i));
    END LOOP;
    
    end;
    But it does not work. Help, please

    Thank you

    TJ

    Unchecking (does not) the column is a problem. Use this SQL instead (which is included in my examples):

    SELECT empno,
              empno
           || apex_item.hidden (33, wwv_flow_item.md5 (ename, sal, job))
                                                                    empno_display,
           ename, sal, job
      FROM emp
    

    and join this column hidden from your display column. In this way, it should work. When you feel there is no data found message in the treatment in a table, it will mean that the id does not exist.

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

Maybe you are looking for

  • Various issues with M40X

    New list of questions for Satellite M40X user: (1) in standby mode doesn't work, the computer crashes, trying to get into stand-by. (2) all images are missing in Word 2002 documents when I discovered these documents (on M40X only). (3) computer speak

  • Has no model number I can find on the web page of Toshiba Satellite A85-S107

    HelloI have a toshiba satellite a85-s107, part No. psa82u-00r004z. Series No. 65430273 k.problem is that I can't find it on the page web toshoba obviously then nor drivers.It's a cell phone Factory reconditioned and I think it came from America, as s

  • "Not enough memory is available to process this command."

    I borrowed a friends "Age of Empires III" (I don't want to "try" before I "buy"), but I can't seem to load. I am running Windows 7, and when it runs the windows installer, I get the above message. I controlled via the Microsoft Web site and found tha

  • When I try to play Railroad Tycoon 3, I get a runtime error.

    I really want to play this game, and eveytime I try to start it it says Microsoft Visual C++ Runtime LibraryRuntime error!program: (name of program)abnormal termination of the program Please help me! Braden Hartsell

  • Microsoft has any link with solutions creative uk?

    creative solutions UK tried to scam me for £160 for "erase software that would have corrupted files and get a refund of 200 pounds of am scam that did not work. Like am, creative solutions of uk said they were a microsoft partner. Double scam!