Reuse cascading LOV in several pages?

For example, if you page elements to make the car and identify the model, model car as element Parent LOV cascade so that every time the car has changed, the LOV for model would be updated. (Copied from documentation: P)

Thus, the request for model car LOV is defined as

select car_model d, car_model r
from car_models
where car_make=:CAR_MAKE

And on the page, I establish a page CAR_MAKE and use it as the "Cascading LOV Parent article (s). So far so good.

I want to use this LOV in another page. The problem is, APEX reject create me CAR_MAKE in another page, saying "name of the element is already used by another page or application.

Addition of the LOV even for each page (only using linked different variable name), is there a solution?

I thought to use a copy of the car to point application dynamic action game and referred to the point of Application in the LOV. Is it guaranteed that the dynamic action complete before the LOV is updated?

Request Express 4.2.0.00.27

Oracle 11g XE

thtsang

If the parent element names differ only in the number of page as in your example, you can use:

select car_model d, car_model r
from car_models
where car_make=v('P'||:app_page_id||'_CAR_MAKE')

Beware that you add the element relative to Cascading article (s) Parent LOV because apex generator won't recognize him.

In this way, that you don't have to change the standard LOV when used on a new page.

Nicolette

Tags: Database

Similar Questions

  • Is it possible to reuse a region in several pages?

    Is it possible to reuse a region in several pages?

    For future maintenance, it would be easier to make changes in the region alone. Keep several copies of a region is more work and eventually someone will not forget to modify one of the regions.

    Thank you.

    Hi wolfv
    Create your area on page 0 and then conditionally set the display of the region for specific pages in your application only.
    In 'condition type' attribute region Select "current page is contained within the Expression 1 (delimited list of pages)" and in Expression 1 set 1,2,4,6,99 etc or pages what ever you want it to appear on.
    This works especially well for parts of the tree.

    concerning
    Paul P

  • Double output on Cascade LOV

    Hi all.
    I spent 3 days of testing in this case, I have the script online at:

    http://Apex.Oracle.com/pls/Apex/f?p=78875

    I have 3 LOV:

    #1 is just ok
    #2 needs value between 1 # (returns a copy)
    #3 requires value of #2 (returns duplicate also)

    The user for the development is test/test123

    I really appreciate any help you give me.

    my version of the apex is 4.2 also

    Thank you!!

    Well, I agree, it was weird enough I just had to take a look. I saw fire ajax twice for very strange select statements.

    Snooping in your template page I noticed that you had commented on the #BOX_BODY tag #.

    
    

    #BOX_BODY # is mandatory, so I put back it. I think you could fool APEX because you had it on the page, but it was all inside of a comment.
    in any case... I do not fully understand why JS code that refreshes selects it was added twice to the page, but it's fixed now. :)

    Just make sure that you have your BOX_BODY tag in all your pages. Even if you don't want to use it. :)

    Oh and FYI, the elements need not be added to the Articles Page to submit because the list of element Parent of Cascade LOV already takes care of this.
    Assistance on the ground + "you can then use these page elements in the where clause of your SQL statement"list of values"". "+"

    Saludos,
    -Jorge

    Published by: jrimblas on May 9, 2013 22:46

  • Handling cascading LOV (multi-Select parantes LOV)

    Hello

    I use LOV cascade.

    P1_PARENT - Parent LOV (i.e. multiple selection)
    P1_CHILD - child LOV

    LOV Parent being multiple selection, so it will have the following values... P1_PARENT = AA:BB:CC

    and where clause in the LOV cascading should be like
           where col1 in (:P1_PARENT)
       
    -How to convert the element value for P1_PARENT of AA:BB:CC to "AA", "BB", "CC"
    - Is there an another way manage in cascade LOV (to select several parent LOV).

    Select the list of P1_CHILD
     
        select d, r
      from test
     where col1 = :P1_PARENT
     where col1 in (:P1_PARENT)
    Thank you
    Deepak

    Hi Deepak,

    In where clause for the LOV child, you can use instr function as:

    (instr(':'||:P1_PARENT||':',':'||col1||':',1) > 0 ) 
    

    To access the individual elements in the multiple selection: P1_PARENT, you can use:

    DECLARE
    
    l_selected HTMLDB_APPLICATION_GLOBAL.VC_ARR2;
    
    BEGIN
    
      l_selected := HTMLDB_UTIL.STRING_TO_TABLE(:P1_PARENT);
      FOR i IN 1..l_selected.count
      LOOP
            //  your code here...access individual elements using  l_selected(i)
      END LOOP;
    
    END;
    

    Thank you
    Rohit

  • Loading list select cascade lov

    I have three selection list each with a parent lov cascade, except the first.

    1 - TOOL
    2 - CATEGORY
    2. - IN SUBCATEGORY

    Of these 3 elements of selection list... what I save is the "return value" of the subcategory, which is an identifier. If the problem appears when I try to change the information after I save it. I tried to extract the information in the "source type" box with an "sql return value" as well as the sector 'default value', but he did show errors when I want to create a new record... So I wonder if I can bring data with javascript or otherwise... Thank you

    Best regards, bernardo

    Hello Bernardo.

    the problem on your page 3 is that P3_CATEGORY is not automatically by a column of data. That's why when you view an existing record he won't show anything. And because the value is NULL, your 3rd LOV (P3_CATEGORY_ID) won't find something because P3_CATEGORY is null or an invalid value.

    You have two options:

    (1) add the CATEGORY in the database column to your table of PROBLEMS or
    (2) use a calculation or process to extract the CATEGORY based on your subcategory (P3_CATEGORY_ID) and fill P3_CATEGORY with this value. This calculation/process to trigger after the process of "fetch".

    See my calculation of example on page 3. In addition I also put P3_TOOL as "Page to go" for P3_CATEGORY_ID LOV, because you always have to specify all the columns that are used in the SQL statement 'Cascading LOV Parent éléments' or 'Page to present '.

    Hope that gives you a direction.

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

  • In cascade LOVs (APEX 4.1) problem, using in the report does not define values

    Hello

    I use APEX 4.1.0.00.32 and I have a simple report as

    SQL :*

    SELECT * in the region
    Region WHERE the like '% "| P3_REGION | » %'
    and country like "%" | P3_COUNTRY | » %'
    and the city like '% "| P3_CITY | » %'

    Elements:*.

    P3_REGION:
    Select a separate region as d, r of the region of the region

    Display the Null value: YES
    Value null, display value: - Select -
    Return value of NULL: + 0 +.

    P3_COUNTRY:
    Select distinct country as d, r of the region of the country where region =: P3_REGION

    Display the Null value: YES
    Value null, display value: - Select -
    Return value of NULL: + 0 +.
    Cascading LOV Parent article (s): P3_REGION

    P3_CITY:
    + select distinct city, city as the region r, whose country =: P3_COUNTRY

    Display the Null value: YES
    Value null, display value: - Select -
    Return value of NULL: + 0 +.
    Cascading LOV Parent article (s): P3_COUNTRY


    The LOVs work very well and the correct values are displayed if cascade through them

    So, I want to the last step to filter the report with the values that were selected in the lovs. And that I does not.
    I tried to add a button with the SUBMISSION of the page. After choosing values in all the LOVs and by clicking on the button SUBMIT page supports, alle LOVs are disabled (with value - select-) and the report shows all lines.
    I tried to change the "redirecting to Page 3" button and setting the values P3_REGION, P3_COUNTRY, P3_CITY P3_REGION., P3_COUNTRY. & P3_CITY. but without success.
    I tried to use the 'Page Action time value' parameter to 'Validate' or 'redirect and set' for all the element LOVs or only the last element LOV, but then the cascade of the LOVs is not working properly and the report does not change.

    I am confused as I Don t know what I can do so far. I think this should be a condition easy limit/filter the report with the values in the LOVs.
    In addition, it should be possible to choose only the LOV region and then limit the report with this region (not select country and city)

    Thanks in advance!

    I had a problem similar to a previous version, fixed when I updated element Source value or Expression (the section of the Source) to himself.

    I mean:
    for the P3_REGION, defined as & P3_REGION element.
    for the P3_COUNTRY, defined as & P3_COUNTRY element.
    for the P3_CITY, defined as & P3_CITY element.

    It will be useful.

  • Apex 4 Cascading LOV s how to define a child LOV back to the null return value

    Hello

    My problem is that I use the new dynamic action to implement features of LOV cascading to the Apex 4 which means not having to submit the page to update child LOVs after parent LOV changes.

    What I find, is that when you change the value LOV parent, then the child LOV (which has a return value of zero) is not or by default in the return value zero (in my case no selection should return-1) if the list is filtered to a different set of values, which is not a selection valid. The LOV child is left without a choice when I need its default value to the return value zero (-1, which represents all values).

    Also, I expected to do before the page is sent and filtering to the bottom of the hierarchy of LOVs can work when the child is zero (-1, which means that all values) and in turn her child LOV (s) will also the child null filter.

    Any help would be appreciated.

    Thank you

    Hi 804641,

    I don't know if I get your problem and I tried to reproduce.

    http://Apex.Oracle.com/pls/Apex/f?p=2672:6 is my example with a LOV cascading where I also defined a dynamic action that is triggered when P6_EMPNO changes and it shows the current selection.

    Maybe it helps if install you an example on apex.oracle.com and provide space to work/user/pwd, so that I can have a look. I'm not sure about your sentence "help for a new dynamic to implement cascading LOV feature", because dynamic actions are not necessary for LOVs cascading. It is a characteristic of the types of items themselves where you just set the attribute "Cascading LOV Parent éléments".

    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

  • sign of several pages

    Hello

    I tried to figure out how to get a user added to a database using ajax style multi page registration process.


    Love on linked.com

    Can I start a session and hold each value of the current page, and then pass to another page, then have everyone added to the next page?

    How do we?

    I have around 20-30 fields in the table user, most of it is unnecessary until they have completed the initial sign facing upwards.

    But I would like to believe that the page is not reloaded.

    Thank you

    If you want to do it without the page pretending to be reloaded, you will have to do with Ajax. If you know any jQuery, it makes it pretty simple Ajax. However, Ajax is not 100% reliable, because some people might have JavaScript disabled. The best way is to run first with reloading pages. Then refine to work with Ajax.

    With a shape that consists of several pages, there are two ways to handle things. One is to store the results of the first page in a hidden fields on the second page, and then store the results of these two pages in page 3 and so on. This is a rather awkward process. Best is to create a session on each successive page and store the values in session variables. Destroy the session when the form is finally sent.

    session_start();
    if ($_POST) {
      foreach ($_POST as $key => $val) {
        $_SESSION[$key] = $val;
      }
    }
    
  • Need to customize LOV in OFA page

    I have a requiremnt to change a LOV in a page of the OFA.

    Query current LOV is like that

    SELECT * FROM (SELECT WU.NAME AS NAME, WU. DISPLAY_NAME, WDP. ORIG_SYSTEM, WU. WU WF_ROLE_LOV_VL, WF_DIRECTORY_PARTITIONS WDP EMAIL_ADDRESS WHERE WU. ID_PARTITION = OF THE WDP. Id_partition) QRSLT WHERE (ORIG_SYSTEM in ('FND_USR', 'PQH_ROLE',: 1) ORDER OF DISPLAY_NAME;


    I do add a condition name not like ' % @%.


    Kindly let me know how to achieve this.


    Thank you

    1. where should I keep the file of the controller in the system? (so what change should be done on the path as well)

    You can create it in a way custom as at the last you will be specifying the path on the personlizing page it.

    2.i can see that this CO is also using some other LOV... I don't want to change the other LOV

    There is no need to make that you can make your changes and then call super to call base controller.

    3. also I find that this VO uses several places, but I can find different queries

    What do you mean by that... When make you changes in the controller then reflect these changes on this page only in which resides this controller.

    4 iProcurement Super User > Notifications > holiday rules > rule response

    Try to run the query and check if find any update error thread

    Thank you
    AJ

  • How to configure Firefox to open several pages at startup and not my home page to open several tabs?

    So I don't know how to set my homepage to open several tabs, however she has the undesirable effect of which in fact so these tabs are opened, whenever I hit the home button. Is there a way to set Firefox to open several pages at the start, while not actually affecting home page to open several tabs?

    You can modify a copy of the desktop Firefox shortcut and add links in the field target to make Firefox to open these pages when you use this shortcut.
    See:

    If you need more space (i.e. exceeds the maximum length) then use a CMD file with the start command.

  • opens several pages. I changed the magnetic link. then it happened

    I changed the settings to my magnetic link, now when I use bit torrents, it opens several pages

    Do you mean Firefox opens up a lot of blank tabs? This article contains information on the recovery of this problem: Firefox opens several times empty tabs or windows after clicking on a link.

    If the pages are not empty, they seem to be advertising, or to follow any other model?

  • I find several pages open at the same time when I try to open certain bookmarks in the subject: home page.is this destiny? but this behavior is intermittent

    I find several pages simultaneously open in firefox when I try to open a link in the bookmarks stored. It is divide the subject: homepage in two and simultaneous display of two pages.
    I really like this. But this feature is planned.
    I find this intermittent behavior and not happening for all the links.
    If firefox has a feature to open several windows as it's going to be great other than the separator add on

    Opening in the sidebar is the default value for the bookmarks created via a link or a button on a Web site.

    You can view the properties of a bookmark using the context menu in the side bar (Ctrl + B; Command + B on Mac).

    In the Bookmark Manager (Bookmarks > show all bookmarks) you can click on the button more in the lower details pane on the right.

    Make sure "Load this bookmark in the sidebar" is not selected.

  • How can I prevent the fact Mozilla a bearing load of all the pages in a several page file at a specific site instead of simply loading the first page?

    The question that follows never used on Mozilla, but now it's the only browser where it happens:

    On the site guess - contact.com, there are a lot of links to pages on file that still go several pages. On all other browsers, you can click on these links on the page and they will be able to open individually, as they should. But on Mozilla, it is impossible to access the information on each page, because the browser will make a 'rolling open', opening at the top of each page of the successive until it reaches the last page of the file - sometimes hundreds of pages later!

    Why the only one still on Mozilla and, more importantly, how can it be stopped?

    Thank you.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode without failure.

    You can try to delete the mimeTypes.rdf file in the Firefox profile folder to reset all the actions file.

  • When several pages are open, I want to see a thumbnail image of the page hot description

    When several pages are open, I want to see a thumbnail image of the page to warm an edit summary description

    You can get an overview of all the tabs opened using the functionality of the tab groups.

    You can see a miniature of a tab preview when you place your cursor on it using the extension of the scope of the tab.

  • I want a new tab to open as my homepage not several pages

    I want a new tab to open with my google homepage and not several pages that are of no interest to me. It seems if you switch the off option only get you a blank page. If you use add functionality that it doesn't now. This 'upgrade' is a nuisance.

    Home page in a new tab

    There are several ways suggested to do, but the easier for many users has been this add-on-> https://addons.mozilla.org/en-US/firefox/addon/custom-new-tab

    Additional question/comment

    Paddy71 said: "If you use add functionality it doesn't now."

    If you are referring to the research in the Add-ons Manager (Firefox button > Modules or Tools > Modules) this problem seems to have corrected yesterday afternoon. If you are referring to something else, you will need to give more detail on what you're trying to do, the steps your are taking, what are the results of your actions, and what you expect as results.

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

Maybe you are looking for