dynamically change the value of a selection list in the form based on a table

Hi friends,

I use a form based on a table. I want to display two fields in the form of lists of selection instead of text boxes and when a value

in a select list is selected, the corresponding values will be included in the next list of selection. For example if Department

value is selected in a selection list that employees in this Department will be included in the employee selection list. I saw a

even using ajax to achieve this as a table in the Dene example application [click here | http://apex.oracle.com/pls/otn/f?p=31517:176:462842537250908:NO].

Is it possible to achieve the same for a form based on a table.

Thank you
TJ

Hi TJ.

Take a look on: [http://apex.oracle.com/pls/otn/f?p=56976:4] - instructions are on the page

Andy

Tags: Database

Similar Questions

  • Dynamically change the item values

    Hello

    I defined a form based on a table with the following values.

    consultant_name - popup LOV based on a sql query
    month popup LOV based on a sql query
    year popup LOV based on a sql query

    Bill rate - screen only
    our cost-screen only

    I want to display bill rates and our dynamilly cost whenever I change the values of the 3 LOVs.

    To do this, I defined a dynamic action
    When event: change
    elements: consultant_name, month, year
    no condition
    real action: run pl/sql

    DECLARE
    B_R NUMBER (4.2);
    O_C NUMBER (4.2);
    BEGIN
    SELECT BILL_RATE, OUR_COST IN B_R O_C OF STAFFING WHERE THE CONSULTANT_NAME = V('P3_CONSULTANT_NAME) AND
    YEAR = V('P3_YEAR') AND MONTH = V ('P3_MONTH');
    : P3_BILL_RATE: = B_R;
    : P3_OUR_COST: = O_C;
    END;

    But during execution, it does not all values of bill_rate and our_cost also do not show any error message as data not found.
    What mistake I made?

    Thank you
    Kouadio

    Published by: user10470431 on August 11, 2010 17:43

    Hi Steve,.

    have you written p3_year or P3_YEAR? Because it is case-sensitive. It is the same of the selected item.

    You use Firefox and you have installed the Firebug add-on? If so, you can take a look if it is in fact the AJAX call when you view the Console tab.

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

  • dynamically change the selection table of

    is it possible to dynamically change the table used in a select statement for an interactive report 3.2 on 11g database? I have a series of similar tables, one for each month of the year. I want to click a month on one page and to set up a table for this month report. I want to use a page for this report and have all the links from the link to the previous page on the same page, just different results based on what month has been clicked.
    I know I could just install 12 different reports and conditionally display each region based on a value passed to the page, but I prefer to create only a single page and a report on this page.

    Thanks for ideas or solutions.

    Hello:

    Because the tables involved are fixed for a given month, you can try something like

    select * from tab_1
    where :p_mth=1
    UNION
    select * from tab_2
    where :p_mth=2
    UNION
    ....
    select * from tab_12
    where :p_mth=12
    

    only the query for the IR. "P_MTH" is the page element has the value entered by the user for the months for which data should be retieved.

    CITY

  • Get the selected value of a select list item in a tabular presentation.

    Hi, I have a tabular form and I'm trying to get the selected value of a select list item and store the selected value in a page element hidden elsewhere on the form of tables, so I can use this value.

    I already have something similar to the input on the tabular presentation elements.

    Get the initial values
    var line = $x_UpTill (this.triggeringElement, 'TR');
    numberOfItems var = $(' input [nom = "f12"]', ligne) [0];

    numberOfItems = 123456.123

    What I want to do is soemthing similar as above but capture the value of a select element in tabular form. I thought I could do something like:

    Get the selected value
    var line = $x_UpTill (this.triggeringElement, 'TR');
    numberOfItems var = $('selected [name = "f08"] .val ()', line) [0];

    But this method leaves the as undefined var numberOfItems.

    Please help me to find a way to identify the item 'select' in the tabular form called "f08" and get this value.

    I am a newbie to jQuery selectors etc...

    Thank you.

    Strange that you do not get an error when you run your 2nd selector.
    In any case for this kind of thing, see the HTML code of your tabular form and tell us what triggers, the element can be useful. Or better create an example at apex.oracle.com.
    In any case, I see two errors:
    (1) is there any html element "not selected" instead, the LOV in the APEX element has the select tag
    (2) you can not write a. val() inside a selector that you must place it after your selection.

    So I'd like to rewrite your code to:
    var line = $x_UpTill (this.triggeringElement, 'TR');
    numberOfItems = $("select_[nom_="f08"]",_row).val () var [0];

  • Two quick questions (hopefully) - right way to dynamically change the CSS class and put of Splash screen implemented

    Couple of quick questions have left me speechless!

    So, it seems obvious that many JavaFX applications want to dynamically change the CSS styles.  Is the best way to do it through la.getStyleClass () .add ("classname") < node >?  The underlying data structure is a list of observable.  So let's say we have 5 styles that simply to change the fill color of a circle of 5 different colors, respectively.  So if I have a condition in which I want to dynamically apply 1 of these 5 styles, as I do now it's by setting all 5 styles as a string in a list by using a static initializer, then I call < node > .getStyleClass () .removeAll (list), then getStyleClass () .add ("classname").  I do this to avoid adding again and still the same style and inflate the underlying list.  What is the right way to manage dynamic CSS styles?

    Finally a very simple I think.  So I know there's a little differently to implement a splash screen.  My app has certainly got bigger in the last few months of development and I noticed there are about a 5 second delay between when I run the application when I see the main stage.  I was thinking what a splash screen would be nice to fill that time.  I had no time to prototype using a Preloader and I fear that using another, early stage start-up again would be too long of a delay.  "I actually thought that using the Nice and simple JVM argument" - splash: image name > "would be simple, easy and effective.  Unfortunately when I try to do, the splash screen appears but never goes away.  Anyone know what is happening with this?

    Your mechanism to manage the css style classes is a good approach; I've used several times. I wonder why the style classes have been implemented as a list, instead of a game, but there may be cases of good use for the use of a list.

    In some cases you can also consider using CSS PsuedoClasses, which were presented in JavaFX 8. Here is a little easier to use, especially if you have two options. But a use case might look like:

    public class Message {
        public enum Status { NORMAL, WARNING, CRITICAL }
    
        private final ObjectProperty status = new SimpleObjectProperty<>(Status.NORMAL);
        private final StringProperty message = new SimpleStringProperty();
    
        // constructor, getters, setters, and property accessors....
    }
    
    public Label createLabel(Message message) {
        PseudoClass warning = PseudoClass.getPseudoClass("warning");
        PseudoClass critical = PseudoClass.getPseudoClass("critical");
    
        Label label = new Label();
        label.textProperty().bind(message.messageProperty());
        message.statusProperty().addListener((obs, oldStatus, newStatus) -> {
            label.pseudoClassStateChanged(warning, newStatus == Message.Status.WARNING);
            label.pseudoClassStateChanged(critical, newStatus == Message.Status.CRITICAL);
        }
        return label ;
    }
    

    And then your css looks like

    .label:warning {
        -fx-text-fill: orange ;
    }
    .label:critical {
        -fx-text-fill: red ;
    }
    
  • Dynamically change the number of sub-panels

    Hello

    I have a computer where usually 4 testplaces of production are connected to.

    I want to have a main VI indicating the status of the 4 different testplaces, that I can do with 4 separate sub-panels - no problem.

    The issue is that I would be flexible in testplaces how I show in a program (as this hole thing is pretty cool, and I expect that some changes will come). Is it possible to dynamically change the number of sub-panels displayed (other that make it twenty of them and turning off then those you don't need)?

    My first idea was to place the school in a table, but unfurtunately is not possible.

    Best regards

    Frank

    Yamaeda wrote:

    The POP in separate windows, and you can have as much as you want.

    Or make separate them windows, and then set up a child-parent relationship in Windows, it seems as if it was all about a user interface.

    http://screencast.com/t/P9SJ1anR

    It's nice enough for the demo beta like software, but works.

    https://lavag.org/topic/17046-multi-panel-interface/

  • Dynamically change the path of the report

    Is it possible to dynamically change the path where reports are saved. TestStand 4.1.1

    Glennjammin,

    You can set a path to the specific report for any sequence that you run via the entry points of process model using the reminder of your sequence ReportOptions. It will allow you to change the current settings in the Options report (including the path) for the execution of this sequence. This allows each of your sequences have unique report options.

    If I understand your question, you want to do is exactly what is meant recall ReportOptions.

    -Jack

  • Dynamically change the language in cvi

    Hello

    I would like to know if it is possible to dynamically change the IUR in English language to Russian?

    I have a program written in cvi and I need to be able to scwitch English to Russian UI when the user clicks a button...

    Thanks in advance

    Yes: You must create a resource of language of the dossier and can then use the LoadLocalizedPanel / LocalizePanel and LoadLocalizedMenuBar / LocalizeMenuBar

  • dynamically change the HomeScreen application title

    Hi all

    As you know, we can dynamically change the application ICON on the home screen,

    what I want to know how to change the title of the application on the home screen.

    I mean when the user foucs on my application, text will appear on the screen.

    When I change an ICON, I want that the text will be changed according to the new icon.

    Is this possible?

    Thank you.

    Try the HomeScreen class - see the documentation of the api for HomeScreen.setName)

  • Dynamically change the order of the components

    Can I dynamically change the order of the components (input text entry LOV, etc.)  inside the layout of the Panel form?

    Currently in 11.1.1.7 but may be considered if necessary upgrade

    Yes, you can.

    See the example attached to this bug: https://java.net/jira/browse/JAVASERVERFACES-2390

    Dario

  • How do I dynamically change the the number of vCPU and amount of a virtual computer memory?

    Hi all

    My first question is how do I dynamically change the number of vCPU and amount of a computer virtual memory when the virtual machine is running? If so, this may be achieved by writing a few scrpits to inform the hypervisor?

    My second question is, I can start a virtual machine in KVM with the number of vCPUs and amount of memory configured in the startup script. I don't know if this is supported in vmware ESXi?

    I couldn't find the answer in the ESXi 5.0 user guide.

    Your suggestion will be highly appreciated.

    Cheng Wang

    http://sparrowangelstechnology.blogspot.com/2012/11/hot-add-of-CPU-and-memory-to-virtual.html

    You can change the ram and the CPU, but it must be enabled.

    by default, only it isn't.

    See this link to change the settings of vm via powercli

    http://ICT-freak.nl/2010/05/07/PowerCLI-script-to-schedule-memory-and-or-vCPU-updowngrade/

  • Dynamically change the cursor?

    Hello

    I want to be able to change the cursor that appears when I rollover text. Basically, I have text/button that can only be clicked when another action has been performed, I wish that this button at the start have the default cursor, and then change the cursor/pointer when the user has run this other action.

    Is it possible to dynamically change the cursor through the code?

    Thanks for your help!

    $("button").css({'cursor':'default'});)

    More information: cursor CSS property and HTML DOM Style cursor property

  • How to dynamically change the host name in the Pages of the URL of the APEX

    Dear gurus,

    Please advise me on how to dynamically change the hostname in the URL used in the pages of the APEX.

    For example: I have the below URL in one of the apex pages.
    owa_util. REDIRECT_URL ("http://adminlxdb03.texas.org:7780/pls/htmldb ' |' / f?") p ='|| v ('APP_ID') | ": 151:" | " v ('APP_SESSION'));

    in the case of a Migration of this apex from one server to another (for example, TEST the PROD box), this / these pages are wrong because the different host id name in the PROD box.

    Is it possible that we can dynamically change the hostname in the URL used in the pages of the APEX.

    for example
    owa_util. REDIRECT_URL ("http://adminlxdb03.texas.org:7780/pls/htmldb ' |' / f?") p ='|| v ('APP_ID') | ": 151:" | " v ('APP_SESSION'));

    should become

    owa_util. REDIRECT_URL ("http://adminetuxdb09.texas.org:7780/pls/htmldb ' |' / f?") p ='|| v ('APP_ID') | ": 151:" | " v ('APP_SESSION'));

    It's adminlxdb03.texas.org (TEST) at adminetuxdb09.texas.org (PROD).

    If the page has no error...

    Please notify.

    Thank you
    Sheik

    You don't need to provide the hostname while redirecting in the pages of the apex

    owa_util. REDIRECT_URL ('f? p ='| v ('APP_ID') |) ": 151:" | " v ('APP_SESSION'));

    should work just fine.

  • is it possible to dynamically change the industrial action.

    Hi friends,

    I have a scheduler job to call the shell script. Is it possible to dynamically change the industrial action (IE change the name of the shell script based on requirement).

    My basic idea is to have a scheduler job to call different shell scripts based on requirement.

    Thanks in advance
    Jeeva.

    You can try using DBMS_SCHEDULER. SET_SCHEDULER_ATTRIBUTE with:

    attribute => 'JOB_ACTION'
    
  • Help to change the Code to display a table of 7 columns

    Hello

    Is that someone can help me to change the code I have a table of column 7 and as many line because it's results?

    Right now, all my results are in a table of column 1 and and 1 row.

    Thank you

    Roseline

    DECLARE
      vtemp  varchar2(4000) DEFAULT ' ';
     
    BEGIN
      htp.p('<HTML>');
      htp.p('<HEAD>');
      htp.p('<TITLE>DISQUES C</TITLE>');
      htp.p('</HEAD>');
      htp.p('<BODY>');
     
    FOR idx IN
        (
        SELECT DVD_ID, NomFichier,
               row_number() over(partition BY DVD_ID ORDER BY NomFichier  ASC) AS rna,
               row_number() over(partition BY DVD_ID ORDER BY NomFichier DESC) AS rnd
          FROM elements
         WHERE PROJET_ID = 1
      ORDER BY DVD_ID ASC, rna ASC
        )
          loop
          
            IF idx.rna = 1
            then
              htp.p('<TABLE>');
              htp.p('<TR>');
              htp.p('<TD>' || idx.DVD_ID ||' </TD> ');
              htp.p('</TR>');
              htp.p('<TR>');
            end IF;
     
            vtemp := vtemp || '<TD>' || idx.NomFichier || ' </TD>';
     
            IF mod(idx.rna, 7) = 0 OR idx.rnd = 1
            then
              htp.p(vtemp);
              vtemp := ' ';
            end IF;
     
            IF idx.rnd = 1
            then
              htp.p('</TR>');
              htp.p('</TABLE>');
            end IF;
          
          end loop;
     
    htp.p('</BODY>');
    htp.p('</HTML>');
     
    end;

    In fact I've complicated way there:

    DECLARE
        NOT_FIRST_DVD_ID BOOLEAN := FALSE;
        INCOMPLETE_ROW BOOLEAN;
        COLUMNS_PER_ROW NUMBER := 7;
    BEGIN
        htp.p('');
        htp.p('');
        htp.p('DISQUES C');
        htp.p('');
        htp.p('');
        FOR idx IN (
                    SELECT  DVD_ID,
                            NomFichier,
                            ROW_NUMBER() over(partition BY DVD_ID ORDER BY NomFichier  ASC) RNUM
                      FROM  elements
                      WHERE PROJET_ID = 1
                      ORDER BY DVD_ID,
                               RNUM
                   ) LOOP
          IF idx.RNUM = 1
            THEN
              IF NOT_FIRST_DVD_ID
                THEN
                  IF INCOMPLETE_ROW
                    THEN
                      htp.p('');
                  END IF;
                  htp.p('');
              END IF;
              NOT_FIRST_DVD_ID := TRUE;
              htp.p('');
              htp.p('');
              htp.p('');
              htp.p('');
          END IF;
          IF MOD(idx.RNUM,COLUMNS_PER_ROW) = 1
            THEN
              htp.p('');
              INCOMPLETE_ROW := TRUE;
          END IF;
          htp.p('');
          IF MOD(idx.RNUM,COLUMNS_PER_ROW) = 0
            THEN
              htp.p('');
              INCOMPLETE_ROW := FALSE;
          END IF;
        END LOOP;
        IF INCOMPLETE_ROW
          THEN
            htp.p('');
        END IF;
        htp.p('
    ' || idx.DVD_ID ||'
    ' || idx.NomFichier ||'
    '); htp.p(''); htp.p(''); END; /

    SY.

Maybe you are looking for

  • battery low life iphone 5s

    I got an iphone 5S for 9 months and the lie of the battery is really poor, it takes about 7 hours with minimal use, so you can not had our during a full day without the battery running out.  I went to the Apple store and they ran some tests and reset

  • iOS 9.3 backup and restore to iOS 9.2.1 device

    Hello I have an iPhone 4S and on Monday, March 21, I have updated my phone to iOS since iOS 9.2.1 9.3 and everything works fine. Wednesday, I acquired a device slightly better, the iPhone 5, but he was running iOS 9.2. I've updated the iPhone 5 in th

  • "Invalid serial number" when you install utilities Toshiba NB200-h-13

    This model (h-13) is the student edition sponsored by the Government, used by thousands of Greek students and is not in the support downloads. I made a new partition and installed XP Pro SP3, in addition to the standard XP Home. I downloaded all the

  • phones in bulk is a false company they take your money

    in bulk phones takes your money, nothing to do with is a scam they are not legitimate nothing to do with you will lose your money

  • FS116 - have information network?

    the FS116 there available data netowrk?