Values from listbox to appear as a list in a text box.

I am using Acrobat X to create a PDF form. I have a listbox where multiple selections can be made and need these export values to appear in a text box as a list with one value per line. I have managed to get the values to appear in the text box, however they are appearing in a continuous line separated by a comma. I have very little knowledge of Java Script and would appreciate any assistance.

A better option is to use this code (the reason it's better is because one of the values can contain a comma, and then it will be split with the code above):
var v = this.getField("Awards").value;
if (typeof v == "string") event.value = v;
else event.value = v.join("\r");

Similar Messages

  • Save the selected value from listbox with its respective tab control dropdown selcted values in another listbox

    Hi all,
    I am making a vi where I have to save the selected value from listbox with its respective tab control dropdown selcted values in another listbox.Whenever I select Item1 then the heading change and respective tab will open for that item.But Now I just want to save the selection and put it in another ListBox.SO that I can renmove or add according to my wish. Plz help me.
    Solved!
    Go to Solution.
    Attachments:
    my_vi.png ‏83 KB

    Hi, I successfully make the vi to insert itmes from listbox1 to listbox2.Whenever I select itmes 1 in listbox 1 it display same elected item in listbox2 , but it not appending the items in listbox2.Like If 1 is selected in listbox1 then 1 will display , next time after saving when I selct next item like 3 then in listbox 2, 1 is replaced by 3,it dont come in second row of listbox2.Hope I am able to explain.\
    Plz help me to resolve this.
    Attachments:
    listbox_update.vi ‏11 KB

  • How can I get values from listbox?

    Hi all,
    I need to get price values from Price List (Inventory -> Item Master Data screen). It's important to get values from field 'Price' BEFORE item will be added/updated.
    How can I get values from Pricelist listbox?
    Thanks for any suggestions or short sample code.
    Best regards,
    Andy

    Hi Andy
    Here is som sample code that will get the description of the price list and also the price that is displaying at the time. The item master must be open for this snippet of code
      Public Sub GetItemPriceFromOpenWindow()
            'this is assuming item master is open
            Dim oEdit As SAPbouiCOM.EditText
            oEdit = SBO_Application.Forms.GetForm("150", 1).Items.Item("34").Specific
            SBO_Application.MessageBox(oEdit.Value)
            Dim oCmb As SAPbouiCOM.ComboBox
            oCmb = SBO_Application.Forms.GetForm("150", 1).Items.Item("24").Specific
            SBO_Application.MessageBox(oCmb.Selected.Description)
        End Sub
    Hope it helps

  • Reading Values from Listbox and data source into MS Office Toolkit

    Hi,
    Been trying to get this to work but making no progress and my lack of experience on labview is becoming a hinderence.
    Does anyone know how I can read the values from the listbox example attached into MS Office Toolkit for Excel?
    The values from the listbox need to be compared to mulitple values from a strain data source.
    Cheers,
    Mike.
    Attachments:
    Capture.PNG ‏62 KB

    Hi,
    Ok in the attached vi I want value from the listbox "0kg through to 10kg" to be put into the excel table in the report generation toolkit along side data from the convert strain gauge reading.
    Cheers,
    Mick.
    Attachments:
    Strain Gauge Edit2.vi ‏112 KB

  • SSRS report - A single selection dropdown list converted to text box

    Hello everyone,
    We created a single selection dropdown parameter (City parameter) on a report. The data in this parameter is populated using MDX query. Also, it is filtered based on selection of another single selection dropdown list (Country parameter) of a report.
    The problem is when there is no cities for the selected country the dropdown list is gets converted to free type text box and user can insert city data in it. Why SSRS is not keeping it as empty dropdown list with no data?
    Any help would be much appreciated.
    Thanks, Ankit Shah
    Inkey Solutions, India.
    Microsoft Certified Business Management Solutions Professionals
    http://www.inkeysolutions.com/MicrosoftDynamicsCRM.html

    Hello Charlie,
    We developed a fresh report only with two parameters but still the dropdown control gets converted to text box in our case. We have two single selection parameters, Location and Customers. Based on selected Location the customer
    dropdown gets populated.
    Location Parameter Query
    WITH MEMBER [Measures].[ParameterCaption] AS [Location].[Location Name].CURRENTMEMBER.MEMBER_CAPTION MEMBER [Measures].[ParameterValue] AS [Location].[Location Name].CURRENTMEMBER.UNIQUENAME MEMBER
    [Measures].[ParameterLevel] AS [Location].[Location Name].CURRENTMEMBER.LEVEL.ORDINAL
    SELECT {[Measures].[ParameterCaption], [Measures].[ParameterValue], [Measures].[ParameterLevel]} ON COLUMNS , [Location].[Location Name].ALLMEMBERS ON ROWS FROM [Model]
    Customer Query
    WITH MEMBER [Measures].[ParameterCaption] AS
    [Customer].[Customer Name].CURRENTMEMBER.MEMBER_CAPTION
    MEMBER [Measures].[ParameterValue] AS
    [Customer].[Customer Name].CURRENTMEMBER.UNIQUENAME
    MEMBER [Measures].[ParameterLevel] AS [Customer].[Customer Name].CURRENTMEMBER.LEVEL.ORDINAL
    SELECT {[Measures].[ParameterCaption], [Measures].[ParameterValue], [Measures].[ParameterLevel],[Measures].[Amt]} ON COLUMNS,
    nonempty([Customer].[Customer Name].ALLMEMBERS,[Measures].[Amt]) ON ROWS FROM ( SELECT ( STRTOSET(@LocationName, CONSTRAINED) ) ON COLUMNS FROM [Model])
    Regarding parameter settings on General tab for both the above parameters we did not select any of the following values, all these checkboxes are empty:
    Allow Blank Value ("") , Allow null value, Allow multiple values.
    I think it has something related to [Measures].[Amt] that we used in customer parameter. We are now trying to take other two parameters where we would be not using the [Measures].[Amt] to filter the data. Will update you soon.
    Thanks, Ankit Shah
    Inkey Solutions, India.
    Microsoft Certified Business Management Solutions Professionals
    http://www.inkeysolutions.com/MicrosoftDynamicsCRM.html

  • Get selected values from Listbox control

    Hi All,
    I'm still new to SL so please bear with me.
    I have a ListBox being bound with some records from a DB.  Here's the xaml:
    <ListBox x:Name="lstClassSeries" SelectionMode="Multiple" DisplayMemberPath="Description" Grid.Row="11" Grid.Column="1"></ListBox>
    What I need is to get the values of the items that were selected and I can't seem to get it to work.  I've tried looping through the SelectedItems but there's no property for value or text.  I even tried to cast the item as a ListBoxItem but I
    get the following error:
    Unable to cast object of type 'UI.Silverlight.TransactionService.DTODropDown' to type 'System.Windows.Controls.ListBoxItem'.
    How can I get the values of the items selected?
    Thanks

    You're using windows forms style techniques with xaml.
    This is a bad idea.
    You ought to learn MVVM.
    You probably don't think you want to learn it, but trust me on this one.
    Learn MVVM as soon as you can.
    There's a selecteditems collection.
    You have to cast   to listboxitem, it has a content property which you cast to whatever you put in there originally.
    Here's a snippet.
    I have a class foo, load a bunch of them in.  Do stuff. Work out what's selected in the click event of a button.
    public class foo
    public int id {get;set;}
    public string description {get;set;}
    public partial class MainPage : UserControl
    public MainPage()
    InitializeComponent();
    lb.Items.Add(new ListBoxItem{Content=new foo{ id=1, description="a"}});
    lb.Items.Add(new ListBoxItem { Content = new foo { id = 2, description = "b" } });
    lb.Items.Add(new ListBoxItem { Content = new foo { id = 3, description = "c" } });
    private void Button_Click(object sender, RoutedEventArgs e)
    List<foo> selectedfoos = lb.SelectedItems.Cast<ListBoxItem>().Select(x=>x.Content as foo).ToList();
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • Getting selected value from Listbox

    Hi,
    I have populated my listbox on the selection screen using the function module VRM_SET_VALUES.
    How do I get the value which is selected from the list box.
    Where is the selected value in the listbox stored.
    Thanks,
    Abhishek

    The code I used is:
    Another issue is that whenever I select any value in the listbox it is not displayed on the screen. It becomes blank again.
    PARAMETERS:  p_prin  AS LISTBOX VISIBLE LENGTH 30 USER-COMMAND sele.
      DATA: i_printers TYPE STANDARD TABLE OF frprlist,
            wa_printers TYPE frprlist.
      DATA: l_name  TYPE         vrm_id,
            i_list  TYPE         vrm_values,
            l_ctr   TYPE         i VALUE 0,
            wa_value LIKE LINE OF i_list.
      CLEAR: wa_value.
    Get printers
      CALL FUNCTION 'RSPO_FRONTEND_PRINTERS_FOR_DEV'
        EXPORTING
          device         = p_print
        TABLES
          list           = i_printers
        EXCEPTIONS
          no_list        = 1
          list_truncated = 2
          name_not_found = 3
          OTHERS         = 4.
      IF sy-subrc EQ 0.
    Populate to drop down box
        l_name = c_prin.
        LOOP AT i_printers INTO wa_printers.
          l_ctr = l_ctr + 1.
          wa_value-key = l_ctr.
          wa_value-text = wa_printers-prname.
          APPEND wa_value TO i_list.
          CLEAR wa_value.
        ENDLOOP.
        CALL FUNCTION 'VRM_SET_VALUES'
          EXPORTING
            id              = l_name
            values          = i_list
          EXCEPTIONS
            id_illegal_name = 1
            OTHERS          = 2.
        IF sy-subrc NE 0.
    Do nothing
        ENDIF.
      ENDIF.
      CLEAR: l_name, l_ctr, wa_value, i_list.

  • Retrieve Values From ListBox

    Hi,
    I have a ListBox populated with values. The user can select multiple values. One of the values is "OTHER". If this is selected (alone or amongst multiple selections) a text field should be turned from read only to open.
    So far I can do this only when the OTHER value is selected by itself. How can I modify my current script to accommodate for multiple selections?
    Current JavaScript:
    if (this.rawValue == "OTHER - Please Specify")
    PO.main.Subform5.OtherRegion.rawValue = "-->SPECIFY<--";
    PO.main.Subform5.OtherRegion.access = "open";
    else
    PO.main.Subform5.OtherRegion.rawValue = "------";
    PO.main.Subform5.OtherRegion.access = "readOnly";
    Thanks

    Try something like this
    <select size="1" name="tst" tabindex="3">
    <option value="item1">item1</option>
    <option value="item2">item2</option>
    <option value="item3">item3</option>
    </select>
    then in the response
    <%
    String result = request.getParameter("tst");
    out.println("You selected: " + result);
    %>
    I haven't tested this out, but I believe something like this should work

  • How to get value from listbox?

    I have a listbox in the form part where user can select more than one values. ie i have a list of districts where people can choose more than one district at once. When this value is submitted, i need to display the name of this district in the jsp page.
    In other words, in the next page i need the value as:
    district = "12,15,16,14,11,10";
    Can anybody help me out with this?

    Thank u for the reply, but
    I mean that,
    i have a page in html as:
    <select name="district[]">
    <option value="1" selected>District1</option>
    <option value="2" selected>District2</option>
    <option value="3" >District3</option>
    <option value="4" selected>District4</option>
    </select>
    Here only three districts are selected. SO in the next page after submitting this page, i need the id of selected districts only so that i can make it in the following string format.
    district = "1,2,4";
    I have tried with
    district = request.getparameter("district");
    and it returned only the last id (ie 4). not all the selected districts.
    I think, u got my problem. getID is the function of javascript, it doesnot return value in jsp.

  • Values from a Multi-Select in the where clause of a Select statement

    I have a web page that solicits query parameters from the user.
    The selections that the user makes will populate the WHERE clause of a Select statement.
    One of the controls on the page is a multi-select control.
    When this page posts, I would like to execute a Select statement wherein the selected values from this control appear in the .. Column IN ( <list here> ) portion of the WHERE clause.
    This is an extremely common scenario, but I cannot seem to locate a how-to or message thread that addresses this specific case.
    I have an idea that it may involve dynamic SQL or Execute Immediate, but cannot seem to pin down the answer.
    Any help would be greatly appreciated!

    anonymous - As illustrated here: Re: Search on a typed in list of values
    Scott

  • Values from check table to Dropdown

    Hi Experts,
                    I have a requirement like, i want to show the values from a check table in dropdown list. i have two transparent table of which i made a foreign key relation with the second one with some value restrictions. That all working fine.  
        I tried creating an input box with reference to the field in the first table.then the search help is comming correctly with the valus from check table. But when i tried to attach the same to dropdown its not displaying the value.
    please suggest a solution to display the values in drop down.
    Regards
    Sarath
    Message was edited by:
            sarath satheesan

    hi sarath.........
              consider you want to have some 10 purchase order numbers in your drop down.
              you will be assigning a node to your drop down.
              in its supply function, write the codings to fill your node by using a select query.
               just like filling a table.
               in this case, your drop down gets filled automatically.
    --regards,
      alex b justin

  • Pass value from one layer to another.

    Hey,
    Is it possible to pass a value from one layer to another.
    I have a text that I'll get from layer 1 and I want to pass the value to a TextArea in layer 3.
    Is it possible, anyone?
    Thanks.

    I cannot be sure what you are calling a layer is what I know to be a layer--normally one does not go to layers, one goes to different frames.  If you look at the timeline, it consists of frames and possibly multiple layers.  Every layer has the same number of frames, and content in frame 1 of one layer is accessible by content in frame 1 of any other layer.  So if you have a textfield in layer 1, frame 1, and you have a textarea in frame 1, layer 2, you can use code to have the text in one of those assigned to the other.
    If you show a picture of what you are trying to describe it may help.

  • Bulleted Lists in Text Boxes?

    Hi all,
    Apologies if this has been asked before - I've searched but to no avail.
    Can one, in a text document, have a bulleted list in a text box? I've tried, but when the text to be bulleted in the text box is selected, the toolbar and the 'Format' drop-down menu changes and the 'Bullets On/Off' button is not available.
    I've tried customising the toolbars (which I feel I shouldn't have to do anyway), but this doesn't work. I've tried to cut and paste in bulletted points from normal text (which I feel I shouldn't have to do either) but this doesn't work either.
    Any suggestions, or is this a bug/feature?
    With thanks,
    Sean.

    If you mean the text function in the drawing toolbar, it isn't possible.
    You should use frames.

  • Need help adding field data from a table to a text box

    I have a form that has a table. Within the table is a description box. The user enters data into the box and can add/remove new items. When they are done I would like the text from these fields to be concatenated into a large text box. Essentially what they are doing is creating a list of descriptions that will be pushed into a report field.
    Thanks,

    Hi,
    Yes, you should be able to adapt the example to work for the main summary textfield.
    I would place the script in the exit event of the table textfields. You would still need to clear the summary textfield and then loop through the table and update.
    Inside the loop the text would be like:
    summary.rawValue = summary.rawValue + xfa.resolveNode("Table1.Row1[" + i + "]").textField.rawValue + " ";
    Hope that helps,
    Niall

  • Numbered lists in text boxes automatically updating

    I have seperate text boxes that are involved in numbered lists, and I want to be able to reorder the text boxes so that they automatically update the numbers within them. How do I do this?! As you can see when I move the text box containing 2.0 numbered list, the following numbers do not update. How do I create this updating numbered list in seperate text boxes?

    If you mean the text function in the drawing toolbar, it isn't possible.
    You should use frames.

Maybe you are looking for

  • What is wrong with my video on Skype?

    what is wrong with my vedio on skype This post was transferred from its previous location to create its own new topic here; its subject and/or title has been edited to differentiate the post from other inquiries and to reflect the post's content. A l

  • How to define the order of GROUPBYs, JOINs and FILTERS in an interface?

    Hello, I would like to define an interface which implements the following logic: Give me a list of all customers with less then 2 orders in status = 'A'. SELECT C.Name, o.cnt FROM CUSTOMER C LEFT OUTER JOIN (SELECT cust_id, count(*) cnt FROM ORDERS W

  • Difference between physical and logical standby database

    What is the difference between physical and logical standby database?

  • Folder in folder

    apparently it's impossible. I can't create one on my 3250 which has an even newer symbian on it. But as i remember, on my 6600 (lon ago) i could...probably nokia didn't include this feature in the new symbian versions

  • Regarding - External Service

    Hi, How to do external service for Sub Equipments like motor,A/C's etc with my requirement My Client have Equipment which have huge no of motors of different capacity, they dont want to maintain as sub equipment or material. How to do External servic