How to set the default value of selectOneChoice

Hi all
I have two selectOneChoice (soc1 and soc2) in two respective pages with the same datacontrol. Now, I need set the default value of soc2 according to the value selected in soc1.
For example: -.
If the user has selected a value in soc1 say 'Bag' in the list then it must affect the default in soc2 as 'Bag' when loading the second page. The time as selectOneChoice was created using the same data contol.

How can I achieve this?
Please suggest.

You can try with this?

Place curIndex pageflow scope and use

This.SOC2.SetValue (Integer.ToString (curIndex));

~ Abhijit

Tags: Java

Similar Questions

  • How to set the default value of the component selectOneChoice in the table to the ADF

    Hi all

    I use jdev 11.1.1.6.0 version.

    I used an adf table in which an attribute is selectOnceChoice.

    To create the table and selectOneChoice I used the data control java bean.

    and drag and drop a table and after that I have drag and drop one of the attributes as selectonechoice and linked with the return of the method list as < key, value > pair.

    I want the default value to select only one option in each attribute rows.

    I checked with simillar issue on post next, but not yet resolved.

    
    
    
    
    

    My jspx code is

    
    <af:column id="c11"
                                             headerText="Invoice To" >
                                        <af:outputText value="#{row.invoiceTo}" id="ot19"/>
    <af:selectOneChoice value="#{bindings.invoiceTo.inputValue}"
                                                        label="#{bindings.invoiceTo.label}"
                                                        required="#{bindings.invoiceTo.hints.mandatory}"
                                                        shortDesc="#{bindings.invoiceTo.hints.tooltip}"
                                                        id="soc3"
                                                        autoSubmit="true"
                                                        valuePassThru="true">
                                      <f:selectItems value="#{bindings.invoiceTo.items}"
                                                     id="si4"/>
                                    </af:selectOneChoice>
    </af:column>
    
    
    

    where invoiceTo is the table attribute and the invoiceTo attribute is dragged and dropped as a SOC function list Source data mapped data value with the List attribute

    and the display attribute

    Data value = invoiceTo List = lovMasterKey attribute

    Display attribute = lovMasterValue

    that list is maintained at < lovMasterKey, lovMasterValue >

    According to the value of invoiceTo line, it should show as default value is selectOneChoice, but its showing no not as a default value.

    Please, help me how set the default value of selectOneChoice in the table according to each value line invoiceTo.

    Thank you all for the help on this issue.

    Problem has been resolved.

    Reason for this was used

    It is solved using code used for the list built for selectoneChoice more

      List lovMasterList = new ArrayList();
    
    SelectItem siItem = new SelectItem();                      
    
    siItem.setLabel(objAfCmnLovMasterListVO1.getLovMasterValue());
    
    siItem.setValue(objAfCmnLovMasterListVO1.getLovMasterKey());
    
      lovMasterList.add(siItem);
    

    Now, I used the code where the line below. InvoiceTo is the key and row.invoiceToItems are the list of articles for selectOneChoice.

    
    
    
      
    
    

    Thank you very much...

  • How to set the default value of the attribute with a sequence number? Is it possible to add a string to seq.no. like abc0001?

    Mr President.

    How to set the default value of the attribute with a sequence number? Is it possible to add a string to seq.no. like abc0001?

    Concerning

    For the date, you can use groovy expression adf.currentDate to set the current date. reference http://adfgouravtkiet.blogspot.in/2012/11/how-to-set-default-values-for-entity.html

    You already have ways to use the sequence.

    How do you add a new value in the form. You're creating a new line of your page (user interface) and by engaging with validation operation? Unless you commit you will not be able to see anything in the table.

    Thank you

  • How to set the default value for the digital control on front panel?

    How to set a default value for a numeric control of LabVIEW 2009 Front Panel? I have several input values that are actually configuration settings I want to settle with the default values of zero. I want them to be the values displayed when the façade first appears until the code is executed.

    I really want to use the Minimum and Maximum limits by default for this because I still want to be able to define acceptable limits for values.

    I would not be able to specify a default value of zero for these entries?

    Enter the desired value, then "right click...... of default data of value to operations. Save the VI.

  • How to set the default value in the select list to cascaded

    Hello
    I use Denes Kubicek cascade example list of selection http://htmldb.oracle.com/pls/otn/f?p=31517:119

    And I want to give cascading the selection list with a default value. So, anyway, I use this application process:

    < pre >
    BEGIN
    OWA_UTIL.mime_header ("text/xml", FALSE);
    HTP.p ('Cache-Control: non-cache');
    HTP.p ('Pragma: non-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ("< select >");
    HTP.prn ("< option value ="' | 1 |) "" > ' | '- all employees-' | ' < / option > ");"

    FOR c IN (SELECT ename, empno
    WCP
    WHERE mgr =: cascading_selectlist_item_2)
    LOOP
    HTP.prn ("< option value ="' | c.empno |) '">' || c.Ename | ("< / option >");
    END LOOP;

    HTP.prn ("< / select >");
    END;
    < / pre >

    How can I select for example empno default 1000?
    Thanks in advance.
    Jacob

    Jakob,

    In this case, your default value is

    HTP.prn (')

    However, you can set the default value in the loop as you want. You just say that is your default - first, second, third...

    In the list select ajax there's no submit and no calculation of values then I assuem your default is the punch one you wan to display when a selection list has been changed?

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • ODI 11 g | How to set the default value in the Interface mapping?

    Hello
    I m interpreting data OID of Oracle DB load target FOR Hyperion Essbase.
    Its my requirement to set the default value for any size target source system it becomes same record for a specific column.
    I thought that it would be fixed in the Interface, but I was not able to do.

    Example:
    Target Essbae Dimension
    Size of account must have the value "FixAccount".
    Dimension of the year must have the value "FY13.
    Dimension of the view must have the value "ActiveView.

    looking for your

    Concerning
    Sher

    Yes

  • How to set the default value of a column from the value of the 2 columns given

    Is it possible to set the default value for a column A, as the concatenated values of columns B and C of the create table statement itself without using the trigger.

    for example, in a line, if column B is 'James' and column C is "smith" then the column has must be "james Smith".
    in another line if column B is 'Bob' and column C is "Taylor" then column should be "Bob Taylor"

    Thank you
    YG

    Yes, it is possible. But what is your version of the database? Try to use "virtual column. Search for a virtual column in the following link.
    http://www.Oracle.com/technology/pub/articles/Oracle-database-11g-top-features/11g-schemamanagement.html
    http://download.Oracle.com/docs/CD/B28359_01/server.111/b28286/statements_7002.htm

  • Windows Explorer - list: how to set the default value to display all the contents of the folder 'List' not 'Tiles '.

    Using the Windows Explorer of Windows 7, how I have by default set to display all the contents of the folder 'List' not 'Tiles '.  I want set a default value for the new folders and edit globally all folders that I have.

    Thank you, Steve

    Hi Steve Menker,.

    Visit the links that measures to work with files and folders in Windows Explorer below:

    1. working with files and folders:http://windows.microsoft.com/en-US/windows7/Working-with-files-and-folders

    2. change the folder options:http://windows.microsoft.com/en-US/windows7/Change-folder-options

    3. organize, sort, or group your files:http://windows.microsoft.com/en-US/windows7/Arrange-sort-or-group-your-files

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to set the default value for the Group of radio buttons

    Hello
    Here's my situation.
    I have a form of HTML text. In the form, I have an element called "* drinks * ' and its options in the radio button group or coffee, tea. Now, I want to put a default value("NA") to the radio of drinks group. Is it feasible. If so, how. Advice would be useful. Thank you

    Hello!

    You can also set a default value in the radio unit of page article under the default setings. Here, you must put the result value (if you have static: Café;) One, the; B, NA; C you write C if you want NA default choice) of your radio.

    concerning

  • How to set the default value of a column?

    Hello
    While creating a table a lack that certain field value is set to a default value, like:

    create table t2
    (a number;
    b number not null);

    In this table, I want to put a value to a certain default value, as in the case where a value is not entered then a field will be automatically filled with the default value. How to do this?

    Very simple:

    create table t2
    (a number default 10,
    b number not null);
    

    You can also set a default value and keep it as NOT NULL, to prevent it from being updated with NULL value later.

    create table t2
    (a number default 10 not null,
    b number not null);
    

    You can probably get faster answers glancing http://tahiti.oracle.com/ to more simple questions, in which case you would be looking for.

    Kind regards
    Francisco.

  • OBIEE dashboard how to set the default value of a prompt dynamically

    Hello

    I have a prompt that displays the quarter of the year. I want to put the default value of this prompt dynamically. So, if sysdate is between January and March, then fast should say 'Q1 '. If the month of sysdate is between April and June, then fast should say 'Q2'... etc.

    I set the default selection of the prompt SQL suite and put in the following code:

    SELECT BOX WHEN EXTRACT (MONTH FROM sysdate) IN (1,2,3) and THEN "Q1" double WHEN RETRIEVED (MONTH OF sysdate) (4,5,6) and THEN "Q2" double WHEN RETRIEVED (MONTH OF sysdate) (7,8,9) THEN "Q3" double ELSE 'T4' LATE double

    However, it seems not be soon and there is no default value. I was just wondering what I'm doing wrong. Thank you!

    ~ Kevin Sun

    What is the problem with the answer you were given in this thread: OBIEE parameter default value a "quarter" guest dynamically?

  • How to set the default value in the database

    Hello

    I use Jdeveloper 11.1.1.3.0

    I created OT, VO and AM. If I run the AppModule and create a new record without giving value and validate the registration. but database they have the default value in the same row special (witout entered App Module). How to implement this concept.
    give some ideas...


    Kind regards
    Rami

    Use a value by default when you create the table, and mark the EO attribute as "refresh after insert.

    John

  • How to set the default value of the FF browser offline mode? I WANT IT IN OFFLINE MODE *.

    I wish that my FF browser opens in offline mode. There is a ton of help topics on how to disable the default offline, but none on how to activate it. I tried to do the opposite of what people suggested to turn off offline mode, but nothing seems to work.

    Thanks adavance for any help!

    The only way to start Firefox in offline mode is through the start of the Profile Manager window.

    This window contains a checkbox to start in offline mode.

    All other methods via prefs may or may not work reliable and extensions usually do the opposite and are trying to force a boot online.

  • How to set the default value for a selector to display based on another analysis

    Hello

    I have a requirement where I have to choose a different opinion to an analysis based on the data from the analysis. More specifically, I have a bar graph that must adapt to the view that is appropriate for the data that the user seeks to (according to the instructions of the dashboard).  A few times, the user can focus on two weeks of data and it's OK to see 14 bars in the bar chart (one for each day), but when the user is looking at a value a year of data, the data should be grouped by month.   I've seen for each that look good and the view selector works.  My problem is that I need reviews to be selected without the user to search through the view selector drop-down.  I also have the logical case (in a separate analysis of the same dashboard) who says what the best view of the user.

    How can I programmatically change what view of the picker view is presented to the user?

    Justin W. Steigerwalt

    ADT Security

    (404) 759-1971

    [email protected]

    My solution for this is to count the number of "," in the prompt value.

    The calls to set a variable of presentation and I just have to count the number of commas in the value of the variable of presentation. When you select several entries of the presentation variable is a simple comma-separated list.

    How to count commas? The shortest path was provided by Christian Berg (I was doing it less "optimally"): length - LENGTH (REPLACE (string, ',' ")) + 1

    If your guest set a presentation named "pv_week" the formula variable is: LENGTH('@{pv_week}{-}') - LENGTH (REPLACE (' @{pv_week} {{}}', ',' ")) + 1

    Then just use it in the CASE WHEN (attention to the always return the same type of data, so if the granularity of weeks and months is VARCHAR, the granularity of the day must be also a VARCHAR and not a DATE, you must CAST to avoid problems).

  • How to set the default value of magnification up Page?

    I prefer the option of the Page matches the option to adjust the default width. How can I configure default Page Fit?

    Hi walter2015,

    You can set as a default application in the Page display preferences (in the Zoom pop-up menu).

    Please let us know if that's what you're looking for.

    Best,

    Sara

Maybe you are looking for