Drop-down list value depends on another drop-down list

I placed a variable script from another file. Original file works well, but my file created does not work.

https://Acrobat.com/#d=Nla8o4s5FUP8Qp0cl-hAHg

Can't we do where I made a mistake. How can I solve it?

Give a propername subform Page1 in the hierarchy (for example, page 1). Currently, the default name is used (#Subform [0]).

Replace references to the script object for the given name in the hierarchy.

That should solve your problem.

Thank you

Srini

Tags: Adobe LiveCycle

Similar Questions

  • Drop-down selection w/export value sent to another field.

    Good afternoon

    I managed to create a drop-down menu field called Dropdown1 with a list of user names. Each user name has a value of unique export assigned to them.

    I then created a second text called Text1 field where the value of exports is complete. In this area, I've added the following script Adobe to send the value of exports of Dropdown1 successfully to Text1

    Event.Value = this.getField("Dropdown1").value;

    However, I need allow the user to make manual changes to both Dropdown1 and Text1 without the script of the substitution of manual entry. Is there a solution?

    Thank you!

    Ed

    I guess that's a custom calculation script. I think a better approach is to set the value of the text field when the user makes a selection in the drop-down list by using a script customized to the key sequence in the dropdown menu, something like:

    Custom keystroke for drop-down list script

    If (! event.willCommit) {}

    getField("Text1").value = event.changeEx;

    }

    Don't forget to delete the calculation script if you do this. In addition, it is best that you also set the option "Commit selected value immediately" for the drop-down list.

  • Turn off/on a tabular Form attribute depending on the value selected in another attribute

    Dear Experts,

    I have

    1. an attribute in the form that is a select statement list containing 2 static values:

      • Family
      • Only

    and I have

    2 another attribute of tabular presentation that is display text (escape special characters, does not save the State), this attribute is also a link to another page.

    My requirement is when I select the family of another select list this attribute must be enabled and when I select one it should be disabled.

    Kindly help out me experts!

    Thank you and best regards,

    Madonna

    Hey Madonna,

    Please take a look at your page. I added a dynamic action that can be triggered by a change in the Type 'accompany' - selection list. dynamic action to display or hide the link 'Add family' according to the value of the selection list. the code of the dynamic action is as follows:

    $('.myClass').each (function () {}

    If ($(this).) Val() == 'Family') {}

    $(this) .parent () .parent ().find('.open_modal').show)

    } else {}

    $(this) .parent () .parent ().find('.open_modal').hide)

    }

    })

    where 'myClass' is the class that gave you to the selection list, and the "open_modal" is the class that gave you for the link.

    I used a show and hide because you cannot disable a link.

    I would like to know if that's what you had in mind.

    Kind regards

    Vincent

  • create popup LOV values depends on the return values of select tabular list

    Hello

    My requirement is

    In a table, first column is selection list and second column is LOV Popup.

    I want to create if select user from the selection list value 'A' then displays the popup LOV values.

    If the user selects 'B' values in the select list and then display nulls within the popup LOV.

    Kind regards

    Arianne.

    Hi ujwala1234,

    ujwala1234 wrote:

    In a table, first column is selection list and second column is LOV Popup.

    I want to create if select user from the selection list value 'A' then displays the popup LOV values.

    If the user selects 'B' values in the select list and then display nulls within the popup LOV.

    Use the Popup LOV cascading given by Jari wool in this blog: Blog APEX of Jari: pop-up list of the 'waterfall' Article on slot form of

    Write your Popup LOV query such as if, 'A' is selected it returns other values it will return null value.

    Kind regards

    Kiran

  • List of SelectOneChoice with a special value which allows another element of input text

    Hello

    My clients needs a page with a selectOneChoice component and a special value in it ('other'), which should allow another piece of text.

    What is the best practice for whom?

    I use Jdev 12.1.2

    Thanks experts!

    Hi Jose,

    If you have added the 'other' value in the table, then all you need to do is the following:

    The area you want to hide, should be with the property visible as #{bindings.mylov.attributeValue eq 'other'}. Now you SelectOne | Choice must be with autosubmit-> true, and finally, the area you want to hide must have a partialTrigger pointing to the SelectOneChoice.

    In this way, if you select 'other' the autosubmit updates the model, this expression bindings.mylov.attributeValue eq 'other' will be set to true, and you will make a PPR in the hidden component that will appear.

    Concerning

  • The display of a value that is dependent on another value

    Hello everyone

    I have the following Setup. I have table counties, that has a foreign key CityID then I have table cities that has a StateID, then I have table States that has CountryID and then I table country.

    On the page, I have a LOV for counties. Now, I just want to let the user see, the name of the city, the State and the country according to the County, he chose.

    How can I do this?

    Many loveeeeeeeeeee

    Hello

    By LOV query, I mean the CountiesVO.
    Obviously your LOV is based on a viewObject, you created (VO counties).
    In the application of this VO you must make the necessary changes, it's also returns CityName and StateName.

    for example, if your query is:

    Select county_id, country_name
    Counties

    It must put in place something like:

    Select country_name, city_id, city_name, state_id, county_id, state_name
    counties, cities, States
    where the... (join the tables by id)

    Gabriel.

  • Hide columns in Table B, based on values LOV in another row of the table:

    Hello

    Jdev 12.2.1.0

    I have two tables A and B and I hide columns b based on the value of row of table A LOV. For example, I have a line in A table that has a column with the x, y, z values lov. Now, if I select the row in the table has and change the LOV to x, I had to hide some of the columns in the table (B) is there a way to get this feature? Any help would be appreciated.

    Thank you

    Assume:

    1 table a call "DepartmentId" column this column has LOV.

    B 2-table a column "ColumnInB" this column will be visible depending on the value of "DepartmentId".

    Try to do the following:

    1 - from data controls, drag "DepartmentId" attribute and drop it on the page as inputText then together make this inputText to false (you can remove it, but don't forget the corresponding binding in pageDef. not deleted).

    2. copy the value of the inputText which will be as "#{bindings." DepartmentId.inputValue}"and go to the"ColumnInB"column and visible property beyond the copied value.

    3 - the ColumnInB visible will be the condition as:

    4-set DepartmentId autoSubmit = 'true '.

    5-set table partialTriggers table B has id and id of DepartmentId LOV

  • table col name get the details of the table column and inserting of values depending on the data type of the column

    Hello

    I am train to write a procedure where I would spend the table as a parameter name and then the code would determine it is column names, and then he would insert records in each column depending on the data type. could someone help me with this.

    Thank you

    SM

    Hello

    Perhaps you need to dummy data just for the table.

    Here is my exercise

    create or replace
    procedure generate_rows(p_table_name varchar2, p_count number)
    is
      --
      function insert_statement(p_table_name varchar2) return clob
      is
        l_columns clob;
        l_expressions clob;
        l_sql clob default
          'insert into p_table_name (l_columns) select l_expressions from dual connect by level <= :p_count';
      begin
        select
          -- l_columns
          listagg(lower(column_name), ',') within group (order by column_id),
          -- l_expressions
          listagg(
            case
            when data_type = 'DATE'
              then  'sysdate'
            when data_type like 'TIMESTAMP%'
              then  'systimestamp'
            when data_type = 'NUMBER'
              then  replace('dbms_random.value(1,max)',
                      'max', nvl(data_precision - data_scale, data_length)
                    )
            when data_type = 'VARCHAR2'
              then  replace(q'|dbms_random.string('a',data_length)|',
                      'data_length', data_length
                    )
            else
                    'NULL'
            end, ',') within group (order by column_id)
        into
          l_columns,
          l_expressions
        from user_tab_columns
        where table_name = upper(p_table_name);
        --
        l_sql := replace(replace(replace(l_sql,
          'p_table_name', p_table_name),
          'l_columns', l_columns),
          'l_expressions', l_expressions);
        -- debug
        dbms_output.put_line(l_sql);
        --
        return l_sql;
      end;
    begin
      execute immediate insert_statement(p_table_name) using p_count;
    end;
    /
    
    -- test
    create table mytable(
      id number(4,0),
      txt varchar2(10),
      tstz timestamp with time zone,
      dt date,
      xml clob
    )
    ;
    set serveroutput on
    exec generate_rows('mytable', 10);
    select id, txt from mytable
    ;
    drop procedure generate_rows
    ;
    drop table mytable purge
    ;
    
    Procedure GENERATE_ROWS compiled
    Table MYTABLE created.
    PL/SQL procedure successfully completed.
    
    insert into mytable (id,txt,tstz,dt,xml) select dbms_random.value(1,4),dbms_random.string('a',10),systimestamp,sysdate,NULL from dual connect by level <= :p_count
            ID TXT
    ---------- ----------
             3 WnSbyiZRkC
             2 UddzkhktLf
             1 zwfWigHxUp
             2 VlUMPHHotN
             3 adGCKDeokj
             3 CKAHGfuHAY
             2 pqsHrVeHwF
             3 FypZMVshxs
             3 WtbsJPHMDC
             3 TlxYoKbuWp
    
    10 rows selected
    
    Procedure GENERATE_ROWS dropped.
    Table MYTABLE dropped.
    

    and here is the vision of Tom Kyte for the same https://asktom.oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:2151576678914

    Edit: to improve my code, it must use p_count as bind as Tom.

  • Dynamically add the instanceManager text value to instanceManager another

    Hello

    I have a dynamic form that has two subforms with instanceManagers. One is called options, and another description. Subform 'options' has a button that adds an instance both "_options" and «_description» InstanceManagers

    I click the button twice so I have three instances of each. Each instance of "_options" has a field OPTION, and each instance of '_description' has a DESCRIPTION field. I want to write code that will automatically set the text value of the OPTION to the value of the DESCRIPTION text.

    example:

    -options

    -OPTION (input field)

    -descriptions

    -DESCRIPTION

    Click

    Click

    -options

    -OPTION (1)(input field)

    -OPTION (2)(input field)

    -OPTION (3)(input field)

    -description

    -Description (1)(input field)

    -DESCRIPTION (2) (field)

    -DESCRIPTION (3) (field)

    fill option fields

    -options

    -OPTION (1)(rawValue: the soup is good)

    -OPTION (2)(rawValue: soup really sux)

    -OPTION (3)(rawValue: soup is ok)

    and here's my problem - how do I get these values for the other instanceManager? I have a code that does not work, but I don't want to offer something. Please, help me, I am struggling with this instance of reference bs for awhile

    You must use xfa.resolveNode to analyze the number of index levels.

    I just did a quick test with a few tables on the output of a field event in Table1, I put a corresponding field in Table2 to the same value. Works the same with subforms.

    xfa.resolveNode ("Table2.Row1 [" + this.parent.index + "]"). TextField1.rawValue = this.rawValue;

    Depending on how many levels deep into the repeating subform your domain is that you will need to play with the 'this.parent.index' to get the path to the repeating subform (this.parent.parent.index, etc.).

    Hope that's what you're looking for!

  • How to fill a hidden form field with a value passed in another page

    I use PHP/MySQL and DW CS4.

    I'm trying to get the foreign key to a table and include it in a hidden field in a form to another table.

    The user selects a 'need' to a list and is taken to a new page that displays the need selected in the previous page and a form that the user can fill out with details of its offer, there is also a hidden field in the form that contains the index to the table needs, this hidden field retains the external key. Most of the code works, except to fill the hidden field with the external key. I proved (by printing it on the screen) that I got the external key and stored in a variable ($saveNeedId). I am unable to do so, what affect this variable in the hidden field in the form, I'm about to be stored in a table. Sometimes, I have zero and sometimes I get the index of the first necessity in the table. It should be simple but I can't make it work, I must be missing something obvious - still very new to PHP.

    The following code sets the variable and display for test purposes

    $saveNeedId = "-1";
    If (isset($_GET['needId'])) {}
    $saveNeedId = $_GET ['needId"];
    print $saveNeedId;
    }

    Here is the code that implements the fields hidden in the form, where I'm putting in place is the first one, needId

    < input type = "hidden" name = "needId" value = "<?" PHP echo $row_rsNeedsUnmet ["needId'];? ">" / >
    < input type = "hidden" name = "offerId" value = "" / > "
    < input type = "hidden" name = "MM_insert" value = "form1" / >

    The page where the user sees the list of needs is here www.hollisterairshow.com/weneed.php

    I would really appreciate sone help with this, I tried all combinations of double quote, percent sign and nothing works... sigh.

    Tony

    The following code sets the variable and display for test purposes

    $saveNeedId = "-1";
    If (isset($_GET['needId'])) {}
    $saveNeedId = $_GET ['needId"];
    print $saveNeedId;
    }

    Here is the code that implements the fields hidden in the form, where I'm putting in place is the first one, needId


        
        

    I looked at your page. It seems that you have thought about it.

  • How to make a loop with variable values depending on where you are in the loop

    Hello

    I need loops / nested loops that choose different figures depending on where you are in the loop.

    The entire function must operate at times 'ml '. 'ml' is a dynamic figure.

    Loop 1 = while the loop is the first 12 iterations, "exconemp" must be equal to 100. 13-24 iterations, 'exconemp' to 102.5 equal, for 25-36 TI 105.06, 37-48, it will be 107.69. This must change each 12th iteration until he reached 'ml '. The calculation takes the value of the previous 'exconemp' and then that multiply by 0.025.

    Loop 2 = while the loop is in 120 first iterations, 'abc' should be equal to 0.015 and additional iterations should use 0.01. It should also work in a way to know if 'ml' is greater or less than 120 and work accordingly.

    My main problem is - this - how can I get loops to go like this:

    While the iteration is < 12, to do this, THEN take the final figure (12th iteration) and begin the 13-24, make this SO etc etc.

    How to produce a THEN statement? I can get the code to pick up the final values, but does not change along the way.

    I think I might better create an array for loop 1, but I'm not entirely convinced of that. Also, I think it would be better/more net if I can get "month total 1 ' and ' month 2 total ' in loops, but do not know how to do this.

    The values I need to produce (only 36 first shown):

    1-12 = 125.55, 251,65, 378.31, 505.52, 633.29, 761.63, 890.53, 1019.99, 1150.03, 1280.63, 1411.81, 1543.57
    13-24 = 1679.05, 1815.12, 1951.79, 2089.06, 2226.93, 2365.41, 2504.50, 2644.20, 2784.52, 2925.45, 3067.00, 3209.18
    25-36 = 3355.19, 3501.85, 3649.15, 3797.11, 3945.71, 4094.96, 4244.87, 4395.44, 4546.68, 4698.57, 4851.14, 5004.38

    var ml = 240 / / dynamic figure, multiple of 12 up to 780
    var exconemp;
    var exconem = 100;
    var inf = 0.025;
    Tree var;
    var tec;
    power of the var;
    var fvis;
    var abc;
    var fvee;
    MVT var;
    function myfunction() {}

    Loop 1

    While (ml < = 12) {}
    exconemp = exconem;
    // }
    so that {(ml > 12)
    exconemp = exconem * inf;
    //}

    end loop 1

    trace ("exconemp =", exconemp); employee contribution

    tree = exconemp /(1-0.2)-exconemp;
    TEC = exconemp + tree;
    trace ('tree', tree);
    trace ("tec", tec);
    power = Math.pow (1 + 0.07, 1/12);

    Loop 2

    While (ml < = 120) {}
    ABC = 0.015;
    //}
    then {}
    ABC = 0.01;
    //}

    end loop 2

    fvis = power *(1-abc/12);
    trace ("fvis =", fvis);
    FVEE = tec * fvis;
    trace ("fvee =", fvee); month 1 total
    MVT = (CET + fvee) * fvis;
    trace ("MVT =", MVT); month 2 total
    //

    for (var i: Number = 0; i < ml; i ++)
    {
    MVT = (CET + MVT) * fvis;
    trace ("tfvloop =", MVT);
    }
    }

    I hope that I've explained this well enough.

    Thanks in advance.

    I think that will do it even if I don't quite get the numbers you posted.

    Stop();

    var ml = 48; figure dynamic, multiple of 12 up to 780
    var exconemp;
    var exconem = 100;
    var inf = 0.025;
    Tree var;
    var tec;
    power of the var;
    var fvis;
    var abc = 0.15;
    var fvee;
    MVT var;

    MyFunction();

    function myfunction()
    {
    exconemp = exconem;

    for (var index: uint = 1; index)<= ml;="">
    {
    trace(index + "--------------------------------");
               
    tree = exconemp /(1-0.2)-exconemp;
    TEC = exconemp + tree;
    power = Math.pow (1 + 0.07, 1/12);
    fvis = power *(1-abc/12);
    FVEE = tec * fvis;
                       
    if(index == 1)
    {
    trace ("month 1 total =", fvee);
    }
    another if (index == 2)
    {
    MVT = (CET + fvee) * fvis;
    trace ("month 2 total =", MVT); month 2 total
    }
    on the other
    {
    MVT = (CET + MVT) * fvis; now that we're here the MVT auto perpetuates on himself
    trace ("months" + index + "total =", MVT); month total n
    }
                       
               
    If (index %12 == 0)
    {
    exconemp = exconemp *(1+inf);
    trace ("changed to exconemp to:" + exconemp);
    }
               
    If (index % 120 == 0)
    {
    ABC =. 01;
    trace ("changed abc to:" + abc);
    }
               
    }
    }

  • use the time stamp value find value Y in another waveform

    Hello, there, I'm using labview 2013 sp1. I'm sorry that I can't use a picture to describe the problem.

    The wizard sampling DAQ 2 waveforms of 2 channels to HAVE

    Want to use mounted on board one of the waveforms as the triger to get the value of Y to another waveform (as was done with an oscilloscope)

    I tried method 2:

    1. the useand use to get the timestamp.

    are - this method works?

    the problem is how can I use the value of time I've learned very well the value of Y in other waveforms?

    Thank you much in advance.

    I'm sorry you use screw Express, and I'm even more sorry that you are using the dynamic data type.  Using these are not your fault, it's that NEITHER recommend for new developers, but you tend to not have as much control then you type using more stringent data and write the code yourself.

    Using Split signals you can withdraw all of your signals since the type of dynamics and process data of each.  Don't know why you would use signals select but which, in my opinion, they do the same thing.  Then, you use DDT to to get your data into a format that is more useful.  Select the Conversion of a single waveform.  The explanation I gave in my previous post is valid.

    Joined a VI that does what you want.  You can see that once you have a waveform and its components, you can do a much better job.  Like finding the Min and Max of a wave by using table functions.  It searches the first place where AI0 went above your trigger and then gets the value that AI1 was at this same level, which will be at roughly the same time.  Don't forget not that served it one after the other, so no two samples will be taken at the same exact time for most of the DAQ cards.  Few are simultaneous sampling.

  • Access the value of an another file callback function

    I have a callback function, where to get the current value of a control in a main.c.

    GetCtrlVal (panelHandle, PANEL_RINGSLIDE_1, &p);
    

    I have another file (test.c) in the same folder. I need to use the value of & p in the file test.c. How is that possible?

    I have understood #include main.c in the file test.c but not working.

    Any ideas?

    In applications that use multiple source files, it is advisable to have a set of common definitions that covers all of your project. So, for example, you could have a "common.h" file, which is #include'd files test.c both your main.c. In this file common.h, you might have a statement:

    extern int p;

    This indicates to the compiler, for each of your steps in compilation of file c, the variable p is defined somewhere else and do not worry about this. Now, in a few of your .c files (not really matter which), you then have to declare the real variable p:

    int p;

    So now, when you reference an upside in one of your modules, you refer to the same variable across the whole project. (It is probably best to use a longer, more descriptive name for the variable instead of just p - this avoids possible confusion as your program grows in complexity).

    JR

  • Validate a value based on another

    Hello

    I have a table structure

    xx_IMP_TBL

    (Number RECORD_ID,

    STATUS varchar2 (20).

    Number DELIVERY_ID,

    Number DELIVERY_DETAIL_ID,

    Number QUANITY_TO_SHIP,

    PALLET_NO varchar2 (20).

    LPN_NO varchar2 (20).

    Number ORGANIZATION_ID)

    Now I have a scenario where I'm also insert 6 rows and the value of delivery_is is the same for all rows but delivery detail will change.

    Now I'm inserting a value of pallet_no (P12345). Now there I must assure you that for a given delivery id the palette must remain the same

    If they are not then I have to report the error. to accomplish this, I have to write a select statement in the statement. So far I have cam to the top with the following query

    SELECT COUNT (DELIVERY_ID)

    -BY lv_waybill_cnt

    OF xx_IMP_TBL

    WHERE delivery_id = 36780655

    AND pallet_no = 'P12345"HAVING

    (Delivery_id) count = COUNT (PALLET_NO);

    but it is not giving me the desired result. Could someone help me with this query? I use 11g

    Thank you

    If I understand correctly, you want to find delivery_id values that have more than one pallet_id associated with them.  If so, then:

    Select delivery_id, pallet_count County (separate pallet_id)

    of gsi_3pl_shpconf_imp_tbl o

    where delivery_id = 36780655

    Delivery_id group

    having count (distinct pallet_id) > 1

    For a unique delivery_id, this is trivial, but if you remove the predicate on delivery_id or provide a list of values delivery_id you can find all occurrences.

    John

  • Fill a field with a value only if another field has been filled?

    I'm looking to fill a field with a predetermined only if another field is not empty. I have no idea how to proceed.

    Any help would be appreciated.

    Thank you

    Use this code in the custom calculation of LineRow1 script:

    Event.Value = (this.getField("SourceDescriptionRow1").valueAsString == "")? « » : « 001 » ;

Maybe you are looking for