ComboBox "Item" versus "Export Value"

I have a ComboBox which has a list of Items that each have an Export Value. I can reference the Export Value using this.getField('ComboBox').value; How can I reference the Item value in another field?

See that documentation and example code for the following:
currentValueIndices field property: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.694.html
getItemAt field method: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.745.html 

Similar Messages

  • Trying to get export value from combo box

    Using the "Custom Keystroke Script" for a combo box:
    // This works but gives the current face value
    if( event.willCommit )
        app.alert(event.value);
    // This works but gives the previous export value
    if( event.willCommit )
        app.alert(event.target.value);
    What I need is the clicked items' current export value as soon as it is clicked.
    What am I doing wrong?

    Sorry about that. I posted the question and then realized I should have just used the same thread.
    Any way, I tried your code and it does not show the current export value. It shows the previously selected value.
    Example:
    When I click item 2 it shows item 0
    Then I click item 4 and it shows item 2
    Then I click item 7 and it shows item 4.. etc.. (see the pattern)
    What I need is the value from the item I'm currently clicking on.
    If I click item 2, I expect to see item 2. etc..
    Thank you for your patience in answering this!

  • How Do I Get Item In Combo Box and Not It's Export Value?

    I created a Combo Box in Adobe pdf listing Company Names in the Item field. As well, I added an abbreviation for each Company Name in the Export Value field. When I try to display the Company Name from the Item field, it displays the Export Value.
    The Combo Box is named "Company-Name".
    In it, I have a company called "MacKenzie" within the Item Field. It's Export Value is "MFC".
    app.alert(this.getField("Company-Name").value); will display "MFC". How do I display or get the value from the Item field?

    You can use the getItemAt field method, like:
    // Get a reference to the combo box
    var f = getField("Company-Name");
    // Get the index of the selected item
    var a = f.currentValueIndices;
    // Show the item value of the selected item
    app.alert(f.getItemAt(a, false));

  • How do I add variables to different checkboxes without using the 'Export Value' and then add them together (if checked)?

    Hello,
    I am very new to JavaScript.  I would like to create a checkbox with a numerical value variable activated if the box is checked.  Unfortunately, I cannot use the 'Export Value' because I already need to use it for something else.
    Any help is really appreciated.
    Thanks,
    Robyn

    Brace yourself, here's your solution.
    First of all, the export value of you checkboxes should definitly be the number of hours for the class since you will just add them up further.
    Second, we will use the userName property for our second export value (its the field right under Name and its labeled "tooltip").  You will name the class there.
    Finally, you need to name each checkbox with a number at the end starting with 1 all the way to 190.  This will be used in loops. ("whatever.1", "whatever.2,....."whatever.190")
    In the calculate event of "total hours":
    var sum = 0;  //declaring a variable that will be used in the loop
    for (var i = 1; i <= 190; i++){    //this loop will scan through all your checkboxes
         if (this.getField("whatever."+i).isBoxChecked(0) == true){  //if box is checked....
              sum += Number(this.getField("whatever."+i).value);   //.....add its value to the sum
    event.value = sum;  //display the total
    Now for the course name field, we will use the same pattern in the calculate event
    var courseList = new Array();  //declaring an empty array that will contain the courses
    for (var i = 1; i <= 190; i++){    //this loop will scan through all your checkboxes
         if (this.getField("whatever."+i).isBoxChecked(0) == true){  //if box is checked....
              courseList.push(this.getField("whatever."+i).userName);   //.....add its userName (tooltip) to the array
    event.value = "You are attending these courses:  "+courseList.join(", ")+".";  //display the array by turning it into a string and joining its items with ", "
    You can try it out with just a few checkboxes at first.  Don't forget that the loop mustn't go further than the existing field or you will get an error and the script will stop.  Make sure no error show in the console (ctrl+J).

  • How do I get the export value of a combox upon opening a document?

    I can't find a way to access the currently selected export value from a combobox upon opening a PDF document (without a keystroke event), so I'm using a very ugly trick (I have a function with a switch statement that returns a value that matches the export value, based on the current combo face value.
    Isn't there a way to retrieve the export value of a combo box upon opening a document?
    Thanks!
    Fred

    The following code segment is for the change event of a comboBox.
    Whenever a selection is made I want to populate a Form Field with the face value of the comboBox.
    This isn't working - and I can't determine why -
    it appears that I am not dereferencing the text properly - but this is my best effort based on my knowledge.
    Can anyone help with this ?
    Thanks
    var 
    combo1 = topmostSubform.Page1.DropDownList1.Text;
    var Deflt = 1;
    switch
    (combo1){
    case 
    "Education":
    CurrentValue1.rawValue
    = topmostSubform.Page1.DropDownList1.Text;
    break 
    case 
    "Demographics":
    CurrentValue1.rawValue
    = topmostSubform.Page1.DropDownList1.Text;
    break 
    case 
    "Licenses":
    CurrentValue1.rawValue
    = topmostSubform.Page1.DropDownList1.Text;
    break 
    case 
    "Certifications":
    CurrentValue1.rawValue
    = topmostSubform.Page1.DropDownList1.Text;
    break 
    case 
    "Business Information":
    CurrentValue1.rawValue
    = topmostSubform.Page1.DropDownList1.Text;
    break; 
    case
    "Disclosure Questions":
    CurrentValue1.rawValue
    = topmostSubform.Page1.DropDownList1.Text;
    break 
    default:
    Deflt = 0;}

  • How to validate Combobox items without expanding the combobox.

    Hi,
    I want to select the combobox item.
    before selecting an item I want to validate whether the item is present in the combobox list.
    while validating the item at for loop the combobox get expanded. 
    I don't want to expand it.
    if (children[index].Name == entryToSelect)
    isExists =
    true;
    break;
    Please share your thoughts.....

    Hi Rosy D,
    I also try to test it in my side.
    As far as I know we could collect all items with ComboBox.ObjectCollection class:
    http://msdn.microsoft.com/en-us/library/system.windows.forms.combobox.objectcollection(v=vs.110).aspx
    http://stackoverflow.com/questions/17709363/check-if-user-input-are-in-the-combobox-items
    But it seems that I'm failed to use this method in coded UI tests, so I’m afraid that it has this limitation for this issue.
    We would use the
    GetChildren method,
    but as far as I know, we would expand this control.
    Reference:
    https://social.msdn.microsoft.com/Forums/en-US/6f71fed3-777f-433a-87b0-e4190ff06632/telerik-combobox-returned-as-an-editbox-vs-combobox?forum=vsautotest
    http://stackoverflow.com/questions/18079008/get-all-values-from-a-listbox-using-coded-ui-test-and-select-it
    Best Regards,
    Jack 
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • ComboBox Item How to remove repeating items that came from an entity of a .dbf database

    Hi all,
    Can somebody help me? What  I want to happen is create a ComboBox Item from a .dbf database, the PMXMON contains each product's monthly data. Here's a screenshot of the output:
    Is there a way to remove repeating items without changing the database contents?
    I have this code:
    Private Sub frmYearMonth_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    Dim conn As New System.Data.Odbc.OdbcConnection("Driver={Microsoft Visual FoxPro Driver};SourceType=DBF;SourceDB=C:\;Exclusive=No")
    conn.Open()
    Dim strQuery As String = "SELECT * FROM CSHPMXP1"
    Dim adapter As New System.Data.Odbc.OdbcDataAdapter(strQuery, conn)
    Dim ds As New System.Data.DataSet()
    adapter.Fill(ds, "PMXMON")
    With ComboBox1
    .DataSource = ds.Tables("PMXMON")
    .DisplayMember = "PMXMON"
    .ValueMember = "PMXMON"
    .SelectedIndex = 0
    .Text = "--YYYYmm--"
    End With
    End Sub
    Thanks :)
    Geee

    You can use Distinct keyword to return unique records from your DB.
    On the side  I'm not seeing any informative value in your Comobox, if you trying to show product monthly data.
    SELECT Distinct PMXMON
    FROM CSHPMXP1
    Fouad Roumieh

  • Freed goods item too in Value in crystal report

    Hi,
    iam invoicing SAP out put in Crystal format, now i required the free goods item  too in value( only in crystal report).
    Pls throw some light on this issue.
    Regards
    Shafique

    you need to total the pricing good and free goods? correct
    you should use manual running totals to calculate the values
    RESET               whileprintingrecords;
                   Numbervar  X := 0;
    CALCULATION          whileprintingrecords;
                   Numbervar  X := x + ;
    DISPLAY               whileprintingrecords;
                   Numbervar  X;
                   X
    im sure you have a group by invoice number in there.
    you will need to create 1 set of the above formulas for each total. (1 pricing, 1 free)
    reset placed in group header or report header dependent on where you want the values displayed
    calculation placed where it should be calc, details usually unless you have a group by goods
    display where you want the values to display in the report.
    the calculation formula may need to use a formula to capture good type

  • PO Line Item wise gross value for combination of WBS and Material Group

    Hello,
    Our requirement is to get report for PO Line Item wise gross value for combination of WBS and Material Group. Standard report ME2J gives net price but not gross value for Material Line items. Please let me know if any standard report( or ME2J) will suffice this requirement.
    Regards,
    Milind Dumbre

    Dear Milind
    No standard report available to get the PO Line Item wise gross value for combination of WBS and Material Group. Please go for development by taking reference ME2J.
    Warm regards
    Ramakrishna

  • Cannot add new items to a value list in AW database

    I have a database which I have been using for many years. One of the fields is a value list. I just went to add another item to the list, and no matter what I do, the Create button is grayed out. I have another value list in the same database that works fine.
    There are currently 170 items in the value list that is causin the problem, but I didn't think that there was a limit to the number of items that can be is a value list. (At least there is nothing in the AW technical specifications to indicate thin. I duplicated the existing database, deleted about 20 items from the list, then saved the file, and reopened it, and still cannot add new items to that value list. Does anyone know what might be causing the problem?

    Oops
    I read too fast.
    Here is a short script which may help.
    Replace the pop-up item by a text one and edit the property myList in my script to fit your needs.
    Select the field to fill and run the script.
    Then choose an item in the displaid list. It will be pasted in the selected field.
    This trick would give you to work with a "no limit" list of items.
    -- [SCRIPT DB fillFieldFromAlist ]
    Assuming that
    the front document is a database one
    and that a text field is selected,
    run the script to select an item in a list
    and paste it in the field.
    Yvan KOENIG, Vallauris (FRANCE)
    le 19 mars 2007
    property MyList : {"item 1", ¬
    "item 2", ¬
    "item 3", ¬
    "item 4", ¬
    "item 5", ¬
    "item 6", ¬
    "item 7", ¬
    "item 8", ¬
    (* edit the list to fit your needs *)
    tell application "AppleWorks 6"
    activate
    tell document 1
    set laClasse to (get class of selection)
    if laClasse is not field then return (* the selection is not a field *)
    set myItem to choose from list MyList
    if myItem is false then return
    set the clipboard to myItem's item 1
    select menu item 7 of menu 3 (*
    Tout sélectionner •• Select All *)
    paste
    end tell -- document 1
    end tell -- AppleWorks
    -- [/SCRIPT]
    Yvan KOENIG (from FRANCE lundi 19 mars 2007 16:44:53)

  • Why can't I see an export value option in my radio button properties? I am using Acrobat X pro.

    Why can't I see an export value option in my radio button properties? I am using Acrobat X pro.

    Thanks so much. Thought it was just the name of the button and did not realize it was the value. Now able to use them for calculations.

  • Is it possible to change the VBAP-ADRNR item address field value?

    Hi,
    Is it possible to update the VBAP-ADRNR item record field value?
    I am trying to update this field value from BAPI_SALESORDER_CHANGE but it is not changing the value.
    I am only able to change the corresponding address for that address number.
    But I need to change the address number( I want to replace with header address number) itself.
    If any ideas please let me know.
    Thanks,
    Mohan.

    ajitabap wrote:
    Hi
    >
    > Schedule Lines related Data USING BAPISDORDER_GETDETAILEDLIST Then Pass them to BAPI_SALESORDER_CHANGE Then It work and update the field.
    >
    > Regards
    > AJIT
    eh????
    What's the relevance of schedule lines and ADRNR?
    @OP: Don't. There is a reason why SAP gives out a new ADRNR. And manually changing the value of a primary/foreign key is never a good thing to do.

  • Conditionally set page item based on value of another item

    Hello,
    I have a form that is used to create/apply changes to records. There is an application item (APP_ITEM_PROFILE)
    that is set on login which contains a value for the user's Profile ID. This Profile ID is used through out the
    application for authorizations (conditionally present tabs, etc).
    I've set a page item on the form equal to APP_ITEM_PROFILE so that the record is stamped
    with that user's profile ID when they create a record. Users with different Profile IDs may later make changes to
    the record but I want to keep the original Profile_ID on the record.
    I am trying to populate the Profile ID conditionally in the form based on the existence of a
    record ID. If there is no ID (a new record is being entered), then I want the
    Profile ID to be that of the current user (APP_ITEM_PROFILE). If there is an ID (modification is
    being made to an existing record), then I want the keep the Profile ID that was originally saved
    with the record in MyTable.
    I have this as the source for :P11_PROFILE_ID. The type is PL/SQL Expression or Function, Always, replacing... but it
    is not working (page not found when page is run):
    begin
    if :P11_ID is not null
    then
    select PROFILE_ID
    into :P11_PROFILE_ID
    from MyTable
    where ID = :P11_ID;
    elsif :P11_ID is null
    then select nv(':APP_ITEM_PROFILE') into :P11_PROFILE_ID from dual;
    end if;
    end;
    Item Descriptions:
    ID is the record ID.
    :P11_ID is the page item of the record ID (Display as Text, saves state).
    PROFILE_ID is the user's Profile ID.
    :P11_PROFILE_ID     is the page item of the user's Profile ID.
    :APP_ITEM_PROFILE is the user's Profile ID that is set on login.
    Any help is greatly appreciated.
    Thanks,
    Matt
    Update:
    I found one of Scott's answers:
    Using IF Else to determine the value of a Item
    and modified the above code to:
    declare l_ret number;
    begin
    if :P11_ID is not null
    then
    select PROFILE_ID
    into l_ret
    from MyTable
    where ID = :P11_ID;
    else select :APP_ITEM_PROFILE' into l_ret from dual;
    end if;
    return l_ret;
    end;
    It seems to be setting the Profile ID correctly when the ID is not null, but not when a new record is being created. In the latter case, there is no value.
    Edited by: mterlesky on May 11, 2009 11:02 PM
    Edited by: mterlesky on May 11, 2009 11:52 PM
    Edited by: mterlesky on May 11, 2009 11:53 PM

    Thanks. That is putting the value into the page item and session state but that value is not being saved when the record is created. I'm not sure why - here is part of the debug (the "Billing" table is the "MyTable" table in the previous posting). Any thoughts?
    On form, before submit:
    0.06: Saving g_arg_names=P11_PROFILE_ID and g_arg_values=112
    0.06: ...Session State: Saved Item "P11_PROFILE_ID" New Value="112"
    After Submit
    0.06: ...Session State: Save "P11_PROFILE_ID" - saving same value: "112"
    (validations not shown)
    0.10: Processing point: AFTER_SUBMIT
    0.10: ...Process "Get PK": PLSQL (AFTER_SUBMIT) declare function get_pk return varchar2 is begin for c1 in (select BILLING_SEQ.nextval next_val from dual) loop return c1.next_val; end loop; end; begin :P11_ID := get_pk; end;
    0.10: ...Session State: Save Item "P11_ID" newValue="452" "escape_on_input="Y"
    0.10: ...Do not run process "Get PK for CREATEAGAIN", process point=AFTER_SUBMIT, condition type=, when button pressed=CREATEAGAIN
    0.10: ...Process "Process Row of BILLING": DML_PROCESS_ROW (AFTER_SUBMIT) #OWNER#:BILLING:P11_ID:ID|IUD
    0.10: ...Process "Update TOTAL_HOURS": PLSQL (AFTER_SUBMIT) begin Update billing set TOTAL_HOURS = ((NVL(CD_90801_UNITS,0)*1.5)+ (NVL(CD_90804_UNITS_B,0)*.5)+ NVL(CD_90806_UNITS,0)+ (NVL(CD_90808_UNITS_B,0)*1.5)+ NVL(CD_90812_UNITS,0)+ (NVL(CD_90814_UNITS_B,0)*1.5)+ NVL(CD_90846_UNITS,0)+ NVL(CD_90847_UNITS,0)+ NV
    0.11: ...Process "Update TOTAL_UNITS": PLSQL (AFTER_SUBMIT) begin Update billing set TOTAL_UNITS = (NVL(CD_90801_UNITS,0)+ NVL(CD_90804_UNITS_B,0)+ NVL(CD_90806_UNITS,0)+ NVL(CD_90808_UNITS_B,0)+ NVL(CD_90812_UNITS,0)+ NVL(CD_90814_UNITS_B,0)+ NVL(CD_90846_UNITS,0)+ NVL(CD_90847_UNITS,0)+ NVL(CD_90853_UNITS,0)+ NV
    0.11: ...Process "G_TRANS_COUNT_ADD": PLSQL (AFTER_SUBMIT) begin :G_TRANS_COUNT := :G_TRANS_COUNT +1; end;
    0.11: ...Session State: Saved Item "G_TRANS_COUNT" New Value="1"
    0.11: ...Process "Email_Notification": PLSQL (AFTER_SUBMIT) declare l_body_html varchar2(4000); begin l_body_html := '<p>Billing ID '||:P11_ID||' was entered by '||:P11_PROV_NAME||'.'|| ' More transactions may have been entered by the provider after this one.'||'</p> <p><a
    Edited by: mterlesky on May 12, 2009 9:21 AM

  • FormsCentral is discarding dropdown export values when importing PDF form

    I would like to disclose that I am fairly new to this process.
    I have created a pdf from a word document. After creating the form portion in Adobe Acrobat XI Pro and adding in javascript validations and calculations, sourced mainly from these community forums I am encountering an error when importing the form to FormsCentral.  I have dropdown boxes that contain numbers (1,2,3, etc.) to select the amount of guests the recipient will invite. In turn, when selecting a certain number, the export value ($100,$200,$300, etc.) will show up in an adjacent text box stating in the amount it will cost.
    This works fine in Acrobat, however when I import it I get a message:
         FormsCentral has successfully imported the PDF with the following exceptions:
         The choice field AddtD contains both display and export values. FormsCentral must discard the export values and this may cause existing calculations and validations to fail.
         The choice field AddtG&D contains both display and export values. FormsCentral must discard the export values and this may cause existing calculations and validations to fail.
    When it comes to efficiency, I am aware I may be doing things the tedious way. But I would like some insight on how to make the textbox more active in this scenario. I will include my properties / validations and calculations:
    Dropdown box 1 (AddtG&D): Export values, as previously discussed
    Text box 1 (TotalAddtG&D):
    Validation Script:
    // null filed value if entry is zero
    if(event.value == 0) event.value = "";
    Custom Calculation Script:
    // Set this field value to the value of the combo box
    event.value = getField("AddtG&D").value;
    The same goes for Dropdown box 2 and Text box 2, as they are identical. Any help would be great!

    Well that simplifies it a lot, since all you need to do is multiply the field value by a constant amount in both cases. So the new calculation script could be:
    event.value = 100 * getField("AddtG&D").value;
    and for the other:
    event.value = 45 * getField("AddtG&D").value;
    though I'm not sure if that's the correct field name.

  • Need Help, retrieving a combo boxes actual/print/visible value instead of the export value.

    Hello,
    I need help, retrieving a combo boxes actual value, not the export value.
    I have a combo box with multiple options to select from.
    each of those selections has a separate export value, which is in the form of a number, which I use to calculate dates in a separate field.
    However, I have another field that i want to retrieve the, users selected value, which is text, from the combo box instead of the export value.
    Is there an easy way to do this.
    This is what I am currently using. But like I said the results are that I retrieve the export value and not the selected text value.
    event.value = this.getField("_Arugula").valueAsString;
    Thanks

    First get the currentValueIndices property of the combo box and use it with the getItemAt field method to return (what I call) the display value. Something like:
    var f = getField("combo1");
    var display_value = f.getItemAt(f.currentValueIndices, false);
    See the documentation for more information

Maybe you are looking for