selection list loading using the ondemand/ajax process data

Guys,

Ive has a selection list that has a query default LOV (select jobname d, jobid r of the work) but now iam trying to create application processes to pass new values LOV (like select ename d, empno from emp by 1 r) replacing the previous lov when a button is clicked

any idea please?

Apex 4.2.x

Kind regards

Gor_Mahia wrote:

fac586

good idea to use the function in the pipeline, but I really want to use ondemand/ajax call here I don't mind spending extra energy so long as its feasible

I never mentioned in pipeline functions.

A dynamic LOV can be created as either a static SQL query:

select ename l, empno v from emp order by 1

or in the body of a function that returns a SQL query:

declare

  lov_sql varchar2(4000);

begin

  if :foo > :bar
  then
    lov_sql := 'select dname l, deptno v from dept order by 1'
  else
    lov_sql := 'select ename l, empno v from emp order by 1'
  end if;

  return lov_sql;

end;

This will allow you to create a dynamic data source for the LOV using some logic is required. LOV options can be modified using standard dynamic action of refreshment. There is no need to create an additional On demand process or write complex AJAX code. Use declarative when possible.

"Less code is less than bugs. Seek ways to write less code. "- Tom Kyte

Tags: Database

Similar Questions

  • Select list not used in graphic Flash

    I have a page that contains a Select based on a list Flash chart. I want the table to take the default value of the selection on the first visit. However, when a user visits the page first, the array is empty (no data found). Looking at the session variables, they are zero. Once I have select a value in the select list and send the page, the issuance of securities in the session and the graph built as planned. How can I get the default selection list selected when a user first visits the page? Maybe it's a problem with how I build by default? Any suggestions would be helpful.

    In your process to set a default value, check first if the element has the value null.
    for example
    If: P1_MY_SELECT is null then
    : P1_MY_SELECT: = 'default ';
    End;

  • Conversion in failure "the reconfiguration of processing data store.

    I'm trying to convert a Windows XP SP3 machine that has one partition D:. When I try to convert, it fails to stage "Transformation of the reconfiguration data store" with an error indicating "FAILURE: unable to find the system volume, reconfiguration is not possible." I checked the boot.ini file and it seems to be ok, however when I run a Spotmau CD to try to make some recovery/survey to see what the problem is, it shows Windows is on C:, and in the conversion process step that says "Drive to update for the layout of the destination volume letters" goes and comes without error , so I guess that converter is changing the drive letter, that is all pipe up. Can I prevent converter to change the drive letter, or can I change afterwards?

    Thanks in advance for any help.

    xp is the easiest Converter 3.0.3

    that sets up work correctly

    with 4.3 you MUST order the buslogic controller

    Von meinem iPhone gesendet

    Am the 07.07.2011 um 22:19 wrote mmillington [email protected]<>[email protected]>:

    Http://communities.vmware.com/index.jspaVMware communities >

    Conversion in failure "the reconfiguration of processing data store.

    mmillingtonhttp://communities.vmware.com/people/mmillingtonresponse > converter - see complete discussion onhttp://communities.vmware.com/message/1786568#1786568

  • How to use the TRUNC function with dates in the expression builder in OBIEE.

    Hello
    How to use the TRUNC function with dates in the expression builder in OBIEE.
    TRUNC (SYSDATE, 'MM') returns 1 July 2010"where sysdate is July 15, 2010 ' in SQL. I need to use the same in the expression builder in the logical layer mdb column.


    Thanks in advance

    Use it instead:
    TIMESTAMPADD (SQL_TSI_DAY, (DAYOFMONTH (CURRENT_DATE) *-1) + 1, CURRENT_DATE)

  • Is there a utility that will give me a list of all the programs or processes loaded in the startup process?

    There must be some sort of utility that will allow a user to view and edit, what programs or services that load during the startup process. In my case, during this process, a screen will appear that says; "cannot find the program. Skipping Autocheck. I need to eliminate what it comes to store the boot process.

    There is Autoruns , but it can be dangerous because it shows everything so use at your own risk

  • Failed to retrieve the multi selection of values using the child form

    Hi all

    I'm a newbie on OIM 11 g. Need a small suggestion.

    I have a requirement that I need to display a list of all services and the user can select more than one Department. Based on the need of some departments to pick up employees of the departments.

    I created the child form and added an attribute to retrieve the departments of Looups.
    Added the child form to your Parent process.


    Can someone help me by providing the next steps to achieve this functionality.


    Thank you
    SG

    Do not know if I understood your request correctly or not, but here are my understanding:

    You have users associated with different users. You want to set up users in some RO and why you created a few model numbers for select users.

    I hope that you have some kind of relationship between departments and users
    Have a single Dataset Parent
    Create a child Dataset and have two search boxes - a Department and second for the user
    Use search queries to select user based on the selected service in Field1
    Field2 be required i.e. user

    In the same way, create two processes form Parent and child. Child form will have two fields. You can create text fields.
    After approval, the data selected on dataset will come to your child process
    Create corresponding task of the trigger for INSERTION in the definition of the process that will read data from child to process the form and arrangement of these users. (Research Forum or go through Oracle Docs to learn more about these triggers to child form)

  • Selection list cascading in the dialogue window

    Hello

    I'm developing in Apex 4.2.5.

    I have an Apex with a classic report region, in which a link edit page opens a dialog window (in the same page apex) to edit the selected line. The same dialog window is used to create a new line. The dialog window contains a cascading pick list. Two selection lists are defined to display NULL values and correctly fill in mode 'create '. My problem is that mode "Modify" the list of the second selection is not good value. The second selection list contains it however the right subset of values according to the parent, select the list and therefore don't does not contain the correct value, but it is not selected.

    I use a javascript function to fill in the fields in the dialog.

    ....

    $s ("P3_EVENT_TYPE", arguments [1]);

    $s ("P3_EVENT_SUBTYPE", [2] arguments);

    ....

    Then the display of the dialog window

    openDialog ('editEvent');


    The population of P3_EVENT_SUBTYPE list seems to happen but sometime after that all the fields in the dialog were assigned and the dialogue window displays.

    I see that I need to somehow update the list of selection in cascade, P3_EVENT_SUBTYPE, before assigning the value. My problem is how can I do this in the same javascript function?

    Kind regards

    Derek

    Eventually answered my own question-

    I created a hidden field in which to store the value of the event subtype.

    Created a dynamic of Action, after refresh of affected P3_EVENT_SUBTYPE subtype value = hidden field event.

  • Why can I not select an object using the direct Selection tool?

    PHOTOSHOP: I have an ellipse I have rasterized. Why can I not use the direct selection on it?

    The direct Selection tool is designed for use of vector path.

    If you want to use the tool, you can get your selection by going to the Panel traced and clicking the work path make the symbol at the bottom of the Panel, a path

    Then, if you choose, you can click the load path as a selection symbol to return to the moving dotted line (rasterized).

  • Select list failed at the first value

    APEX Version: 4.1.1.00.23

    Oracle database: 11g


    Question: The application updates the value selected in the list of selection (O/N) to the database, but at the front end, the selection list is set by default to display only the first value in the list. I think this is the data type of the field in the table attached to this select list is TANK (2). And change to VARCHAR2 (2), it worked fine. Now whichever option I choose in the selection list is updated and displayed on the front as well.


    I do not understand why is this to mess with (2) TANK. Someone at - it explain it please, I'd appreciate it really.


    Thank you

    Chrystelle

    never use CHAR() in your tables.

    TANK always touch your strings to the exact same length.

    In your case, you compare the value to the value of the list of the 'Y' table 'Y '.

    declare

    a tank (2): = 'Y ';

    b varchar2 (2): = 'Y ';

    Start

    dbms_output.put_line ('element A as a sign of ' | length (a)); -This will ALWAYS have a length of 2

    dbms_output.put_line ('Variable A as a sign of ' | length (b));

    end;

  • 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

  • Select multiple tabs using the keyboard and mouse

    In short, I used to be able to select several byt tabs, one selected, hold down the Ctrl + Shift and then clicking on the last tab, I want to be added to the selection.
    The feature seems to have disappeared, is it possible to get it back?

    Hi 1031982!

    You use the Add on Multiple Tab Handler? If so, it seems, is not yet fully compatible with the latest version of Firefox (you can check out some of the comments here on the addons page: https://addons.mozilla.org/en-US/firefox/addon/multiple-tab-handler/ ).

  • Error when you try to use the webcam: host process Windows stopped working-RUNDLL32

    RUNDLL32

    Whenever I use the webcam on my computer, he brings a message as follows:

    WINDOWS HOST PROCESS (RUNDLL32) HAS STOPPED WORKING

    I can still use webcam with no problems, but I have to cancel and close this message

    What is this error, why this is and how can I solve this problem

    Whenever I use the webcam on my computer, he brings a message as follows:

    WINDOWS HOST PROCESS (RUNDLL32) HAS STOPPED WORKING

    I can still use webcam with no problems, but I have to cancel and close this message

    What is this error, why this is and how can I solve this problem

    I read this from an old thread in this forum.
    Here is the suggested solution...
    Disable the webcam.
    Start button > Control Panel > Classic view > Folder Options > view > first entry,check "always show icons never thumbnails" > OK.

    Open your Webcam again. The message is passed now?
    If so, turn off the webcam.
    Back to Folder Options > uncheck the first entry "always show icons never thumbnails".

    Open the webcam again. The message comes back?
    If not, problem solved.

    Source:
    http://social.technet.Microsoft.com/forums/en-us/itprovistaapps/thread/46d915fb-E470-41c6-A4de-dc56d05e258f

    t-4-2

  • How to clear projects loaded using the Blackberry Simulator

    Hello

    I use the plugin Eclipse of JDE 1.0.0.50. Trials using Simulator, I charge different projects at different times. When I develop a new project or other needs, I would like to delete the old ones already loaded into the Simulator. It seems simple, but I can't find any way to do inside the Eclipse? Do I need to do it manually and how?

    I have it. JDE of BB like, for BB JDE Plugin Eclipse, there is a command clean.bat that you can use to clear the cod loaded on the Simulator. It is located in your Eclipse install dir under my Windows Visa approx. **\plugins\net.rim.eide.componentpack4.5.0_4.5.0.14\components\simulator

  • Element of the selection list appears when the cursor is placed

    Hi all

    Version: Apex 4.2.5

    I need when the user places the cursor over a selection list, it should display the list. I need to implement this approach to all the selection in my application list.

    Can anyone suggest me how to do the same?

    Thanks in advance.

    Best regards

    Patrick

    Did you mean something like this:

    JQuery: Expansion of the bubble option - Stack Overflow

    See this violin as well:

    http://jsfiddle.NET/bplumb/GE86L/1/

    Thank you

    Sunil Bhatia

  • Additional column names selected when you use the describe "popup" to select columns

    Hello

    In SQL Developer 3.2.20.09, if you use the popup describe the function on a individual table columns using Ctrl + click (not shift click choosing a range of columns) and select and then drag them to the SQL worksheet to find the column names, it includes all of the columns between the individual columns that have been selected.

    For example if I choose column 1 and 5, it includes 1,2,3,4,5 columns when I drag them through.

    Simple to reproduce on any table, just open the SQL worksheet, type the name of a table, open the popup describe and select some columns.

    Kind regards

    Steve

    Is not past in v4 ai2 it seems to be fixed.

Maybe you are looking for