Question LOV cascading with the plugin Select2

Version 4.1.1.00.23

Hello

I have a plugin Select2 Setup like a multiple-selection list.

I have a second Select list that is configured as a page item list select Standard.

I try to have the second element of the page list select Standard like a waterfall LOV based on the plugin Select2, so when one or the values are selected in the plugin Select2 I want the list item select Standard to hold the values based on the plugin Select2.

The Standard selection list has the Parent article (s) as the plugin Select2 LOV waterfall and the query made reference to the plugin Select2.

Since the plugin Select2 likes the selection list Standard may not Submit/redirection is why my list select Standard is not get the values. I tried to put a dynamic Action to requery the list select Standard when the plugin Select2 is changed, but looks like there is no case of "onchange" of the plug-in.

Can someone help me to get this set up?

Can what additional information I predict or explain?

Thank you

Joe

Joe,

I faked your question on an instance of APEX 4.1 and I managed to make it work as follows:

Remove the dynamic action of one of my previous posts. Use the following dynamic action:

-Event: Change [Select2]

-Selection Type: Item (s)

-Article (s): P6_DEP

Add two real actions:

-Action: Execute the PL/SQL Code

-PL/SQL Code: apex_util.set_session_state ('P6_DEP',: P6_DEP);

-Items to submit: P6_DEP

-Elements of return:

-Action: update

Items affected

-Selection Type: Item (s)

-Article (s): P6_EMP

The definition of LOV's P6_EMP is based on a PL/SQL function that returns a query as a string.

List of values definition: return get_emp_query(:P6_DEP);

Below the get_emp_query function:

create or replace function get_emp_query(in_teams in varchar2)
return varchar2 is
  l_teams varchar2(32767);
  l_emp_query varchar2(32767);
begin
  l_teams := replace(in_teams, ':', ','); 

  l_emp_query := 'SELECT ename, empno
                  FROM emp';

  if (l_teams is not null) then
    l_emp_query := l_emp_query || ' WHERE deptno IN (' || l_teams || ')';
  end if;

  l_emp_query := l_emp_query || ' ORDER BY 1';

  return l_emp_query;
end get_emp_query;

You have to be able to use an element of selection mode multiple select2 to dynamically filter the values in your resource item.

BR,

Nick

Tags: Database

Similar Questions

  • problem: lov cascading with the UNION query

    I have develoep my LOV cascade according to
    http://download.Oracle.com/otn_hosted_doc/JDeveloper/11/demos/ADFBC_Cascading_LOV/ADFBC_Cascading_LOV.html

    I choise contain LOV like (detriment - banks - employed)
    another a cascading contain information for (detriment or banks or employees) depeding on first LOV
    data for detriment, the banks and the employees split into 3 table so
    read only display for second LOV was:
    SELECT id, name, "DPT".
    of detriment
    Union
    SELECT id, name, "BNK".
    from banks

    I followed step above link, when I test the application in British Colombia, it ' good job, but when I test the jsp page, is not woking!
    What wrong with my application? its because the UNION? or I'm wrong steps?
    IAM using jdeveloper p4, ADF BC + ADC faces
    Published by: user652271 on August 25, 2008 05:03

    Published by: user652271 on August 25, 2008 05:29

    Hello

    I think that you need a partial refresh in jspx.

    See: LOV Cascading Update

    concerning
    Peter

  • LOVs cascading with the ability to create a new record.  Is this possible?

    Hello

    I am trying to create a couple of LOVs. The first is a list of manufacturers, the second a list of items. Essentially, when you select a manufacturer from the first LOV you will see their articles in the second LOV.

    I had a look through the forum and I think I have a handle on how to make a waterfall... except LOV...

    I would like users to have the ability to enter a NEW manufacturer and a NEW element if necessary and have this combination, then saved in the source table.

    Is this possible?

    Thank you

    Joseph

    Hello

    Browsers is not the drop-down list box functionality that you would find in something like MS Access. You could try autocomplete - see [http://apex.oracle.com/pls/otn/f?p=31517:53] - but you would have to search all the entries (the field only would focus on the display text and not the ID of the element, which would have to be searched every time).

    I want to say that you should be able to trust your users to not create duplicates. I want to say this, but... ;)

    Andy

  • How to combine code C++ of Cascade with the native C code in a project?

    Purpose: Using C++ Cascade camera video sample with native C sensor log.

    and function by using Cascade C++ user interface with native C detection function.

    Problem: After putting code of Cascade C++ native code C, the library shows unresolved inclusion.

    Question: How do I combine code C++ of Cascade with the native C code in a project?

    Minimal code:

    #include
    #include

    #include 'printf.h.

    #include
    #include
    #include

    #include "hellovideocameraapp.hpp".

    to: bb::cascades:Application;

    int main (void) {app app (argc, argv);

    New HelloVideoCameraApp (&app);)

    Return app.exec ();

    printfhw();
    printf ("Hello new %d", hwnum);
    Return EXIT_SUCCESS;
    }

    You just add the header and call the function as you would normally call a C in C++ function.

    You will need to provide clarification as to what you are trying to accomplish.  In its current form it looks like you want to run C code in an application of cascades.  You are more that welcome to do so, there is nothing to stop you.

    Waterfalls of projects are default C++ projects.  You do not even need to use QML and can do everything straight c++.

    Cascades IS C++ and C and C++ get along very well, so the answer that was given to us.

    We cannot give exmamples because all you need to do is create a new project of cascades in the IDE and it will generate the default files for you who are C++.  Just add your headers and other whatnot and start coding.

  • Need Adobe XI. DC does not work with the plugins I use.

    I'm on a Mac and I need Acrobat XI as DC does not work with the plugins that I use at work. We have a subscription to the CC. I downloaded the software XI from here: https://helpx.adobe.com/acrobat/kb/acrobat-downloads.html but it asks for a serial number. I followed the steps on this page about what to do if you have a subscription, but this brings me to a page that asks you a redemption code to activate my subscription. My subscription is already activated. Is there a way to install XI without needing a series/redemption code?

    Update: I spent 2 days looking how to get this resolved. Of course, 5 minutes after I ask this question, it happens to me on this: https://helpx.adobe.com/content/help/en/creative-cloud/kb/acrobat-dc-uninstalls-acrobat-11 .html , that solved my problem and my installation began through the application of CC desktop, rather than a separately downloaded .dmg file as before. Note: After clicking on the button 'Download Adobe Pro XI', next steps called "Adobe DC", but the end result is an installation Pro XI.

  • Is it possible to use the 32-bit firefox with the plugin java 64 bit?

    Is it possible to use the 32-bit firefox with the plugin java 64 bit?
    I would use 32-bit firefox and I already install the plugin java 64 bit.
    Is this a good choice is not to install the 32-bit java plugin?
    These will cause problems?

    Thanks in advance.
    Kind regards
    Sean

    Nope - you need the 32-bit Java to go with the 32-bit Firefox, if you want that Java run

  • Problem with the plugin ActiveDirectory

    I have a problem with the plugin active directory that it does not show the OUs under a spesific UO (I guess that's because there are too many objects in this spesific UO and for some reason any, limit the amount of objects, it can show).

    To work around the problem I wanted to use the Active Directory script class and use the search method, but I can just find a way to create this object to use the reproductives I guess that I do not understand something in the API.

    Read this it looks like it could be typo...

    Please share your script, or search for mistyped as ActiveDirectory.Search ().

    For example - to throw the object system: TypeError: cannot find the default value for the object

    This code online

    System.Iog ("Test");

    because this isn't a lowercase L, it is a shift that i and this method does'nt exist on the object of the system...

    Other objects throw correcting errors as this method does not exist in the wrapper dyn...

    Depends on the implementation and management inside of it I guess than errors

    Kind regards

    Andreas

  • Problem with the Plugin follow Page Linkedin

    I'm quite new in this biz... Sorry if I my stupid question or...

    Moreover, I got the script by the developer of Linkedin Page, but I can't find the way to get the plugin working on my website (HTML5)... (I don't see even the plugin appering on the screen).

    Developer page, I have another script get two lines, how to manage doI?

    Thanks for the help

    Matteo

    What is the URL of your page online?

    With widgets by script, it is often necessary to put them online.  On-site testing may not show anything.

    Nancy O.

  • LOV cascade with two items of parents (one might be hidden)

    Hello

    I have a LOV cascade which depends on two elements of parents, who works as expected. When two parent elements have values then the LOV cascading is populated with the appropriate values.

    I have the following situation, if. The elements of two parents are not always visible. According to an another page element (e.g. product code), one or the other Parent may be hidden (using JavaScript).

    The list of values for the LOV cascading is dynamic, so that part is ok

    if PARENT_ITEM_01 is hidden then  
       return 'select product_descr display, product_code ret from products where product_cat_02 = ' || :PARENT_ITEM_02 || ''';  
    elsif PARENT_ITEM_02 is hidden then  
       return 'select product_descr display, product_code ret from products where product_cat_01 = ' || :PARENT_ITEM_01 || ''';  
    else  
       return 'select product_descr display, product_code ret from products where product_cat_01 = ' || :PARENT_ITEM_01 || ' and product_cat02 = ' || :PARENT_ITEM_02 || ''';  
    end if; 
    

    Is there some sort of workaround to parent of the items but one of them may be hidden?

    Teo

    I have finally found a workaround.

    I created a dynamic action and that page_item was hidden I put this element with a default value and the works of lov cascading.

  • LOV cascading with null

    Hello

    I use APEX 4.0 on 10g.

    I have 2 LOV, the second, based on the first.
    One displays null as 'null' % values to display all rows back.

    When I select a value from the first LOV (except 'null'), the second is updated with the correct values: it works.
    But when I select the value 'null', the second list is empty, rather than be filled with all the values.

    The second LOV based on the first request (P3_FILTRE_AREA_NAME):
    select distinct(ACCL_NAME) display_value, ACCL_NAME return_value 
    from POINTS WHERE upper(AREA_NAME) LIKE upper(:P3_FILTRE_AREA_NAME)
    order by 1
    When I run this query as a replacement for Sqlplus: P3_FILTRE_AREA_NAME by '%', it works, it returns all the rows.

    Any idea?

    Thank you.

    Yann.

    Hi Yann,

    You must set * "Optimize Refresh" = No * regarding your second select list P1_ACC_NAME. If you do that it will work.

    I also suggest to change your list of first selection P1_AREA_NAME to

    Display null value: "- show all xxx -" (without the quotes)
    "Return NULL value:" (without the quotes)

    and the declaration of LOV your second selection P1_ACC_NAME list to

    select distinct(VALUE1) display_value, VALUE1 return_value
    from TABLE WHERE upper(VALUE2) LIKE nvl(upper(:P1_AREA_NAME), '%')
    order by 1
    

    I think this makes it more transparent by looking at the SQL statement what happens where nothing has been selected. It is also more pleasant that P1_ACC_NAME is set to null if you need to access this page element in the continuation of the procedure on your page.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Batch in PSE 14 with the plugin

    I have 14 items running on 10 64-bit windows, I installed the plugin Imagenomic Noiseware, that works very well. I'm trying to batch processing and automation under the file menu is not active and is grayed out.

    The instructions of Imagenomic 2 options, or which is active in version 14.

    norms777 wrote:

    I have 14 items running on 10 64-bit windows, I installed the plugin Imagenomic Noiseware, that works very well. I'm trying to batch processing and automation under the file menu is not active and is grayed out.

    The instructions of Imagenomic 2 options, or which is active in version 14.

    The instructions you saw are for the full Photoshop, not for items. In the elements, the 'Automation' feature does not process batch files. It is only used by a few Add-ons to run scripts. The command 'treat multiple files' in the elements cannot be used to batch with plugins.

  • Problems with the plugin plugInModeGray32 imageMode import format?

    Hi people,

    I have a format plugin where I have everything works fine with plugInModeGray16 to import, but I would really eventually have more precision. If I try

    formatRecord-> imageMode = plugInModeGray32;
    formatRecord-> depth = 32;

    He throws up, even if I actually do not set the buffers. With the help of pluginModeGray16 and not affecting don't not tampons gets me a picture empty but dimensioned correctly. Is there a limitation with do import 32-bit files?

    Reference, I saw on another thread a few years back where someone couldn't use plugInModeRGB96 and was falling back to plugInModeRGB48 for the contents of 32-bit so it seems that there is something that you can travel there, but nothing in the thread suggested a solution.

    Thank you

    Eric

    So I did some more research and found the problem in the case of other successes for the. Even through pluginModeGray16 is what is expected, Photoshop do not like plugInModeGray32 and really wants that you just use plugInModeGrayScale;

    formatRecord-> imageMode = plugInModeGrayScale;

    formatRecord-> depth = 32;

    I have not tried, but I suspect the other dev having problems with plugInModeRGB96 might be the same problem. Just use RGB and set the 32-bit/channel in the depth.

    Kind regards

    Eric

  • Problems with the plugin weboperator 5.5

    I recently installed the Orchestrator 5.5 new in our new environment, but I'm getting this strange question than the weboperator

    display of Web pages is missing in the list of web display. I tried to reload the plugin and restart the server, but nothing do not seem to help.

    The only way I managed to get the plugin to show is by adding the package manually by extracting from the plugin .dar file. Even after this the web sight guard send me errors while trying to connect. And sometimes everything just works at all

    By "reloading the plugin" mean you clicked on the button "reload all plug-ins ' on the 'Plugins' page in the vCO Web Configurator?

    On the 'Troubleshooting' page, there is a link "Version current Reset." Have you tried it? Supposedly, he will be re - install plug-ins on the next reboot of the server.

    Add manually the package "might" work, but is not supported - package needs to be deployed as part of the installation of plug-ins.

    What are the mistakes do you receive when you try to open a session? Could you check the files of newspapers of vCO for exception and error stack trace?

  • More questions about registration of the plugin on a Production Server package

    I tried to review other messages (as well as the documentation for VMware) regarding the plugins installation/registration on [the customer] production servers.  Specifically, I was looking at this recent announcement:

    https://communities.VMware.com/message/2292717

    The following response was a very good point, but I was looking for a little more in detail about how other developers are doing this installation/registration:

    laurentsd: as a plugin developer, you are responsible to write an installer that customers will run to register your plugin package. You do not want to treat to run a java program directly :-)  The installation program should be easy to use.

    I was curious to know how many people have their customers to install a Web Client plugin.

    The States of doc SDK - Tutorial.html in the 'record of your plugin...» "article for the mode of production (step 1), you can:"

    Use a script program or installer to create the object of Extension data programmatically and enter this data object using the ExtensionManager.registerExtension method

    This means that the .zip file must be placed on a server access with HTTPS access.

    [Variant 1]: are most of the people having the client stores the .zip file in a HTTPS server in the customer environment?  If Yes, then I guess that the installer prompts the user to specify the URL to the zip file, which is then rolled into the Extension data' things "programmatically.

    [Variant 2]: or, most people hold their own on their own server HTTPS .zip file by using an installation program with hard coded URL value in the .zip file, and having the user simply launch the installer without entering any additional data?

    Or maybe there is an Option of [3] that I have not yet thought?

    It seems that [option2] is obviously easier for the customer, but makes it harder to make a plugin that everyone has access to.  [Variant 1] requires a bit of work for the customer, but allows the developer to restrict access to the plugin for customers who have paid for the product.  Certainly the installer can block based on the license key, but anyone with some knowledge of vSphere Client Web plugins as well as documentation 'Save your plugin package' could take a plugin .zip file and install it manually without an official Installer (when the .zip is hosted to the public).

    You must take the URL of the ZIP file as an input for your script so that all options can be supported. If the zip file is hosted in the customer environment, then the URL should point to that. If you host the zip file on your own server, then the URL should point to your server.

    You should code hard not URL that you have mentioned in the #2 option, because there are several companies and agencies Government which do not allow to connect outside of their network.

  • Need help with the plugin gallery

    Hola

    I need your help (yet) to understand

    Why the lightbox plugin does not work in this site.

    http://mydsigner.com/Claudia/gallery_manteca.html

    So the people you know, this is the site I asked before at this link;

    What is happening with the new Adobe wants to use your trick of confidential information

    Here is the site of origin;

    http://www.lascasuelasmexicanrestaurant.com/gallery/details.php?Gallery=Manteca_4

    As you can see here, all PAGES ARE PHP (?)

    Well, I managed to get the html pages, change some things,

    everything works fine, but the Gallery does not work, and I have no idea why.

    You see, the page contains a link to a lightbox css who for some strange reason,.

    I can not find the server
    ; href =" /CSS/bootstrap-lightbox.min.CSS


    When I looked for this file, it is simply not there, then

    I received a bootstrap file and put it in there, but the light therapy device won't always work.


    Your Assistant need help here.


    Thank you very much


    Greetings from California

    Daniel Ulysse wrote:

    and at the bottom, after the footer;

    Is this correct?

    what Miss me?

    Thank you

    This is what is wrong - it should NOT be


    It should link to the js file NOT the css file:

Maybe you are looking for