Dynamically fill ObjectChoiceField according to the selected box

Hi all

I have a few boxes on my screen and an ObjectChoiceField. I have to fill this ObjectChoiceField dynamically according to the selected checkbox.  I have a few separate hard-coded (I announced on the same screen) array of strings for all the boxes.

If I select the first box, then ObjectChoiceField must be populated with the corresponding array of strings... and so on...

Thank you and best regards.

You just need to use

.setChoices ();

Tags: BlackBerry Developers

Similar Questions

  • Clear the value of the session on the change of the selection box?

    A tool that I created, I have a box of selection to page 0. When changes in the selection box, the data on all other pages must be updated. I put the "Page Action time modified value" on the selection of 'Redirect and target' box, which works... almost. On one page, however, I have a page element whose value is not refreshing accordingly. 'Source used' set only "when the current value in session state is zero' because I don't want it changed on a normal page refresh (setting it"Always"would, of course, if it restarts).

    Is it possible to have the box select delete session to the other page item value?

    I tried implementing a dynamic action "Set value", but only available in the Shuttle are elements on the same page, which does not work for my situation - as I said, the area of selection is on page 0, while the other element is on page 1.

    To see the issue in the action, go to writetrack.davidsgale.com, login with demo/demo1 and change the challenge in the dropdown in the top right. Ideally, change the drop down menu, you will reach the first month of the challenge you select, regardless of where you are on the calendar (so, NaNo brings you to November 2010, while the other two will take you to January 2011), but it doesn't.

    Thank you
    -David

    As an alternative, you can change the 'Clear' to ' run the Code in PL/SQL "and delete this value as it

  • stuck in the selection box sent-no available for the box of reception, et al.

    The selection box disappeared, so who can be in shipping mode. Even if I stop and restart the emails sent with no possible output mode developed. I can go to the Explorer & log on Comcast & find my incoming emails in this way but I would go back to your system.

    Maybe your 'selection box' is the folders pane which is normally on the left side of the window with all your records of account registered.

    You have a Menu bar with file-Edit-View etc. showing?
    If this is not the case, press the alt key to bring up.

    In the Menu bar select view-presentation-folder pane

    If the folders pane is checked and it still doesn't show?

    If so, make sure that your Thunderbird window is maximized. Then move your mouse on the left side of the window and look for it to turn into a double-headed arrow. When he, left click, hold down and drag to the right to find the folders pane.

  • Text box according to the select list option?

    Hello people,

    I am trying to reach to display a text box where the user can enter details, but that the text box should be activated on when the particular option select the user in the LIST, I created same with the option button when I'm unable to achieve with the SELECT LIST, is - can anyone help with any list of good example?

    For the option I have Javascript like: -.

    --------------------------------------------------
    < /script >
    < style type = "text/css" >
    #gOSpan {display: none}
    #P18_RESULT_TYPE_RADIO {height: 60px banner ;}}
    < / style >
    < script src = "http://www.google.com/jsapi" > < / script >
    < script >
    Google.Load ("jquery", "1.2.6");
    < /script >

    < script type = "text/javascript" >
    <! [CDATA]
    htmldb_delete_message = "'DELETE_CONFIRM_MSG" ";
    gOHTML = ' < span id = "gOSpan" > < input id = "gOTxt" type = "text" value = "" maxlength = "10" / > < / span > '; "

    $(document) .ready (function () {}
    toggleResultType();

    $('_input[id^="P18_RESULT_TYPE_RADIO_"]').click (function () {}
    toggleResultType();
    });
    });

    function toggleResultType()
    {
    var ResultTypeHidden = $('#P18_RESULT_TYPE').val ();
    var ResultTypeRadio = $('_entree_:_checked[id^="p18_result_type_radio_"]').val)
    var ResultType = ResultTypeRadio? ResultTypeRadio: ResultTypeHidden;

    If (ResultType & & ResultType! = 'MPGN II/DAD' & & ResultType! = ' MPGN I' & & ResultType! = 'MPGN III')
    {
    var $gOSpan = $('#gOSpan');
    If ($gOSpan.length == 0)
    {
    $('#P18_RESULT_TYPE_RADIO_3') .parent ('td') .append (gOHTML);
    $gOSpan = $('#gOSpan');
    }

    If (ResultTypeHidden! = ")
    {
    $gOSpan.show ();
    }

    on the other
    {
    $gOSpan.fadeIn ();
    }

    $('#P18_RESULT_TYPE_3').attr ('checked', 'checked');

    If (ResultTypeHidden & & ResultTypeHidden! = 'MPGN II/DAD' & & ResultTypeHidden! = ' MPGN I' & & ResultTypeHidden! = 'MPGN III')
    {
    $('#gOTxt').val (ResultTypeHidden);
    }

    $('#gOTxt').change (function)
    {
    $('#P18_RESULT_TYPE').val (this.value);
    });
    }
    on the other
    {
    $('#gOSpan').fadeOut ();
    $('#P18_RESULT_TYPE').val ($('input:checked[id^="P18_RESULT_TYPE_RADIO_"]').val ());

    If (ResultType is 'MPGN II/DAD')
    {
    $('#P18_RESULT_TYPE_RADIO_0').attr ('checked', 'checked');
    }
    ElseIf (ResultType == ' MPGN I ')
    {
    $('#P18_RESULT_TYPE_RADIO_1').attr ('checked', 'checked');
    }
    on the other
    {
    $('#P18_RESULT_TYPE_RADIO_2').attr ('checked', 'checked');
    }
    }
    }

    []] >
    < /script >
    ----------------------------------------------------

    I tried to do but:(les chances selon les directives de la liste de sélection, toute aide sera appréciée!)

    Thank you


    Kind regards
    Kumar

    change the text field.

    go to the tab of the element.

    under * attributes of the HTML Form * field enter the people with REDUCED mobility.

    Kind regards
    Shijesh

  • According to the selection value hide/show page list item

    Hi all
    I have a list of selection P_X (with Char, varchar2, number values).
    When I select the tank it must display P_Max (text box), if I select the number he must display two textboxes (P_Text1, P_text2).
    By default it should not display any page except P_X element.
    How can I achieve this by creating dynamic actions.
    I tried a dynamic textbox P_max display action when I click the Char value in the select list (P_X)

    After presenting the process:
    Start
    : p_x: = "Char";
    end;

    Condition:
    Value of exp1 = exp2
    Exp1:P_X
    EXP2:char

    dynamic action:
    event: change
    Select the type: article
    product (s): p_x
    condition: equals
    value: Char
    Real action: see question: p_max

    But it is not workking correctly.

    Hi Karthikeyan,

    Sorry for the late reply, stuck with another work.

    Now you check in your example I changed it accordingly. According to me, he answered your question, check in.

    Kind regards
    Mini

    Brand responses appropriately.

  • Change the content of the page based change the selection box

    Hi all

    I want to create a page with 2 box selection and 1 table below

    • Selection box
      • Box1: 1-12 (months of the year)
      • Box2: 2010-2015 (year between 2010 and 2015)
    • Table
      • Get data from view GET_DATA_SALARY. This view having a 4 column: NAME, SALARY, FAC_MONTH, FAC_YEAR
      • This table will be based on the selected value of 2 boxes above change

    Please help me solve this problem.

    Thank you

    To put it simply, add a button that submits the page.

    Add a where clause clause to your report

    where FAC_MONTH = P_MONTH

    and FAC_YEAR = P_YEAR

    Gus

  • Toggle buttons control according to the selected line in the table?

    Hello

    I have used JDev 11.1.1.2.0

    On my main page, it has a query section and view the result to a component of the lookup table and also has functioning as (update/deletion) buttons in the toolbar.

    I want to toggle buttons operating according to some value of the selected line in the table, and I searched on the OTN forum, found more than issues like that, but seemed no found a good solution.

    The table is a unique and has a status column selection, its data type is integer, and I want to activate the buttons when the value of the status field of the selected line is 0 or 1, disable the buttons when the State value is other values.

    Code of the table as:

    < af:table value = "#{bindings." Var VO1.collectionModel}"="row ".
    lines = ' #{bindings. " VO1.rangeSize}.
    emptyText = "#{bindingsVO1.viewable?" '} ". No data to display. ': 'Access Denied. »} »
    fetchSize = "#{bindings." VO1.rangeSize}.
    rowBandingInterval = '0 '.
    filterModel = "#{bindings." VOCriteriaQuery.queryDescriptor}.
    queryListener = ' #{bindings. " VOCriteriaQuery.processQuery}.
    filterVisible = "true" varStatus = "vs."
    selectedRowKeys = ' #{bindings. " VO1.collectionModel.selectedRow}.
    selectionListener = "#{bindings." VO1.collectionModel.makeCurrent}.
    rowSelection = "single" id = "resId1" >

    Operation code buttons like:
    < af:commandToolbarButton text = "Update" id = "ctb2" action = "editDAF" / >

    Any suggestions would be very helpful.

    Thank you
    zeroxin

    Hello

    bind to the attribute in the PageDef file for the status field. Then configure the PartialTriggers property button to point to the ID of the table. Of the disabled button property then points to the status as attribute link

    #{bindings.statusField.inputValue == 'value'}

    Frank

  • Photoshop Elements 8, too dark, how can I change the selection boxes.

    Hello

    My friend visited and she just Photoshop Elements 8 on his cell phone from Apple.

    I'm trying to help him, start with him, but there is a problem that I can not understand.

    For example, if I go into Image, change the image size, the boxes that show things like the resolution of the screen have such dark background that you can't read what he said in them.  Only after that you select and the type became white can read you.

    I looked, but I have not found anywhere to change the setting of the color or brightness of the panels.

    Does anyone know how to make the lighter boxes?

    Mike

    Photoshop Elements > Preferences > General

  • Change the color of the bottom line on the selection box

    I use APEX 3.2 and have integrated the JSQuery library. I have a region of Type of SQL query report. The first column of a report is apex_item.checkbox. Based on the selection, I need to highlight the line that will be selected using the checkbox.

    I have following question in my header HTML page.

    < script language = "JavaScript" type = "text/javascript" >
    $(document) .ready (function() {}
    $('input[name=f01]').change (function() {}
    If {($(this).is(':checked'))))}
    $(this).parents('tr:first').css ('background-color', '#FFFFFF');
    Alert ('changed');
    }
    else {}
    $(this).parents('tr:first').css ('background-color', '#CCCCCC');
    Alert ("not changed");
    }
    });
    });
    < /script >

    It gives me the alert when the checbox is selected but that don't change the background color of the line.

    Any help?

    Syed

    Published by: rizvi on March 28, 2011 02:28

    Try

    $(this) .children ('td').parents('tr:first').css('background-color','#FF0000');

  • Obligation to fill the values in table advanced according to the selection of a value in another article of lov (not in the advanced table)

    Hi all

    We work in a custom oaf page subdivision. We have an obligation to fill the values in table advanced based on a value selection in an element of the lov (this LOV is not in the advanced table) .can share you it please me steps or examples of code to achieve this. Waiting for response.

    Kind regards

    I do not understand completely still. What do you mean by "default in the table values must be inserted".

    You can create a dummy VO with the same columns and fix the VO in the advanced table.

    In the normal scenario, when the user clicks on submit button, browse this VO, and copy the values to the validation according to VO and appeal EO. If values gets inserted into the database.

    When the user selects the number of PO, simply run the other VO and fill this dummy VO so that values are available in the advanced table. When you click on send, do not copy these values to the EO based VO, so these lines won't get inserted.

    It work?

    See you soon

    AJ

  • Dynamically change color according to the value of the field field

    I hope someone can help with my problem, I have not dealt with Java Script before please bare with me as I try to explain.  I tried searching everywhere for the answer but am getting lost a bit in some answers just so I was wondering if anyone on the forum can help.

    I am trying to create a reliable PDF form for a risk assessment. The user in the columns of the severity and probability input values and the value is generated automatically in the column risk classification. So I managed to get the number of risk rating to calculate automatically using the option calculate and select the value is the product of "Severity1", Likelihood1  It's great, so now I want to the field of evaluation may change the background color based on the value as follows:

    1-5 = Green

    6-10 = orange

    11-25 = Red

    I don't have any idea if this can be done via the Java Script or if it is not possible, I'm sure it will, but I need someone much smarter than me to guide me on how to do it. I guess it's the same concept as the conditional formatting in Excel.

    This is something like what I'm trying to achieve.

    Any help would be greatly appreciated

    Thank you

    Matt

    Gravity
    Likelihood
    Level of risk
    122
    236
    3412

    You will need to use a custom calculation script, something like:

    Custom calculation script

    (function () {}

    Get the field values as numbers

    var v1 = + getField("Severity1").value;

    var v2 = + getField("Likelihood1").value;

    Calculate the product

    var prod = v1 * v2;

    Set the value of this field;

    Event.Value = prod;

    Default background color

    var bg = color.white;

    Set the color orange

    Color.Orange = ['RGB', 1,.33, 0];

    Determine the background color on the product

    If (prod > = 1 & prod)<=5)>

    BG = color.green;

    } ElseIf (prod 5 > & prod)<= 10)="">

    BG = color.orange;

    } ElseIf (prod > 10) {}

    BG = color.red;

    }

    Set the background color of the field

    event.target.fillColor = bg;

    })();

  • brand value in the time table with colors according to the selected employee

    Hello
    My question is
    I created the time table for a class for a bit longer want to filter to the time table used.

    for example. If I select the emp_id he's from, select the list then this period of teaching should be highlighted time table.
    Please can u help me.

    the table name is:-Time_Table
    the columns are:-

    EMP_ID
    CLASS_ID
    SECTION
    SUBJECT_ID
    PERIOD_NO
    DAY
    DATE


    Thank you
    Nisha

    Published by: Nisha Rani on September 3, 2009 02:57

    Published by: Nisha Rani on September 3, 2009 23:08

    Hi Nisha,

    Try this:

    SELECT
    DY,
    MIN(CASE WHEN LEC_NO = '1' THEN
    CASE WHEN EMP_ID = :P1_EMP_ID THEN '
    ' || SUBJECT_ID || '-' ||emp_id || '
    ' ELSE '
    ' || SUBJECT_ID || '-' ||emp_id || '
    ' END ELSE NULL END) PERIOD1, MIN(CASE WHEN LEC_NO = '2' THEN CASE WHEN EMP_ID = :P1_EMP_ID THEN '
    ' || SUBJECT_ID || '-' ||emp_id || '
    ' ELSE '
    ' || SUBJECT_ID || '-' ||emp_id || '
    ' END ELSE NULL END) PERIOD2, MIN(CASE WHEN LEC_NO = '3' THEN CASE WHEN EMP_ID = :P1_EMP_ID THEN '
    ' || SUBJECT_ID || '-' ||emp_id || '
    ' ELSE '
    ' || SUBJECT_ID || '-' ||emp_id || '
    ' END ELSE NULL END) PERIOD3, MIN(CASE WHEN LEC_NO = '4' THEN CASE WHEN EMP_ID = :P1_EMP_ID THEN '
    ' || SUBJECT_ID || '-' ||emp_id || '
    ' ELSE '
    ' || SUBJECT_ID || '-' ||emp_id || '
    ' END ELSE NULL END) PERIOD4, MIN(CASE WHEN LEC_NO = '5' THEN CASE WHEN EMP_ID = :P1_EMP_ID THEN '
    ' || SUBJECT_ID || '-' ||emp_id || '
    ' ELSE '
    ' || SUBJECT_ID || '-' ||emp_id || '
    ' END ELSE NULL END) PERIOD5, MIN(CASE WHEN LEC_NO = '6' THEN CASE WHEN EMP_ID = :P1_EMP_ID THEN '
    ' || SUBJECT_ID || '-' ||emp_id || '
    ' ELSE '
    ' || SUBJECT_ID || '-' ||emp_id || '
    ' END ELSE NULL END) PERIOD6, MIN(CASE WHEN LEC_NO = '7' THEN CASE WHEN EMP_ID = :P1_EMP_ID THEN '
    ' || SUBJECT_ID || '-' ||emp_id || '
    ' ELSE '
    ' || SUBJECT_ID || '-' ||emp_id || '
    ' END ELSE NULL END) PERIOD7 FROM TM_TEACHER_LEC_DETAIL WHERE CLASS_ID = :P1_CLASS_ID and SECTION = :P1_SECTION GROUP BY DY order by dy

    As I do not have the structure of your table or any data, I can't test this. Let me know if it works for you

    Andy

  • Dynamically fill QML DropDown (in the spreadsheet) of C++

    Hi all

    I have a question where I'm trying to define the content of a drop-down list of C++.

    I won't be available QML ful as it is quite important, but it's the overall structure:

    NavigationPane > >(Attached Objects) sheet Page > Contentage > container > ScrollView > container > DropDown (objectName: ddType)

    In my C++, I have the following code:

    Header file:

    Drop-down list * ddType;

    CPP file:

    ddType = navigationPane->findChild ("ddType");

    ddType-> add (Option::create () .text ("Option 1"));

    When I have the debug, I get a "no source available for ' bb::cascades:ropDown::add() to 0x78620bac ' error on the ddType-> add line and the application is closed.»

    I used successfully navigationPane-> setProperty() for other purposes, so it seems that I can access the navigationPane OK.

    Is there a limitation with findChild on attached under components (for example sheets?)

    Any ideas?

    ObjectName must be enclosed in quotes.

  • Photoshop opens the dialog box when you try to fill a layer with locked transparent pixels

    This script should set the layer to lock transparent pixels and then fill the layer with a color. She is doing this, except when it is in the filling phase, it opens the dialog box fill, and you have to hit OK.

    If you omit the transparent pixel line, it works as not expected, no dialog boxes.

    Is there a way to remove the box? Or I'm doing something wrong, which is causing the box to open?

    #target photoshop
    app.bringToFront();
    
    doc = app.activeDocument;
    doc.artLayers[0].isBackgroundLayer = false;
    doc.artLayers[0].transparentPixelsLocked = true;
    app.activeDocument.selection.fill(app.foregroundColor); 
    

    Not sure why this is happening.

    But I would recommend blocking the above and using the AM code for a fill that pays tribute to transparency.

    #target photoshop

    app.bringToFront ();

    doc = app.activeDocument;

    doc.artLayers [0] .isBackgroundLayer = false;

    doc.activeLayer = doc.artLayers [0];

    // =======================================================

    idFl var = charIDToTypeID ("Fl");

    var desc18 = new ActionDescriptor();

    var idUsng = charIDToTypeID ("Usng");

    var idFlCn = charIDToTypeID ("FlCn");

    var idFrgC = charIDToTypeID ("FrgC");

    desc18.putEnumerated (idUsng, idFlCn, idFrgC);

    var idOpct = charIDToTypeID ("PCT");

    var idPrc = charIDToTypeID ("#Prc");

    desc18.putUnitDouble (idOpct, idPrc, 100.000000);

    TSM var = charIDToTypeID ("Md");

    var idBlnM = charIDToTypeID ("BlnM");

    var idNrml = charIDToTypeID ("Nrml");

    desc18.putEnumerated (TSM, idBlnM, idNrml);

    var idPrsT = charIDToTypeID ("PrsT");

    desc18.putBoolean (idPrsT, true);

    executeAction (idFl, desc18, DialogModes.NO);

  • Dynamic action - set a value of element based on the selection of lines of report

    Hi people,

    Does anyone have an example how to set up a dynamic action, which could fill an element with the selected ID based on the selection of line of the report on the same page?

    Demo:
    http://Apex.Oracle.com/pls/Apex/f?p=19543:2

    If I select an item in the report, then I would fill in 'Selected ID' element with the value of the selected report EMPNO line.


    Later, I would use it for the display of parts of master / detail on the same page.

    Thank you very much
    Tomas

    For this sample page, add the following JS code to run when the page is loaded.

    $('.highlight-row td').click( function(){
      //fetch record id from the cell contents of first column in row
      id = $(this).parent().children('td:eq(0)').text();
      //set page item to selected id
      $('#P2_SELECTED_ROW').val(id);
    });
    

Maybe you are looking for

  • Reset iPhone when restrictions are on

    My son iPhone 5s has lit restrictions and in the House, no one knows what is the password! The phone uses my husbands iTunes account, but the App Store is not available on this subject, probably because of the restriction settings. We try reset the p

  • Vista - Error Code: 80070002 (cannot install KB94781)

    I have a problem with windows update gives me an Error 80070002 on a constant basis.  I have read and reread the tons of messages with this problem and have the remove historical update and this compensation and restart that and downloading KB94781 B

  • Call of Duty 4 HELP?

    Whenever I have raise cod4 he always tells me that he could not write a file... your hard drives probably full. But it's not. I always have to run as admin... but when I do this, I can't use x - fire in the game. ? Help?

  • request remote assistance does not dispay on aid messenger WLM

    Denny & I use Win XP Pro & WLM Messenger version 2009 (14.0.8117.416) * address email is removed from the privacy * click on actions, remote application assistance & takes me Rick * address email is removed from the privacy * and demand never shows m

  • Message not indexed Windows Movie Maker cannot import

    A few minutes videos.   I converted to wmv format factory .mov.  I open windows movie maker import and on some I get a message is not indexed and cannot be imported.  Why the few very well and other will not import.