Skillbuilders Super LOV, refresh the list of SLOV values dynamically

Hi, another question.

I have 2 SLOVs. 1 is a relative of the 2nd.

The first has its value dynamically for a reason any.
I can not then dynamically change the value of the 2nd until the cascading effect is triggered by the opening of the 2nd SLOV via the button.

If the page has LOV1 with value 'A' with LOV2 have child values "A1", "A2", "A3" available and I then proceed as follows

$('#P1_LOV1).apex_super_lov ('setValuesByReturn', 'B'); (where B is a valid value)

followed by
$('#P1_LOV2').apex_super_lov ('setValuesByReturn', 'B1'); (assuming that B1, B2 and B3 are values of child for B)

Then, it does not work.

In fact
$('#P1_LOV2').apex_super_lov ('setValuesByReturn', 'A1');
$('#P1_LOV2').apex_super_lov ('setValuesByReturn', 'A2');
$('#P1_LOV2').apex_super_lov ('setValuesByReturn', 'A3'); Still work, even if the parent is now wrong.

So, basically, it seems that dynamically change the SLOV parent value is not triggering of the ripple effect that manually the SLOV itself chosen.

Is it possible to force the list of values for updated after change dynamically children parent cascading?

Concerning
Mark

Hi Mark,

Some problems with the State of session here! Your lov EMP is limited to documents that match the DEPT value in session state. Initially this will be null and no value. Suppose you select a Department and send the page, so that the values are stored in session state. When you open the lov, employees would be only those for the Department which the value is stored in session state. Understand the State of Session, Oracle docs

You were on the right track with cascading lists, but it breaks your choice by default features. So I've ignored this output, I don't want the default functionality. We need to do our own for this. Don't worry, not too!

Off, when dept in the default settings or dept lovs changes because of a choice, the selected Department must first go to session state. This is necessary for the lov emp can find the correct records. So I added a dynamic action to fire on the change of P14_CHOOSE_DEFAULTS and P14_DEPT. The real action is a PLSQL code execution. PLSQL is always on the server side, and we can provide items to submit to the session state. The executed code is simply

NULL;

because we don't need to run anything, but P14_DEPT has the value that will be submitted to the session state when the call is made.

With these changes, everything works. But EMP must be blanked when DEPT changes. Otherwise, you could spend DEPT autour but are not yet in a bad EMP.
So I added another dynamic action that fires on the evolution of the DEPT and blanks in the EMP. No worries about default values, picking, because that won't change due to values only being edited
javascript change events that are not performed.

PS: don't forget to assign the answer useful/correct labels to messages that are :-)

Tags: Database

Similar Questions

  • Refresh the list of VIAccounts with PowerCli to select a newly created group

    Hi all

    I use a script that creates groups in Active Directory and connects to my server vCenter by using New-VIPermission. The trick is that it does not find the groups unless I restart the script (and so, I suppose, the connection).

    $My_Group = New-QADGroup -Name $My_AD_GroupName -SamAccountName $My_AD_GroupName -ParentContainer $My_OU -Connection $My_adConnection

    New-VIPermission -Entity $param_objects -Principal "Domain\$My_AD_GroupName" -Role ($My_Role.Name) -Propagate:($My_Role.Value) | Out-Null

    This script is going to create the group in my ad, but if you link to a new authorization in my vCenter, he'll be backNew-VIPermission Could not find VIAccount with name 'Domain\MY_GROUP_NAME'.

    When you restart the script, he will pass on the creation of group directly to the new VIPermission and properly bind to the vCenter object.

    I tried to add a waiting order, and a sleep of 5 seconds, but used to change one thing...

    How can I manage to reload and refresh the list of available groups without having to restart the vCenter connection?

    Thanks in advance!

    Well, I added the following:

    "while (!). "(() Get-VIAccount-groupe-nommer"REDOUTE_FRANCE\$ My_AD_Task_GroupName")) {Start-sleep - s 1}.

    And it works. Slow but it works

    Thanks, LucD!

  • How to make an application for shaped on the list of dashboard values

    I have the dashboard with several pages that use a set of guests for a year and a month. For some reports, I use the value invited to display data only for this month, but some reports that I need to view the data in the previous 12 months, so I have set these guest not directly for the column, but with the formula as advised by Vincent in his post on the dashboard incentive (http://oraclebizint.wordpress.com/2008/02/26/oracle-bi-ee-101332-between-prompts-for-date-columns-using-presentation-variables/)

    The formula I use is "CASE WHEN 1 = 0 THEN ' Sun - Times '.» «Year"ELSE 2007 END", the drop-down list is displayed by SQL statement "SELECT DISTINCT" dim - periods ".» Benefit year "loss analysis" ORDER BY ' Sun - Times '. Year '.

    The problem is that, regardless of the setting in the form by default of column "Sun - times» Year', the values are shown with two decimal places, for example "2008,00" at the time.
    The question is - how can I get rid of the decimal places in the list of dashboard values?

    Add CAST as follows... (You need on the "show > SQL result" is part of the dash line, not to change the formula)

    SELECT DISTINCT CAST (' Sun - Times '.) Year AS INTEGER) of 'Profit loss analysis' ORDER BY ' Sun - times» Year '.

  • CSS refresh after javascript DOM change (tab Ajax control) and also refresh the list of objects of Navigation

    Hi all

    When I access a Web page, that I created in the browser or Widget that uses an ASP.NET Ajax Control Toolkit Tabs the action of switching between tabs works well but the tab header does not reflect the change to display the active tab.

    In a standard browser of the tab header will be change / light tone based on the css classnames active Ajax control for settings changes dynamically in the DOM when switching between tabs and I was wondering if maybe the BB browser will not reflect/refresh css when changes on the client side affect the DOM? If that's the case (?) is there a way to force that change somehow?

    Also in the same direction and on the similar question I posted yesterday on switching between Navigation power user mode in a Widget, so javascript client-side dynamically is change the 'x-blackberry-focus' of a DOM object possible to have the change reflected in the Navigation objects? Or is the list of objects that can be traversed only generated load initial page and cannot change without a new post?

    Thank you

    Derek

    I solved the problem with the Ajax Control Toolkit TabContainer uisng having to do a "dummy" DOM change in the TabHeader after that the tab is passed between the tabs then forcing the refresh and repaint the tab headers.

  • ADF Mobile: Refresh the list

    Hello

    I have a list of Web Service and put a refresh on the screen button. I want to update the list when the user clicks the update button. I tried to do a flow control to himself, so he could have refresh the data, but it did not work. I put also updated forever in the links and cache to false, but it did not work. How can I make a button update so it will do exactly what it does as it initializes to view the updated list.

    Kind regards

    Have the button action directly call the Web service method again.
    (Essentially drag the method of the data on the button control to bind).

  • refresh the list of selection - keep value

    Hi all

    I'm having a problem where I don't have a solluion for. Maybe can someone help?

    The (Simplified) situation is as follows:
    There are 2 selection lists in my page:
    -one with articles (you see the name of the topic and the price). The source of this selection list is a query more ITEMS from collection.
    -one with countries (source is not important)

    When a user runs the page, the content of the selection with the items list is defined by a process that calls a procedure in a package to database; This package fills the collection of ARTICLES. So far so good. But when the user selects a country in the second, select list, the same procedure is called to update the ITEMS collection, because for some countries, the price is different. But how do I update the list of selection, while keeping the same selected article? When I run a dynamic action of refresh type, the value of the selection list is cleared. If I backup the value before updating the selection list and after refreshing, set the value of the selection list does not work or the other.

    I hope that the above is clear enough. Otherwise I'll set an example on apex.oracle.com.

    Thanks for your answer in advance!

    Edit: Version of the Apex is 4.2

    Edited by: tomvdduin, 3-dec-2012 0:16

    Hello

    The value of the P2_ARTICLES_BACKUP page element was not defined in the session state (as seen in the option 'session' in the developer toolbar).

    I changed the following:
    1. use of an action "Set the value" of the body of the function type pl/sql to update the value of P2_ARTICLES_BACKUP
    2 removed the last DA update the P2_ARTICLES value using javascript. It is not necessary. You had this code:

    $s('P2_ARTICLES',$v('P2_ARTICLES_BACKUP'));
    

    3. update the default value of P2_ARTICLES to & P2_ARTICLES_BACKUP.

    The changes described above solves your problem. Please test.

    Thank you
    Rohit

    Published by: jaouad khalifi on December 3, 2012 03:44

  • Static LOV from the list of sort selection

    All,
    I had been using part of the Select list for a while now but today ive a list of items I want without using by default in alphabetical order lets say like 10 seconds, 30 seconds, 1 minute, 5 minutes, 1 hour etc so how you customized static LOV sort order and I don't want to not use a query based on a table... Thank you

    jieri wrote:

    I had been using part of the Select list for a while now but today ive a list of items I want without using by default in alphabetical order lets say like 10 seconds, 30 seconds, 1 minute, 5 minutes, 1 hour etc so how you customized static LOV sort order and I don't want to not use a query based on a table... Thank you

    Expand the static value syntax lists link at the bottom of the page definition of LOV, and you will find the following:

    STATIC2: is the same as STATIC: except the list of values is displayed in the order provided.

    If the definition of LOV would be something like:

    STATIC2:10 seconds;10,30 seconds;30,1 minute;60,5 minutes;300,1 hour;3600
    
  • Refresh the list of Presets in development settings?

    Is it possible to force a refresh of the presets list in the settings menu to develop?  I want to work around this problem:

    (1) right click on an image and select develop settings - a list of the presets in the CameraRaw/Settings folder appears in the submenu.

    (2) with the bridge remaining in the open air in the foreground, change the content of the presets in the CameraRaw/Settings folder (I do this with a jsx script in my case).

    (3) right click on an image and go again the parameters of development - the list is the same as the list in step 1.

    (4) give any other focus of the application, and then come back straight into the bridge.

    (5) right click on an image, select parameters of development again - this time the preset list reflects what is in the CameraRaw/Settings folder.

    It is therefore possible to force the bridge to refresh this list somehow in my jsx script?

    Sorry no, you cannot change a menu once it is created.

    You can access one of the elements in the development settings with...

    //Develop Settings > Camera Raw Defaults
    app.document.chooseMenuItem("CRDefault");
    //Develop Settings > Previous Conversion
    app.document.chooseMenuItem("CRPrevious");
    //Develop Settings > Copy Settings
    app.document.chooseMenuItem("CRCopy");
    //Develop Settings > Paste Settings
    app.document.chooseMenuItem("CRPaste");
    //Develop Settings > Clear Settings
    app.document.chooseMenuItem("CRClear");
    

    You cannot bring the focus to another application, but you can send commands to another application on Adobe using BridgeTalk

    You can deselect all the thumnails and select the ones you want to work, a few orders below might be useful...

    //change Bridge to folder
    app.document.thumbnail = Folder(Folder.desktop + "/myfolder");
    //de-select all thumbnails
    app.document.deselectAll();
    //select thumbnail
    var thumb = new Thumbnail(thumb);
    app.document.select(thumb);
    
  • Control of VISA resource name: to refresh the list of COM ports programmatically

    When the application runs, and you first click this control, it takes 2 to 5 seconds to respond and complete the list for the first time.

    I would like to auto fill in the first time that the application is busy. Can I do this?

    Before allowing the user to click & Select resource VISA name, first use the 'VISA find resource' in your program to do the same thing & then allow or prompt the user to select resources.

    Given that loading EXE, it will execute the FIND VI-first & Labview will inform the resources available.

  • Dynamic action: need to refresh the area when changing value radio button

    Hello

    I use Apex 4.2 worm.

    I need to apply a dynamic action with the refreshment area.

    I need to refresh the area when I change the value of the radio button.

    To do this, I created dynamic action on the changes and select the refresh option to update the region.

    But it does not.

    If you want to check, then see below for workspace:

    Workspace: APEX_ISSUE

    User name: [email protected]

    Password: kaushik1@34

    Please use Page no 5.

    Thank you

    Hi Maxence,

    CORINE wrote:

    Hi Kiran

    Thank you very much.

    It works very well.

    One more I need help, I need to scroll in the radio button because I'm showing type of booking successively from top to bottom.

    How can I set scrolling in the option box.

    Thank you

    What do you mean by scrolling in the option button?

    I applied a horizontal scrolling for the region containing radio buttons by using the suite in the attributes of the region:

    style="overflow-x:scroll;"
    

    If you apply the change just of vertical scrolling x to y.

    I hope this helps!

    Kind regards

    Kiran

  • Overall maintenance of the lists for ComboBox values

    I like to keep a list of eligible categories multilingual to be used
    in the ComboBox controls. The values for these lists must be stored outside the
    the application or an overall level at which they can be maintained by a person
    which is not necessarily a developer.

    When the user chooses a language when the application runs, the arrayCollections
    containing the data/value pairs must be loaded with the data in the appropriate
    language. These arrayCollections will then be linked as data providers
    ComboBox controls in the various modules and components of the application.

    For example, in an application on cars, it might be a ComboBox containing
    colors - in English (red, grey, blue, black) German (grau, blau, rot, schwarz).
    There could also be a ComboxBox containing body types: (sedan, cut, convertible)
    or (limousine, cut, cabriolet).

    ComboBoxes, using the data could be used anywhere in the application - in modules,
    components or something else.

    What would be the best way to address the issue from a design perspective? Where should
    store the lists to be loaded in the data provider of the control at run time?


    Scott

    Resource modules.

  • How to refresh the list of selection LOV

    Hello

    I use a search of VO show three fields as a, b, c.

    My query VO is selet 'a,' b, "double c.

    For these 3 attributes, I created three different LovVO with queries to display in the database.

    Select a from table1 - values of retrun as a1, a2, a3

    Select b from table1. - return as b1, b2, b3 values

    c select table1. -returns the values such as c1, c2, c3

    Based on the input parameters I am looking for data and I am also erase data from database using callable statement.

    For Eg: I select a1 lov of an attribute and search and click on delete button. record a1 will be deleted from the DB but it shows in the dropdown attribute one.

    When deleting, I want to update my list of selection.

    How can I do this? Please notify.

    Thank you

    1925321 wrote:

    I LOV VO'; attached s looking for VO.

    The method you gave, I tried to implement even in SearchVORowImpl.java and AMImpl.java

    This method should be in the SearchVORowImpl.java only and NOT in the AMImpl.

    Here is the screen shot of JDev 11.1.1.6, so you can see there is method get: ListBindingDefs()

    The lovs list - it is just java.uitl.List, so import that class in theSearchVORowImpl.java, or simply declare

    java.util.List lovs is getViewDef () .getListBindingDefs ();.


    Then go to the section Java in SearchVO and this method in the customer line to export Interface:

    Now you can add this method in the method of the pageDef and executables, as methodAction:

    Then simply call him when you need it ;-)

  • Skillbuilders Super LOV - values of the card IN an another LOV?

    Hello
    I'm trying to get the value of a STAFF to return in another SLOV.
    But I can't make it work.

    Basic example on

    http://Apex.Oracle.com/pls/Apex/f?p=4500:1000:15922477788607
    workspace: blobvideo
    user name: admin
    password: fremantl3

    Application: video blobbing
    page: 4

    Feels like I have to do something stupid, but I don't see what.

    See you soon
    Mark

    (PS apologies for the user name empty. Apparently, it takes 6 hours to go to what I put it...)

    Published by: 946028 on October 9, 2012 03:07
  • Exception of null on the list pointer implementing values when there are n rows in the table

    Hi Experts,

    I use JDev 11.1.1.7.

    I have a VO that I defined a LOV with no search box. In my page, I've added it as af:inputListOfValues, but when there is no rows in the table that I will meet with NPES

    < AdfcExceptionHandler > < handleException > ADFc: when Manager application exception exception handling threw a new exception.

    java.lang.NullPointerException

    at oracle.jbo.uicli.binding.JUCtrlListBinding.findOrCreateLOVDialogIteratorBinding(JUCtrlListBinding.java:5188)

    at oracle.adfinternal.view.faces.model.binding.FacesCtrlLOVBinding.getSearchBinding(FacesCtrlLOVBinding.java:204)

    to oracle.adfinternal.view.faces.model.binding.FacesCtrlLOVBinding$ ListOfValuesModelImpl.getSearchRegion (FacesCtrlLOVBinding.java:2001)

    to oracle.adfinternal.view.faces.model.binding.FacesCtrlLOVBinding$ ListOfValuesModelImpl.getQueryModel (FacesCtrlLOVBinding.java:1612)

    to oracle.adfinternal.view.faces.renderkit.rich.SimpleInputListOfValuesRendererBase$ InternalLaunchPopupListener.processLaunch (SimpleInputListOfValuesRendererBase.java:1560)

    at oracle.adf.view.rich.event.LaunchPopupEvent.processListener(LaunchPopupEvent.java:108)

    Excerpt from JSFF:

    < af:inputListOfValues id = "xxx" popupTitle = "" search and select: XXX ""

    simple value = "#{pageFlowScope.SearchBean.xxx}" = 'true' "

    model = ' #{bindings. " XXXLOV.listOfValuesModel} "columns ="30"

    searchDesc = "Select XXX" >

    < / af:inputListOfValues >

    PageDef:

    < listOfValues StaticList = 'false' use = "LOV_XXX".

    IterBinding = "XXXIterator".

    ID = "XXXLOV" / >

    Is - this bug?

    Surprisingly, it works very well if there are lines in the table that the VO is querying.

    -Soham

    Soham,

    I think you just create this LOV page by simply moving the VO, right?

    You can select the box to tick 'Include no. Selection' in your VO, and see if that helps?

    See you soon

    AJ

  • Refresh the page to change value of SOC model page.

    Hello

    I use version Jdevloper 11.1.1.7.

    I have a requirement as below.

    I have a LOV selectonechoice in the page template.

    The change in the value of it, the page must be updated with the new data according to the value selected from the LOV.

    The page has a taskflow with a parameter. (this setting should be passed as the value selected in LOV)

    Is contextual event, the only way to achieve this?

    Thank you

    Alisson

    Hi Laurent,.

    So you need, for all pages, go to your definition of links page, select the taskflow, assign the parameter (coming from your lov model) and select the property update = ifNeeded.

    Concerning

Maybe you are looking for