Drop-down list formattedValue returning value, not text

Hi all,
I'm having a problem with a drop-down list. I can get the information I want in Reader 9, but we only have Reader 7.0.5 distributed at the moment.
I need to pull out its text value and its specified value, but everything I try just pulls out the specified value.
In Reader 9 formattedValue gives me the text and rawValue will give me the specified value.
Anyone able to help me please?
Thanks,
Tom

Tom:
It's possible, but complicated. You need to look into the field definition where we store the listbox contents. Then you can correlate the display item from the bound item. I've done this before in another context. I've appended the script I used.
John Brinkman
http://blogs.adobe.com/formfeed
function getDisplayValue(vField)
var vBoundItems = saveItems(vField);
var vDisplayItems = dispItems(vField);
if (vBoundItems == null || vDisplayItems == null)
return vField.rawValue;
for (var i=0; i<vBoundItems.length; i++)
if (vBoundItems.item(i).value == A.rawValue)
return vDisplayItems.item(i).value;
return "";
* saveItems(vField)
* Get the list of items that are bound to the data
* @param vField -- the list field
function saveItems(vField)
for (var i=0; i<vField.nodes.length; i++)
var vChild = vField.nodes.item(i);
if (vChild.className == "items" && vChild.save == "1")
return vChild.nodes;
return null;
* dispItems(vField)
* Get the list of display items
* @param vField -- the list field
function dispItems(vField)
<items>
<text>aaa</text>
</items>
<items save="1" presence="hidden">
<text>111</text>
</items>
for (var i=0; i<vField.nodes.length; i++)
var vChild = vField.nodes.item(i);
if (vChild.className == "items" && vChild.save != "1")
return vChild.nodes;
return null;

Similar Messages

  • How to Populate a drop down list using the values of a text field?

    Hi,
    I wanted to Populate the items of my drop down list according to the value entered in the textfield above it?
    also the value of list remains consistent in other rows also where i am using the drop down list field.
    Please Try to help me in this query.
    Thanks in Advance!!!
    I am using Javascript in adobe version ES 8.2.

    Part II:
    If you have other items for your droplist(s) that are to appear in addition to the "variable language" entered by a user you can add that to the script.  For example in addition to the Party1 and Party2 name appearing in my droplist I also want the list to have an option for a user to select: The parties jointly.  I add this to the script:
    this.addItem(Party1.rawValue);
    this.addItem(Party2.rawValue);
    this.addItem ("The parties jointly");
    If you have trouble making it work, post a bit of your actual form requirements.

  • Sort my bookmarks in drop down lists in alphabetical order not just in Library Views

    When I click on Bookmarks then select a folder to view its contents, I want to see those contents in alphabetical order By Name, not in the hpahazard order in which they were added. I know I can View them in the Library List in alphabetical order or change that to something else. But I want tp make the drop down list and the folder contents to be in alphabetical order all the time.

    The Views menu in the Bookmarks Manager (Bookmarks > Show All Bookmarks) is for viewing the bookmarks in a different sorting order (hence the name Views) and doesn't sort bookmarks permanently.<br />
    Clicking the column header does the same sorting for viewing purposes only.<br />
    If you want to sort bookmarks then you need to right-click a folder and use "Sort By Name" to sort that folder.
    *Auto-Sort Bookmarks: https://addons.mozilla.org/firefox/addon/auto-sort-bookmarks/

  • Using drop down list to set values in looped form

    I've got a form which loops through (currently) 10 copies of an input form for assets
    <form>
    <input name="assetModel[1]" type="text">
    <input name="assetSerial[1]" type="text">
    <cfselect name="assetRoom[1]">
    <input name="assetModel[2]" type="text">
    <input name="assetSerial[2]" type="text">
    <cfselect name="assetRoom[2]">
    <input name="assetModel[3]" type="text">
    <input name="assetSerial[3]" type="text">
    <cfselect name="assetRoom[3]">
    </form>
    I'm after a way to be able to set assetModel[all] = "51" (which shouldn't be too difficult) but also to set [1] = 46, [2]=35, [3]=42 etc.
    Current thinking is that I want to have a drop down box where I can select my all options and another to set where I want to copy the list of assets from another room as default values on this form.
    There are approx 20 fields on each iteration of the field and I'll probably have about 10 fields at the top to set the values I'm after some ofthese affecting multiple form fields.
    Thanks
    Mi-ul

    I've got a form which loops through (currently) 10 copies of an input form for assets
    <form>
    <input name="assetModel[1]" type="text">
    <input name="assetSerial[1]" type="text">
    <cfselect name="assetRoom[1]">
    <input name="assetModel[2]" type="text">
    <input name="assetSerial[2]" type="text">
    <cfselect name="assetRoom[2]">
    <input name="assetModel[3]" type="text">
    <input name="assetSerial[3]" type="text">
    <cfselect name="assetRoom[3]">
    </form>
    I'm after a way to be able to set assetModel[all] = "51" (which shouldn't be too difficult) but also to set [1] = 46, [2]=35, [3]=42 etc.
    Current thinking is that I want to have a drop down box where I can select my all options and another to set where I want to copy the list of assets from another room as default values on this form.
    There are approx 20 fields on each iteration of the field and I'll probably have about 10 fields at the top to set the values I'm after some ofthese affecting multiple form fields.
    Thanks
    Mi-ul

  • Drop down field in ALV values not getting changed

    Hi All.
    I have created an  drop down by key in ALV and I am initialising and filling the values in drop down in Modify view.
    When I am executing the application for the first time the values fill in fine in the drop down. However based on user selection the value in drop should changed. Keep in mind all the rows added in ALV should show the same values in drop down.
    Now the issue is when ever user changes the value but the drop values which were set initially does not changes.
    In other words if user selects supplier A the values for all rows in drop down shows as
    A
    B
    C
    But if user selects supplier B the values for all rows in drop down should changed to 
    X
    Y
    Z
    unfortunatley it still shows values as A,B,C .
    I have checked while debugging and values are changed based on condition but when I set them back in ALV using set_attribute_value_set it does not shows the new values.

    Hello Shakthi,
    The easier option would be to convert the DropDownByKey to DropDownByIndex. If you still want to proceed with DropDownByKey then you need to initialise the ALV data again.  do the following
    1. after changing the attribute-value_set, call the ALV interface controller method SET_DATA and pass the instance of the context node.
    2. reintiliase all the ALV settings like edit mode, converting the column editor to DropDownByKey etc....
    This will ensure the new attribute value set is reflected in the ALV component.
    BR, Saravanan

  • Using getElementById() to get values from drop down list

    Hi, I am using Netbeans to write this program. I have this .java page that gets the url of the HtmlPage from the .properties page. And when this page is opened in the browser, there are drop down lists that have values I want to get from the user when he/she has selected, and save it to a database. I'm actually using mozilla firefox to open this page, and using firebug to inspect the drop down list element.
    I know getElementById is a javascript code, however, my friend told me to use it in the .java page. This is how part of my code looks like. What I'm not sure is how to implement getElementById() and where.
    HtmlPage pageMain =EBPage;
    WebRequest postRequestSettings = new WebRequest(
    new URL(getProperties("trustAdmin")), HttpMethod.POST);
    *// Set the request parameters*
    postRequestSettings.setRequestParameters(new ArrayList());
    postRequestSettings.getRequestParameters().add(new NameValuePair("component", "edit"));
    postRequestSettings.getRequestParameters().add(new NameValuePair("formids", "unixTime,instance,time,description,message"));
    postRequestSettings.getRequestParameters().add(new NameValuePair("page", "Status"));
    postRequestSettings.getRequestParameters().add(new NameValuePair("service", "direct"));
    postRequestSettings.getRequestParameters().add(new NameValuePair("session", "T"));
    postRequestSettings.getRequestParameters().add(new NameValuePair("submitmode", "submit"));
    postRequestSettings.getRequestParameters().add(new NameValuePair("submitname", ""));
    *// Insert instance of message here*
    postRequestSettings.getRequestParameters().add(new NameValuePair("instance", instance));
    *// Insert content of message here*
    postRequestSettings.getRequestParameters().add(new NameValuePair("message", message));
    *// Insert description of message here*
    postRequestSettings.getRequestParameters().add(new NameValuePair("description", description));
    *// Insert time of message here*
    postRequestSettings.getRequestParameters().add(new NameValuePair("time", time));
    *// Convert time to unix seconds*
    postRequestSettings.getRequestParameters().add(new NameValuePair("unixTime", String.valueOf(System.currentTimeMillis() / 1000)));
    HtmlPage newPage1 = pageMain.getWebClient().getPage(postRequestSettings);
    WebRequest requestSettings = new WebRequest(
    new URL("http://www.google.com"), HttpMethod.GET);
    requestSettings.setRequestParameters(new ArrayList());
    requestSettings.getRequestParameters().add(new NameValuePair("page", "Preview"));
    requestSettings.getRequestParameters().add(new NameValuePair("service", "page"));
    newPage1 = newPage1.getWebClient().getPage(requestSettings);
    And I'm told to insert page.getElementById() in the place shown below:
    HtmlPage page = null;
    page.getElementById()_
    *try {*
    *// Login proxy*
    page = (HtmlPage) jsonBrowser.getPage(getProperties("jsonBrowser"));
    String proxyUrl = page.getForms().get(0).getAttribute("action");
    System.out.println("Proxy Url" + proxyUrl);
    WebRequest requestSettings = new WebRequest(
    new URL(proxyUrl), HttpMethod.POST);
    requestSettings.setRequestParameters(new ArrayList());
    requestSettings.getRequestParameters().add(new NameValuePair("PROXY_SG_PASSWORD", password));
    requestSettings.getRequestParameters().add(new NameValuePair("PROXY_SG_PRIVATE_CHALLENGE_STATE", ""));
    requestSettings.getRequestParameters().add(new NameValuePair("PROXY_SG_REQUEST_ID", ""));
    requestSettings.getRequestParameters().add(new NameValuePair("PROXY_SG_USERNAME", userID));
    *// Get the page*
    page = page.getWebClient().getPage(requestSettings);
    Logger.getLogger(postTrustMessage.class.getName()).log(Level.INFO, "===================================Login in Trust");
    Logger.getLogger(postTrustMessage.class.getName()).log(Level.INFO, page.getWebResponse().getContentAsString());
    *} catch (IOException ex) {*
    Logger.getLogger(postTrustMessage.class.getName()).log(Level.SEVERE, null, ex);
    *} catch (FailingHttpStatusCodeException ex) {*
    Logger.getLogger(postTrustMessage.class.getName()).log(Level.SEVERE, null, ex);
    return page;
    Any help would be greatly appreciated. Thanks.

    I want to value drop down list from seeded page of EBSString picklistvalue = pageContext.getParameter("PickListBeanID"); //PickListBeanID is the ID of the MessageChoiceBean
    Thanks
    --Anil
    http://oracleanil.blogspot.com/

  • Value drop down list control in ADOBE Form

    We are on SP16 currently. We are developing an ADOBE interactive online
    form using ABAP WebDynpro.
    To display search help of a few fields like Vendor Number, G/L Account
    Number, Cost Center, we are using 'Value Help Drop Down List' control
    availalbe in WebDynpro Native group.
    After the form gets loaded on the broswer, first time the search help
    control works absolutely fine for any of the field. But only once. Once
    one search help gets displayed, none of the other search value drop
    down control gets clicked. But please note that normal drop down (with
    fixed values) gets clicked and allows to choose any entry from it. It
    also allows to enter values into other text box controls. Only Search
    Value Drop Down list stops working.
    For Example: We have 2 search help drop down list controls (one for
    LIFNR and another for WERKS) and 1 drop down list control (Fixed Values
    to be displayed for selection).
    After form gets displayed on ABAP WebDynpro, if we click on LIFNR, the
    search help for LIFNR will come and it will allow to select vendor
    number from it. But after that, it doesn't allow to select WERKS nor
    even to LIFNR. If we click on WERKS first, it will work perfactly fine
    but then, it will not allow LIFNR or WERKS after that. In any of the
    case, it will always allow to select the values from Fixed Value Drop
    down list.
    Please note that we dont have SAP Portal into the landscape.
    Is there any bug in the control?
    Please provide the solution ASAP.

    Hi Reema,
    We are using ZCI type of form. So, I dont think there is any need to run the report for ZCI_Update.
    And the display type of Interactive Form in ABAP WebDynpro is 'NATIVE' which is the same we dragged the control from (WebDynpro Native).
    Is there any work around to display search helps on ADOBE Interactive forms apart of this control?
    Appreciate your quick answer.
    Thanks & Regardss,
    Sandip Kamdar

  • Preselected values in drop-down lists

    Hi everyone,
    Some quick background before stating the issue: I've
    developed a set of forms in ASP.NET working with a SQL Server 2000
    db where my client can add, edit, and search records within their
    intranet. When adding a record, they are making some selections
    from a drop-down list where the values are dynamically populated
    from a lookup table. There are three sections to the form and each
    section gets its values from a different table. When editing a
    record, the drop-down lists should show all the choices but
    prepopulate the list with their earlier selection.
    Here's the issue: everything is working just fine on my box
    and is working 90% on my client's server. The problem is that when
    editing a record, two of the three sections of the form are showing
    the correct values. The third section is showing the first choice
    in the drop-down list rather than what was recorded in the db.
    Again, this is not happening in my development environment.
    It's only happening on my client's environment. I've triple-checked
    the code and confirmed that the datatypes in their tables match
    what I've got set up in my db. The fact that these pages are behind
    my client's firewall make the usual trial and error kind of
    troubleshooting very difficult.
    This is very mysterious. Any suggestions for what I can check
    and how I can troubleshoot this?
    Thanks.

    In case anyone else comes across this problem, it seems that
    deleting and recreating the table solved the problem. I renamed the
    original table and compared it to the one I recreated and they
    appear to be identical but nevertheless that was the
    solution.

  • Display pages that reacts to different values in the drop down list.

    I currently did up a simple drop down list that stores values retrieved from the database. I would like the program to display pages that reacts to the selected value without the press of any button, which means, if I select any value from the drop down list, the page will be displayed according to the value selected.
    Below are the codes that I did for the retrieval of data from the database.
    <%
            String username = "test";
            String password = "test";
            String thinConn = "jdbc:oracle:thin:@dbdev:1521:ORCL";
            Connection conn;
            Statement stm;
            ResultSet rs;
            String baseQuery ="SELECT DISTINCT ID FROM STAFF ORDER BY ID ASC";
            try {
                conn = DriverManager.getConnection(thinConn,username,password);
                stm = conn.createStatement();
                rs = stm.executeQuery(baseQuery);
    %>
    <strong>Retrieve ID from Database</strong>
        <select size="1" name="dropdown">
        <%
        while (rs.next()) {
            String id = rs.getString("ID");
            out.write("<option value=\"" + id + "\">" + "level " + id + "</option>");
                    conn.close();
                } catch (SQLException e) {
        %>
        </select>Would appreciate if someone might offer some help to what I have to do next
    Edited by: wyndsor on Jun 26, 2008 7:34 PM

    cotton.m wrote:
    [_An instant classic_|http://www.webdeveloper.com/forum/showthread.php?t=184937]
    Sometimes I find myself wondering why people think they won't get caught with their cross forum cross posting. Then I realize that if they knew about Google they wouldn't have needed to ask the question in the first place.
    It's kind of funny in an ironic sort of way.

  • Add a drop down list in an exercise

    Hi,
    I would like to generate an exercise (simulation) with Adobe
    Captivate, I found how to add a text area where the user can write,
    but in my exercise, i would like the user to select a value under a
    drop down list.
    I do not know if it’s possible, does someone know how
    to do this ?
    Thank’s for your help
    Xav31

    pgosler, I'm happy the video tutorials were helpful. We are
    not supposed to know this, but those tutorials were created by
    fellow AdobeCommunityExpert Mark Fletcher. Not sure why it's a
    secret, but is is, so don't tell anyone...
    The key to happy recording is and has always been to pay
    attention to the taskbar icon while recording - it will flash "red"
    each time a screen capture is made. And supplement the
    auto-captures by leaving one finger on the PRTSCR keyboard key to
    manually capture what you think the auto-record feature might have
    missed.
    In other words, Captivate's "automatic" capture features are
    great, but they should never be assumed to have replaced your brain
    ... the programmers haven't yet taught the program how to read
    minds.
    .

  • Drop-Down List in interactiveForm

    Hello everybody
    I've just started using interactiveForm and I've a little doubt, I've a drop-down list linked to a node of the context.
    I would like to bind an action on the selection of the drop-down list that must update another field/context element.
    I explain better:
    I ve a list of values/points
    A 2
    B 1
    C 3
    etc..
    in my list I must have A/B/C
    I've a field "points"
    When I select A , point must be updated to "2"
    When I select B , point must be updated to "1"
    Is it possible? how? I'm looking on documentation but I'm not able to find the binding with an action.
    Thank you,
    Serena

    yes, but I wasn't able to pass throught the onCheck.
    I try to explain better.
    I've the drop down list, with some values.
    I've bind the onCheck of my form with an action so in the property of the form I've:
    EVENT
    property: onCheck value: checkType
    and in my code the method
    public void onActioncheckType(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    that just print a screen message.
    Now when I change the value in my dropDown, I don't have the message so I think I miss a point: how to tell the dropdown to call the onCheck when I change the value.

  • Drop Down list in table with data from database table

    Hi,
    I have created an interactive form in WD ABAP.
    In Context tab I have created the nodes as follows:
    ZSOHEADER node with cardinality 1..1
    |-> MATERIAL node with cardinality 0..n. Under MATERIAL node there are 2 attrib. MAKTX and MATNR.
    I am fetching data from MARA table into an internal table IT_MARA.
    The node MATERIAL is bound to internal table IT_MARA.
    I have created a table with property ' Body rows vary depending on data ' .
    I have only one row in table. The first cell of the row is a drop down field.
    I have bind the field to the node MATERIAL->DATA->MAKTX.
    Now the issue is even though I have created only one row in my table, in preview it is creating as many rows in the table as the no.of records in the internal table.
    I want only one row with the drop down list containing all values of the internal table.
    Kindly suggest what to do.
    Regards,
    Vinod

    Hi,
    In the WebDynpro Context, in the main node create another node like A1 with cardinality 0..n and in this node create attributes TEXT and VALUE.
    Now goto method and in that method using code wizard read the node A1.
    And use the below code snippet sample in your program, i.e. code this under respective method of the webdynpro.
    *Declare the TYPES
    TYPES : BEGIN OF TY_TABLE,
    TEXT TYPE SOMETYPE,
    VALUE TYPE SOMETYPE,
    END OF TY_UOM.
    *Define Internal Table and work area.
    DATA : IT_TABLE TYPE STANDARD TABLE OF TY_TABLE INITIAL SIZE 0,
    WA_TABLE TYPE TY_TABLE.
    SELECT TEXT VALUE FROM TABLENAME INTO TABLE IT_TABLE.
    lr_node_info->bind_table( IT_TABLE ).
    And in the Adobe Form Layout
    Go to Menu of the Adobe LiveCycle Designer:
    Tools>Options..>DataBinding
    In that window you just check the Show Dynamic properties Check Box.
    Now for the Drop Down go the binding tab in object palette and click on the list items and there specify the Internal Table and specify the text as the internal table text field and value as internal table value field.
    OR
    From the WebDynpro Native Library Palette use the Value Help Drop Down and in object pallette goto binding tab and provide the form interface binding. Before this in the WebDynpro goto Context and for the particular field under the properties provide the search help as dictionary search help and specify the name of the dictionary search help.
    OR
    We have another method of setting the Text and Value to the DDL directly in the WebDynpro by coding in the methods, I dont have much knowledge on this.
    Regards
    Pradeep Goli

  • Including "All column name " in the dashboard prompt drop down list

    Hi All,
    I have following requirement :
    1. Exclude the one of the column value from the drop-down list ( say exclude XYZ from client Name)
    2. Add a new “All Clients” to the Column drop-down list and make that the default. This choice will be as if the user went in and selected all of the Clients on the drop-down list.
    I am not able to achieve the second point of the requirement . Can anyone help me with this.
    Edited by: Surabhi24 on Jul 12, 2012 11:52 AM

    If i understand you right you are trying to change "All column values" to "All clients" and you can do that in
    Global filter changes file
    oracle_BI1\bifoundation\web\msgdb\l_en\messages\globalfiltermessages.xml.
    Thanks
    Ravi

  • Drop down list in Adobe forms

    Hi All,
    I need to provide a drop down list in the Adobe form. I am calling this form from an SE38 program. I have selected the 'Value Help drop down list' element. How do i pass the value or bind the values to this element. The values for the drop down list are selected from a standard table at runtime.
    I tried using Enumerated drop down list also but did not work.
    Any idea????
    Thanks,
    Prakash Pandey

    Hi ,
    Thanks for posting this, saved me a lot of hassles trying to program something. One question. My values are in a nested table. e.g. I have a table with criteria for an appraisal. The criteria have a dropdown on them with a ratings. So, one appraisal, many citeria, many possible rating values. When I put in your code, e.g. $record.APPRAISAL.CRITERIA.DATA[].RATINGS.DATA[] , I get all Ratings relevant to all criteria on each line for the criteria table, not just for the criterion they belong to. How do I specify that it should only pick up the ratings for the current criterion ?
    Hope my explanation makes sense
    Thanks !

  • Formula that checks drop down list and then sums

    I have a table with a drop down list with two values: '$' and 'Hr' (cell called 'PType').  There is a cell called 'Proposed' that contains numerical data. The table is dynamic and can have more cells inserted via a button within the row.  I have a totals section that I want to total the SUM of 'Proposed' if the value in 'PType' is '$'.  I can't figure out what type of statement will allow me to write this.
    For now, my solution has been a hidden column whose cell simply states:
    if (PType == "$") then
        Proposed
    endif
    Then, in the totals section, I sum this hidden column since a value outside of '$' returns a '0' and won't affect my SUM.
    I am looking for a formula I can write that does this within the totals cell instead of having two cells.
    Thanks,
    Mallard27

    Here's my take on it.
    // form1.page1.subform1.table.footer.SUM::calculate - (JavaScript, client)
    var total = 0;
    for (i=0; i < form1.page1.subform1.table._row.count; i++) {
        if (table.resolveNode("row[" + i + "].Proposed").rawValue) {
            if (table.resolveNode("row[" + i + "].PType").rawValue == "$") {
                total = total + parseFloat(table.resolveNode("row[" + i + "].Proposed").rawValue);
    this.rawValue = parseFloat(total);
    Steve

Maybe you are looking for