Values to be displayed as a drop down at runtime

Hi Experts, I have ArrayList at runtime which contains list of countries, I have to assign these values to inputFiled I am using the following code but it is displaying only one country.
can u pleast help to get all the countries as a drop down.
IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().getAttribute(IPrivateCustCreateView.ICountryElement.COUNTRY);
wdComponentAPI.getMessageManager().reportSuccess("hi2"+attributeInfo);
ISimpleTypeModifiable countryType = attributeInfo.getModifiableSimpleType();
countryType.setFieldLabel("Country");
IModifiableSimpleValueSet valueSet =
countryType.getSVServices().getModifiableSimpleValueSet();
for(int x =0;  x< al.size(); x++){
          valueSet.put("Key_"al.get(x).toString(),"Country "al.get(x).toString()); 
         wdComponentAPI.getMessageManager().reportSuccess("Countries are"+ al.get(x).toString());
     wdContext.currentCountryElement().setCountry("Afghanistan");
Regards,
Sandeep.

Hi,
try this, code is for DropDownByKey.
IWDAttributeInfo info4;
ISimpleTypeModifiable mode4;
IModifiableSimpleValueSet svs4;
info4 =wdContext.nodeVnUser().getNodeInfo().getAttribute("<attribute name>");
mode4 = info4.getModifiableSimpleType();
svs4 = mode4.getSVServices().getModifiableSimpleValueSet();
svs4.clear();
List l1 = new ArrayList();
l1 = /// value for your list
Iterator iter = l1.iterator();
String strVal ="";
while (iter.hasNext()){
          strVal = iter.next().toString();
          svs4.put(strVal ,strVal );
and at the last set  the current value for the Drp like:-
wdcontext.Current<nodeelement>.set<attribute>();
set the context cardinality as 1..n
Regards,
Deepak

Similar Messages

  • How to display a static drop down list for af:query

    Hi
    can anyone tell how to display a static drop down list in af:query panel. JDeveloper version 11.1.1.5.0
    Thanks in advance

    Here is my Usecase
    My View Object consists of (Student ID, Name,Roll No) now i want to include one more attribute say No.of Rooms(i added it as a Transient attribute).
    Now i want to display the transient attribute values in the form of LOV.
    Thanks

  • How can I display images in drop down.

    Hi All,
    How can I display images in drop down.
    <select><option>image here</option></select>
    please reply soon.
    anser please
    Thanks

    I have not found html forum..That's just incredible.
    where can i find it ?Sorry, I'm still recovering from that remark.
    please reply soonEvery time you end a post with this, or "urgent" or other such keywords, the forum automatically introduces a 5 minute delay so that will actually make the whole process slower (not faster).

  • Infopath 2013 - Values are not appearing in a drop down field referencing site column which uses lookup in custom list

    I have a master custom list that has a set of site columns. For each site column there is a lookup to a custom list with reference data. When I edit the list in data entry view all values in drop down fields work fine, but when I customize the form for
    the master list, no data appears in the drop down fields. I can change the data binding on the form so it references the the correct data and when I preview the form it works. But when I publish it, no data is available in these drop down fields.

    Hi  shakonarson,
    According to your description, I try to reproduce your scenario but the lookup field works fine.
    When we customize the form for the  list  in the InfoPath 2013 , it is by design that the Drop-Down List Box control cannot  display its value.
    For troubleshooting your issue, please take steps as below:
    Go to lookup List Box on your form in  InfoPath 2013 , right click it and choose “Drop-Down List Properties” from the bottom of your field menu.
    Make Sure you select “Get choices from an external data source” and correct Data source.
    Make Sure the Xpath  of Entries is “d:SharePointListItem_RW” under the dataFields.
    Here is a good blog for sorting lookup column DropDown by customizing your list form with InfoPath you can have a  look:
    Sort SharePoint lookup column Dropdown by customizing your list form
    with InfoPath
    Hope this helps!
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Value need to select from the drop down list & should be save under Variant

    Hi,
    My requirement is that i need to display two values in drop down list of a selection screen. Between two values , one value will be display as a default value. During program execution user can choose any value from drop down list as per requirement and
    he can save this in a Variant.
    Next time if he choose data from Variant, but still he will be able to select any value from drop down list.
    For that i am using FM VRM_SET_VALUES. How can i make the changes to meet my requirement using this function module or any other suggestions will be highly appreciated.
    Thanks & Regards,
    Tutun
    Edited by: tutun nandy on Nov 19, 2010 12:21 PM

    Try to disable hardware acceleration in Firefox.
    *Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
    *https://hacks.mozilla.org/2010/09/hardware-acceleration/
    *https://support.mozilla.org/kb/how-do-i-upgrade-my-graphics-drivers
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • HTML won't display £ symbol in drop-down menu list.

    What happened?, Can anyone help?
    I created drop-down selection list of amounts which a client
    might be willing to pay, however when I view the saved page in the
    browser window instead of the £ sign/symbol in front of the
    numbers I have a ? question mark symbol instead.
    How can I fix this to display the pound symbol?
    HTML CODE -->
    <select name="Budget" class="textfield2">
    <option>Select Budget for Project:</option>
    <option value="Under £500">Under
    £500</option>
    <option value="£500 - £1000">£500 -
    £1000</option>
    <option value="£1000 - £2000">£1000 -
    £2000</option>
    <option value="£2000 - £3000">£2000 -
    £3000</option>
    <option value="£3000 - £4000">£3000 -
    £4000</option>
    <option value="£4000 - £5000">£4000 -
    £5000</option>
    <option value="£5000 - £10,000">£5000 -
    £10,000</option> <option
    value="£10,000+">£10,000+</option>
    </select>
    Regards,
    Peter

    .oO(Peter Fettes)
    > I created drop-down selection list of amounts which a
    client might be willing
    >to pay, however when I view the saved page in the browser
    window instead of the
    >? sign/symbol in front of the numbers I have a ? question
    mark symbol instead.
    > How can I fix this to display the pound symbol?
    The documents have to be encoded properly (for example with
    UTF-8) and
    the server has to tell the browser about the used encoding.
    Another way is to use named character references instead
    (&pound
    Micha

  • Foreign fonts display in character drop down menu

    When designing a sign for a customer, I take a photo of the existing signs, place on a new document in illustrator cs6, type text then scroll through the text character drop down menu to match the new sign text to the font that is currently on the customers signs, business card etc.
    There are many different types of fonts and I would prefer not to have the adobe system fonts, asian, arabic and other fonts that are not used for my purposes.
    Is there a way to remove them from this list.
    I have tried deleteing them from the window 7 font manager but they are essential system fonts and it displays a message that some programes will not work if I delete them.
    I have tried show/hide in the windows 7 font manager but this has no effect on the fonts displayed in illustrator.
    Any help would be appreciated.

    update...
    Seems windows 7 fonts can be set to show/hide for some programs but it does not work in illustrator. I have found a helpful program by Adobe Air called Font Picker which displays only the fonts installed and excludes hidden fonts (windows 7 font manager).
    It would be good to have a search facility that has fonts catagorised. There are a few out there where you can tag them but I don't see myself sitting through 35000+ fonts I have collected over the years.
    I did install Illustrator CC which has a few added options under the character font drop down menu. It also has a link to Typekit on Adobe Cloud but would you believe it didn't have Calligri which is a very common script font.
    Has anyone on this forum found a solution to this before. There are may questions related to this on the web but no answers or feed back.

  • Need help assigning 2 values to each choice in a drop down

    I'm trying to create a tool for tracking students' grades and credits.  There is a drop down menu with A - F as choices, and I assigned export values 4,3,2,1,0.  I can then get weighted average by using the simple average calculation in a text field box somewhere else on the page. 
    What I want to do is also assign grades A-D a value of .5 so that we can keep track of how many credits a student has.  Then all I will need is to find the sum in another box. 
    How do I pull this off?  Thank you for your help.

    You have to use unique values in a drop down, combo, or list box.
    You could sort this out based on the selection made within a JavaScript like a keystroke, on blur action, or in a calculation.

  • NOT DISPLAYING IN LKM DROP DOWN BOX

    I want to load XML file form Flat file. I want to use LKM as LKM FILE TO SQL It is available in my project.
    I don't see LKM FILE TO SQL  in LKM selector drop down in flow tab of interface

    Use LKM Sql to SQL
    Make sure staging lies on a rdbms or sunopsis memory engine as your target is file.
    Bhabani
    http://dwteam.in

  • How do we display Pages with drop down one below the other ?

    Hi,
    I am beginner to Financial report 9.3.1 . I have repot mock up where i need to place pages like Time Period , Version etc one below the other with the drop down .
    How should i proceed to achieve the same ?
    Thanks & Regards,
    Vijaya

    Try selecting a grid in the top left corner to highlight it,
    Double check your dimension layout in the properties pane,
    Make sure Grid Point of View is selected.
    Can you be a little more specific as to what kind of report you are trying to create?
    What are your Report layouts Columns, Rows and Page?
    Brian Chow

  • Problems with RH 9Printed Documentation not displaying some popups, drop-downs, and links

    I generate a Word document for reviewers. PrintedDoc properties include: Retain hyperlinks; Include drop-down text; Include expanding text.
    Sometimes the Word 2010 document includes hyperlinks, sometimes it doesn't.
    Popups typically don't work in the Word document.
    Drop-down and expanding text appear intermittently in the Word document.
    Has anyone experienced this and have a solution?
    Thanks.
    Carol

    I have never known hyperlinks to fail except in two situations.
    The target topic is not in the printed document. Obviously it cannot link to something that is not there.
    The hyperlink is a popup.
    Not sure what you mean by popups not working in a printed document. If you mean the links to them break, then see above. Known issue.
    I'm not sure why you are having the dropdown and expanding text problem as I have not known that to be an issue either. Is it always the same dropdowns that fail? Have you compared a good dropdown and a bad dropdown?
    Take a look at Printed Documentation on my site.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How to clear username cache in yahoo email page form elemant; when I place cursor in username window of the form element, all previous usernames are displayed in a drop-down menu?

    When I proceed to enter my email, every time that I place the cursor in the username window, every past entered username appears in a drop down menu; I want to clear this memory for this element.

    Could you be a little more specific?  I took that section out of my CSS file but the problem persists.
    Thank you.
    Sincerely,
    Michael Yannetta
    Mio Web Designs
    530-414-3313
    [email protected]

  • How do I configure Firefox so that the down arrowhead in the location field actually causes the display of a drop down list of bookmarked websites?

    At one time I had done the "right" actions so that the location drop down contained a list of around 20 of my most frequently accessed websites. Now I have a new computer and cannot figure out how to configure this new installation of Firefox so that this feature works as it did before. Frustrating!!!! When I click the down arrowhead (icon just left of reload page icon), no drop down menu appears; only the URL of the current page is highlighted.

    See:
    * Firefox (Tools) > Options > Privacy > Location Bar: When using the location bar, suggest: Bookmarks
    * https://support.mozilla.com/kb/Location+bar+autocomplete
    *Press F10 or tap the Alt key to bring up the "Menu Bar" temporarily if the Menu Bar is hidden.
    *Use "Firefox > Options" instead of "Tools > Options" if the menu bar is hidden.

  • Dynamic change of drop down values

    hi gurus,
    I got a peculiar senario.
    i have three fields on modlue pool screen which are having drop downs.
    based on the selected value in the first drop down second drop down values has to display.
    suppose.
    first drop down displays the bellow values.
    technical documents.
    type test.
    if techincal documents is selected then display the bellow values.
    test1
    test2
    test3
    if type test is selected then display the bellow values.
    test4
    test5
    i got the above logic.
    one  problem is what ever the value i am selecting is reflecting at the end of drop down .
    second problem is bellow one.
    now suppose that 'type test' is selected in first drop down and 'test5' is selcted in the second drop down.
    if suppose again first dorp down selection is changed to 'technical documents' in the second drop down i am getting the bellow values.
    test1
    test2
    test3
    test5
    already existing value on the screen is reflecting at the end.
    but i have to get
    test1
    test2
    test3 only
    hope i am clear .
    kindly sugest the solution.
    thanks in advance ,
    padmaja.

    Assuming your problem is related to custom/z development, i guess abaper might be able to help. In the program clear the internal tables before displaying the values.
    rgds

  • Urgent help!display db value as selected in drop down using select option

    Hi All,
    My problem is i had resultset from database and i want to display it as drop down.By default it should show the actual database value for that field also user should be able to change it by selecting from drop down. What is happening is it is by default displaying the last value from the resultset and not the selected one. my code on JSP is :
    <%
    Statement stm1 = null;
    ResultSet rs1 = null;
    stm1 = con.createStatement();
    rs1 = displog.searchorthodon(con);
    String qry1 = "SELECT * FROM orthodontab;";
    rs1 = stm1.executeQuery(qry1);
    %>
    <table width="100%" border="0" cellspacing="1" cellpadding="1" bgcolor="#444444" align="center">
    <tr>
    <td width="171px" align="right" class="txtFieldLable">Orthodontist :
    <td width="171px" align="left" height="33" class="freeformfielddata">
    <select name="orthoden">
    <% while (rs1.next()){ %>
    <option value="<%=inputorthodon%>" selected ><%=rs1.getString("ortho_name")%></option>
    <%} %>
    </select>
    Thanks and Regards.I will be greatful to know where i am going wrong.

    <% int i = 1;
    while (rs11.next()){
    if (i==2)
    {%>
    <option value=i selected ><%=inputap%></option>
    <%}
    else
    %>
    <option value=i ><%=rs11.getString("AP")%> </option>
    <% }i++;}i=1; %>
    </select>
    <%
    This is a code and here instead of if(i==2) i actually want to compare rs11.next() with inputap. what will be the syntax.any help will be greatful

Maybe you are looking for

  • Unable to download os x updates

    The PC times out

  • EJBQL delete statment - error

    Hi, I'm trying to execute a simple delete statment: DELETE FROM SecurityRate sr WHERE sr.assetId = :assetId AND sr.relevanceDay = :relevanceDay AND sr.cDataSourceId = :dataSource AND sr.cTradingTypeId = :tradingType AND sr.securityRateId > 0 But all

  • Cannot add HP Deskjet 3820 printer

    We have been using an HP Deskjet 3820 printer with an iMac forever with no problems. The printer is connected from the printer parallel port to the USB port on the computer using an adapter cable. Last time we tried to print the print job stopped in

  • Need help deciding between 2 slr cameras

    I would love some help in deciding between 2 cameras, canon digital rebel xt and nikon d50. Since both seem to be rated equally, I want to base my decision on which one is easier to work with in iphoto or at least adobe elements 2 or 3. I have heard

  • Consulta Formateada

    Buenas Tardes Expertos me podría ayudar con una consulta formateada un poco avanzada Adjunto imagen donde muestra la explicación de la consulta Agradezco su ayuda Gracias..................