Set the values in cascade LOV (Skillbuilders SuperLOV used)

Hello

I install a simple page with a SuperLOV cascading.

I'm trying to set the values of the first and the second SuperLOV based on the selection of a report.

After the selection, a javascript function is called that sets the variable state and browser session P1_EMPNO

function editRecord(pValue) {
   //set session state of P1_EMPNO to use in pl/sql query
   var a=new htmldb_Get();
   a.add('P1_EMPNO', pValue);
   var r=a.get();

   //set variable to trigger dynamic action
   $s('P1_EMPNO',pValue);
}

I use this point (P1_ITEM) to trigger a dynamic Action (when the value changes AND is not null) to SET the VALUE for the first LOV. This method works.

Then one created a second dynamic Action that uses the event AFTER REFRESH for the first LOV to SET the VALUE for the second SuperLOV. It does not work

Just to test the logic, I created a third standard LOV which is the same as the second SuperLOV and respective dynamic action. This one works.

It's the http://apex.oracle.com/pls/apex/f?p=49044:1 application

(PATRICK, demoadmin, 1234) application WORDERS.

I would be very grateful for any help

Thank you.

OK, I discovered what was going on.

I used a $('#P1_EMP').apex_super_lov of javascript for dynamic Action action to set the value of the SuperLOV.

Tags: Database

Similar Questions

  • How set the value of a LOV in CO prgramatically and get the Pkey value?

    Hello

    I need to get the Primaykey LOV will return and set a value for a LOV, say ItemLOV in a page through CO. How can I achieve this?

    Req:
    1. set the nom_element, say "DELL_1618" so that the page displays this in the LOV.
    2 get the PK value returned by LOV in the backend in an attribute of VO say Item_ID, ' 100009881'.

    Thank you
    Sicard.

    Hi Santosh,

    Sorry, I responded to general LOV scenario, but want to put it right,

    You need run your LOV query to the controller for the "DELL_1618" element using the prepared command, get the value of the value display and Id and assign the LOV and FormVlaue in the PR of the controller.

    Kind regards
    Out Sharma

  • Set the values of page under condition

    Hi all

    Need to value from DFF from other values in the page. It is a standard page on EBS (/ oracle/apps/by/self-service/personal information/webui/ContactsMainPG)

    And I think that the related VO is not based an EO.

    I tried to set the values of VO in processFormRequest by using row.setAttribute, but it throws null pointer exception. What can I do else?

    Any suggestion?

    Hello

    If the de FACTO Id is DescFF

    then the id of segments will be like DescFF1, DescFF2, DescFF3...

    Kind regards
    GYAN

  • LOV cascading does not work when you set the value of the parent LOV with DA

    Hi all

    Using APEX 4.2.2.

    I have tow LOVs

    LOV parent article is: P50_TYPE

    Child element LOV is: P50_PROJECT_ID

    In other words in the attributes of the element P50_PROJECT_ID, we have:

    > Cascade LOV Parent article (s): P50_TYPE

    > The items to show page: P50_TYPE

    > The list of values definition: something similar to:

    Select * from mytable where type =: P50_TYPE

    I use DA as run of the JS code to set the value of the P50_TYPE element

    something similar to:

    > $('#P50_TYPE').val (2);

    After doing this, the P50_PROJECT_ID element does not get updated when the P50_TYPE value changes. Namely, P50_PROJECT_ID remains empty, unless the end user manually changes the value of P50_TYPE.

    Any help please?

    Kind regards

    I had a similar experience, he expected a change event, so you can extend the jQuery to be included

    $('#P50_TYPE').val (2) .changes ();

  • How to set the value of a field from the LOV of another field.

    I'm trying to figure out how to set the value of a field (P_PROGRAM) to the value of another field of based lov (P_STATE).

    The P_PROGRAM field is a hidden field. The P_STATE field is a required field and is based on a list of values for the State Codes.

    When a user selects the State to P_STATE, the field of the P_PROGRAM should be set to this value, as well.

    I tried different ways to get there via a function call on the post for the calculation of the field P_STATE, defining the source P_PROGRAM to the value of the page item P_STATE put varialbles, creating a process before SENDING, and they all still come back as having a NULL value for P_PROGRAM, therefore impossible to create the file in the db as the PROGRAM is a mandatory field in the table.

    Can you please help? Thank you, Laura

    Laura,

    It is always helpful if you provide information about the Apex version you are using. The Apex 4 you can use Dynamic Actions to achieve this. In earlier versions is possible using processes to submit or javacsripts, as well.

    Heres how you do in 3.x with treatment to submit, to make it work in 4.0 as well.

    1 do the P_STATE ' select list submits the Page.
    2. Add a calculation on the point P_PROGRAM, or write to him assign a value based on a process. The treatment should be OnLoad after the header
    3. If the page does not have an unconditional branch that loops on itself, add a. NOTE: The direction must be the last branch (larger sequence number) and should have checked "Save Session State".

    This is what will happen
    a. when the State is selected Page will be submitted
    (b) it will take the unconditional branch to himself and save the value of P_STATE
    c. the calculation process / fills the value of the P_PROGRAM element when the page reloads

    Kind regards

  • How to use PL/SQL to create dynamic action to set the value of a selection by another list?

    Hello

    I would like to know how to use PL/SQL to create dynamic action to set the value of a list of selection by another selection list.

    1.PNG

    I wish can create dynamic action to manage the two above the Room select list (: P9_ROOM) and building (: P8_BUILDING).

    When you select "1074" in the bathroom, building highlights like "BRM BLD 5"

    When you select 'Area of the black box' in the room, building must assign the value "7 BLD BRM"

    When the room is Null, building should also be Null.

    I thank you,

    Alice

    I forgot to mention, for the PL/SQL Code, because you are working with items in the selection list, the return values are different from the display on your LOV values, you must instead use the return values.

    Thank you

    Erick

  • SET THE VALUE TO VALIDATE THE VALUE IN THE APEX

    GOOD DAY MASTER

    PLEASE HELP ME ON THIS


    I HAVE A POPUP LOV (NOM_ELEMENT) COME TO THE DATABASE VIEW
    UNDER THIS POPUP LOV, I CREATED AN ACTION DYNAMICS (SETPOINT)
    WHERE WHEN THE USER CLICKS THE POPUP LOV (ITEM_NAME) AND TAKE AN ARTICLE
    IT WILL SET THE VALUE OF QTY_LEFT1 TO THE NAME OF THE CORRESPONDING ELEMENT.

    AND AFTER THAT, I TRY TO QTY_PCS1 ENTRY ACTION DYNAMICS (ALERT IN QTY_PCS1)
    IT DOESN'T WORK ANYMORE... HIS ONLY WORKS ONLY WHEN THE QTY_LEFT1 HAVE A DEFAULT VALUE.
    IF THERE IS A WAY?

    HERE IS THE LINK OF MY SAMPLE APPLICATION WHICH IS MY REAL APPLICATION

    http://Apex.Oracle.com/pls/Apex/f?p=67079:1:1702076887505601:

    HELP PLEASE...

    Hi Mike

    Use this dynamic Action

    Event-> loose Focus
    Type of selection-> elements
    Article-> P1_QTY_PCS

    Action-> to run the JavaScript Code

    Enter the Code below:

    var a = document.getElementById("P1_QTY_LEFT").value;
    var b = document.getElementById("P1_QTY_PCS").value;

    If (b > a)
    {
    Alert ("upper Qty");
    }

  • Submit after selecting the value of Popup LOV

    Anyone know if it is possible to make the Popup LOV behave as the list select and resubmit the page after selecting a value?

    The Select list has an additional attribute in properties named "Page Action times changed value". One of the options for this attribute is "submit Page". This attribute is not available for Popup LOV, but I would like to be able to create the same behavior. The number of values that might be returned for this article is too many to use a Select list...

    I think I might be able to add a bit of Javascript somewhere and do a "onChange.submit ()" or something like that, but I'm not sure of the syntax, or where to put it.

    Any help gratefully received...

    TIA,
    Eric

    Hello Eric,

    Create a "dynamic Action" that fires when the value of Popup LOV is changed and set the Action to "submit Page".

    Thank you
    Machaan

  • How to set the value of a variable in automator?

    I'm totally new to automator I found a post that I try to reuse

    to Re: copy multiple files from TextEdit in one Word file

    I want to open a series of html files in a folder and convert in a TextEdit rtf file.

    However, I am unable to automator find out how set the value of a variable such that it appears in this post

    I looked at every command in library without a lot of fortune

    Any help?

    Thank you

    Dan

    Its in Utilities.

    In Automator, use the search box:

  • Set the value of the parameter in the call sequence by programming

    Is there a way to set the value of the parameters of a call sequence with a vi with the context of the sequence in the order which is called? Cases not the same subseqence with a vi in the mainsequence maybe?

    In your VI, I think you should be able to set the value of Step.TS.SData.ActualArgs.paranumber.Expr to the value of the setting that you want. (This property is visible in the Variables pane, only if you have configured the Options of Station to display hidden properties). Note that the purpose of the step should refer to the sequence of your call step.  Also, remember that the property represents an expression, so if you want to pass the value 33, you must enclose the value in quotes ("33").

    Jeff

  • Set the value of cluster control in secondary school

    Hello

    Is there a way to set the value of control from one cluster to a high school?

    I enclose my screw in LV8.0

    Charly

    If you have a reference to the VI being put into secondary (which there or it is not in the secondary, right?) you can use it to get a reference to the façade of the VI. This in turn will allow you to read an array of references to all the controls and indicators on the front of the Secondary VI. Cross this table by looking at the text property of the label: for each reference in the table until you find the one for the control of the cluster.

    Now, use the specific function to more class to convert reference generic control of the pole to a cluster reference. You can use it to get an array of all the controls within the cluster. Now, go through this table by looking at the text property of the label: for each reference in the table until you find the one for control quevous want to set and you are there...

    Mike...

  • Setting the value of a table of ActiveX control

    When controling a VI through ActiveX, how is possible to set the value of a table control?

    With digital controls, I have a problem: I just use SetControlValue and it works well:

    til SetControlValue ('y', 4) for example.

    However, in trying to do the same thing with a table, the control's value becomes an empty array:

    til SetControlValue ("arr', [3-4-5]") for example.

    What is the right way to do it?

    Hi Calvin,

    Have you tried passing a string and convert it to an array entry?  You can also try to use a 'matrix' control, rather than a table, as they are handled a little differently.

  • Is any way to allow the user, set the value of a null datetime-local field

    Dear all,

    During development, I found that it is not possible for the user to set the value of a field to enter a non-empty value to null datetime-local.

    Take for example, the monitoring scenario

    -User set a track the date and time for a task

    -L' user wants to erase track the date and time of the task.

    But the controller of out-of-the-box made by webworks offers no way for the user to clear the values in the input of datetime-local.

    I would like to know, is there additional information about this limitation, or actually, there is a way to do this?

    Any useful information would be appreciated on this topic.

    Kind regards.

    Lawrence.

    It is advisable to add a "Clear" next to your input control button?

    The input control only allows you to select values for the value.  'Nothing' is not a valid date.

  • Set the value of the page elements using apex.submit

    Hey,.

    Does anyone have an idea how to set the value of several page elements using apex.submit?

    Here is my request, she works for this element of the page, but I want to first the value of the other elements of the page (i.e. P30_SHOW_REF) as well.

    select s.nr as NRR, 
    '<input type="button" value="clickme2" onclick="document.getElementById(''BUTTONS'').style.display = ''block'';apex.submit({request:''SET'',set:{''P30_KLT_NR'':'||s.nr||'});"/>' Button 
    from klant s
    

    Thanks in advance!

    Hi Julijan,

    Here is the example:

    apex.submit({
      request:"DELETE",
      set:{"P1_DEPTNO":10, "P1_EMPNO":5433});
    

    Concerning

    J

  • How to set the value derived in the bean messagechoice

    Hello

    I have a requirement to set the value derived in messagechoice.

    Need help in this

    Kind regards

    Kalai

    Good answer:

    String stmt =

    "Start: 1: = xxcust_eam_oaf_extensions.get_wo_priority(:2,:3,:4); end; « ;

    CallableStatement cs = txn.createCallableStatement (stmt, 1);

    try {}

    cs.registerOutParameter (1, Types.VARCHAR);

    cs.setString (2, OrganizationId);

    cs.setString(3,RequestNumber);

    cs.setString (4, consequences);

    CS. Execute();

    Priority string = cs.getString (1);

    pageContext.putDialogMessage (new OAException ("priority value:" + priority));

    If (priority! = null) {}

    pageContext.putDialogMessage (new OAException ("inside the loop if"));

    String query = "select lookup_code from the mfg_lookups where lookup_type ="WIP_EAM_ACTIVITY_PRIORITY"' and sense =: 1 ';"

    PreparedStatement stmt1 = conn.prepareStatement (query);

    stmt1. SetString(1,Priority);

    ResultSet resultset = stmt1.executeQuery ();

    If (resultset! = null) {}

    While (resultset.next ()) {}

    If (resultset.getString (1)! = null) {}

    String lookupcode = resultset.getString (1); here for the extraction of the column in the query

    OAMessageChoiceBean xxPriority = (OAMessageChoiceBean) webBean.findChildRecursive ("Priority");

    xxPriority.setValue (pageContext, lookupcode);

    }

    }

    }

    }

    }

    {} catch (SQLException e1)

    throw new OAException (e1.getMessage (), OAException.ERROR);

    }

Maybe you are looking for

  • In Safari, turn the little colored circle

    ON my iMac 27 inches, the small color wheel rotates just really long when I'm trying to do something. I have OS Yosemite vs 10.10.5 & have been afraid to go to El Capitan, because my computer is early 2009. I have a problem with Mail some time to do

  • MacBook Pro 13 inch end 2011

    I recently updated my late 2011 13' macbook pro RAM and added a second HDD. After that I did it, my laptop started to crash on a regular basis about once a day. It hangs at random times, so I'm under no specific request. It crashes when running itune

  • Photosmart 7515 adds lines from bottom of the scanned image

    My photosmart 7515 started just add a line double about 2 inches from the left edge of all of the scanned images. NO modification of the system that I am aware. Prins computer or internet as usual. Any ideas?

  • Laptop screen goes out after the connection

    Whenever I'm done to enter my pin code, the screen goes black. I have hard reset did not work.

  • Received a call from #315-352-4665 which claims to be 'Windows Support' - real or scam?

    They claimed that they have received messages from my Windows system and I'll take problems more and more every day.  They wanted to ' ' guide me through the various things on my computer.  I refused and wanted proof that they were a real organizatio