Auto update of text field on drop down change (binded to XML doc)

Hi all,
I have a problem that i'm stuck with since too long and I'll be really grateful for any useful idea.
Here is my issue:
I have this XML:
<?xml version="1.0" encoding="UTF-8"?>
<ItemsList>
          <Product>
                    <itemUnitPrice>200.00000000</itemUnitPrice>
                    <itemCode>lkg</itemCode>
                    <ItemID>2</ItemID>
                    <itemDescription>lk desc</itemDescription>
          </Product>
          <Product>
                    <itemUnitPrice>300.00000000</itemUnitPrice>
                    <itemCode>lkv</itemCode>
                    <ItemID>1</ItemID>
                    <itemDescription>lkv desc</itemDescription>
          </Product>
          <Product>
                    <itemUnitPrice>400.00000000</itemUnitPrice>
                    <itemCode>lks</itemCode>
                    <ItemID>3</ItemID>
                    <itemDescription>lks desc</itemDescription>
          </Product>
</ItemsList>
ItemID and itemCode are bounded to my dd list and the left is bounded to the rest of the columns in my table (below).
I`d like to find a way to auto change, for example the unit price, of an item selected from the list.
I have to mention that this xml is returned by a database and data can change so  i can`t write javascript static code to match itemId with their Unitprice and description.
Any ideas ??
Thanks in advance.

Hi,
yes this is possible.
Add this script to the change event of your dropw down list.
Text1.value.text.value = xfa.event.change;

Similar Messages

  • Email form script with custom text field and drop-down menu?

    Hey, I'm building a website in iWeb - http://dl.dropbox.com/u/19707357/Website/craftpackage.html
    And I was looking for a script that could possibly send an email to me with the info a user chooses from/puts in 1. dropdown menu 2. text field 3. another text field. I'd be awesome if the fields could have a custom background or a transparent background.The drop-down menu could have any background, but it would be awesome if it could be made with custom images !

    Basic question.
    What have you yourself done to find out?
    Nothing?
    Start here :
    http://www.google.com/search?q=how+to+make+a+mail+form
    http://www.google.com/search?q=dropdown+menu+with+transparent+background
    Unfortunately, it has no dropdown menu :
    http://www.wyodor.net/blog/archives/2010/01/entry_301.html
    Btw, dropdown menus in forms at select menus. These are not the same.
    http://www.google.com/search?q=select+menu+form
    http://http://www.w3schools.com/html/html_forms.asp
    So start practicing and once everything works the way it should, display it in a html snippet.

  • Copy text fields and drop down menu fields

    Hi,
    Using LiveCycle Designer ES, I am making a simple form with some text fields and along with some drop-down menu fields.  With the resulting pdf, I need for one to be able to select the appropriate selection in the drop-down menus.  Then using cntl-a to select everything and then cntl-v to copy it into a text document.  This approach will only copy the text fields and not what is showing in the drop-down menu field.  Is there any way to solve this problem?  The end users computer has limited tools and software cannot be installed on it.
    Thank you for considering this issue and any help you may provide,
    ja

    Hi,
    I don't really know if the text field can be selected using Ctl+a, but if that is possible how about adding extra text field that is linked to pulldown menu?
    If the usage of the PDF is only for copying, then I would make a formcalc or javascript to combine all the text into one text field so that user only need to copy paste one field.

  • Importing Value/Text into drop down menu Binding tab

    I did this before and I can't for the life of me remember how I did it. I need to be able to replace the text in the Value and Text areas (as shown below) with updated text. I don't think I did it using Data binding. Seems like I was able to use either an .xml or .csv file and copy and paste it and I got the result I needed.
    I am splitting the Value among multiple fields. I know this was not entered manually as there are about 5000 entries. Any help would be greatly appreciated!
    Thanks, Gary

    If the Clip board has copied one column(ex: excel sheet) it will copy all the rows as values "Text" of the drop down ONLY.
    If the Clip board has copied 2 columns the first column goes in to "Text" and the second column goes into"Value". By default the it will be checked the "Specify item values" check box too.
    All you need here is:
    1.format text and values in to 2 separate columns to populate the dropdown. (can use excel features to generate the spreadsheet. This step output should be in 2 columns only to go in to text and values of DD).
    2. place a dropdown field (no properties changes required on any TAB(ex: binding))
    3. copy the 2 columns from the spreadsheet and paste it using the "paste from clipboard" under "Field" tab
    4. now check the binding tab, should be there both values and text for all the entries provided by spread sheet.
    Hope this helps, If i understand incorrectly please ignore this.

  • Allow Custom Text Entry for Drop down not working For Dynamic form

    Dear All,
    In drop down field Allow custom text entry is working fine if the form is save as a static pdf form file.But if the form is save as a Dynamic pdf form file it is not working.I can enter custom text in drop down field but after filling it up when I click on next field the text from the drop down is disappearing.
    If any body can please help me to solve this problem.
    Thanks a lot in advance
    Regards
    Rakesh

    Dear Jimmypham,
    Thanks a lot for your quick response.But it's not working for me.I have even tried with a form having only single field and save it as a dynamic pdf file.In that form also it's not working.The text which I have entered is disappearing when I click outside of this field.
    Can you please help me to find out the solution for this problem.
    Regards
    Rakesh

  • Lost all the text in my drop down menus

    All of a sudden I do not see any text in my drop down menus or on pop-ups. I tried to open Safari and got the pop up menu with a yellow triangle with a black exclamation point in it. It also had the three buttons at the bottom - one was blue - but no words.
    I can open Firefox but not Safari. I can open the System Preferences widget but all I see are the icons, not the names of the choices. No matter what application is open I do not see any words in the dropdown menu.
    First I tried zapping the PRAM. Didn't work. Then I booted from the startup disk and ran the disk repair utility, it repaired several things, but I'm still having the problem.
    The font on my menu bar has changed too.
    I installed x11 two days ago - not from the startup disk but from a website a friend helped me find when I didn't have my disk with me. I also installed Open Office. Should I uninstall those?
    Is it possible I got a virus?? I have no clue how to deal with a virus on a Mac. I haven't had any trouble with my iBook since I got it in November 2005, and I don't know any tricks.

    hi Rina!
    my apologies, i'm guessing from your name that you might be from a non-english-speaking location ... if so, check to see if this is an issue for you (also see other posts in the thread):
    Markus Eberhard, "iTunes 6: No music shows up in iTunes after upgrading" #12, 03:59pm Oct 18, 2005 CDT
    ... if i've gotten things horribly wrong, post back and we can try again.
    love, b

  • Text elements in drop down box

    Hi,
    I am working on text elements in drop down box for service request application. I have a requirement that the display of text elements in PCUI should be in such a way that
    depends on the role of the user. eg: for role 'X' some  text elements should be displayed and role 'Y' remaining text elements should be displayed. In SAP GUI all text elements should be displayed. I copied MAC of text data to ZCL_CRM_BSP_AM_SLS_TM and tried to add the logic in methods IF_CRM_BSP_MODEL_ACCESS_IL~GET_ALLOWED_DDLB_VALUES
    IF_CRM_BSP_MODEL_ACCESS_IL~FILL_DROPDOWN_LISTBOX
    when i put external break point none of this methods are touched. Instead it goes to the methods of the class CL_CRM_BSP_TEXTMANAGEMENT_SC. This method is buried deep inside. Should i copy all the standard classes above this class and do the modification? Is there any other way? Any help is highly appreciated.
    Kind Regards,
    Charan

    Hi Charan,
    You have mentioned that in GUI all text elements have to be displayed. Why is it so?
    If that's not the case then you can control it in PFCG authorizations. Object CRM_TXT_ID.
    If you provide authorizations for a specific role for specific text ids only, the same would reflect in PCUI also. Others may not appear in the dropdown.
    Please try.
    Regards,
    J.Prabananth

  • Auto scrolling dynamic text field(news ticker)

    > This message is in MIME format. Since your mail reader
    does not understand
    this format, some or all of this message may not be legible.
    --B_3272625483_2679871
    Content-type: text/plain;
    charset="US-ASCII"
    Content-transfer-encoding: 7bit
    Does anyone know how to make a scrollable dynamic text field
    scroll on its
    own and also with user interaction?
    Thanks in advance for your help.
    Bill
    --B_3272625483_2679871
    Content-type: text/html;
    charset="US-ASCII"
    Content-transfer-encoding: quoted-printable
    <HTML>
    <HEAD>
    <TITLE>Auto scrolling dynamic text field(news
    ticker)</TITLE>
    </HEAD>
    <BODY>
    <FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN
    STYLE=3D'font-size:12.0px'>Does =
    anyone know how to make a scrollable dynamic text field
    scroll on its own an=
    d also with user interaction?<BR>
    <BR>
    Thanks in advance for your help.<BR>
    <BR>
    Bill</SPAN></FONT>
    </BODY>
    </HTML>
    --B_3272625483_2679871--

    I found this:
    http://www.kirupa.com/developer/mx/dynamic_scroller.htm
    I copied the actual scroller and put it in my .fla and it
    worked! Now if I can only figure out links in XML...

  • How to change the  attribute of screen field to drop down list dynamically

    Hi All,
      Col X                   Col Y
      A                        input field
      B                       drop down list
    This is a tabular disply where the Screen field attribute for Col y  is NO DROP DOWN BOX.
    My requirement is to change the attribute of COl Y to DROP DOWN list depending on the value of
      COL X  dynamically.

    Dear Ajay,
    Actually this requirement is to enhance the standard screen for Tcode :EHSVU21.
    So depending on the 1st Column(Test no)  value ,i have to change the 3rd Column(Low.norm.result)
    property either to DROP Down or not.
    So in the PBO only the changes to be made and there is no field in SCREEN internal table for changing the attribute to DROP down. I checked SCREEN internal table where the field VALUE_HELP and REQUEST is useful but not  suitable for my case.
    Any solution available?

  • I have made one field as drop down in web ui. there are 3 values in drop down suppose a, b , c.

    i have made one field as drop down in web ui. there are 3 values in drop down suppose a, b , c.
    now i want to make c value as default value in drop down what to do?

    Hello Bala,
    you can find number of discussions regarding this on SCN.
    Search and do code in DO_INIT_CONTEXT method of view to set the value in entity.
    lr_entity ?= me->typed_context->context_node_name->collection_wrapper->get_current( ).
          lr_entity->set_property( iv_attr_name = 'Attribute_name' iv_value = 'value' ).
    Regards Harish Kumar

  • Is it possible to customise the text within the drop down boxes. ie attributes in online shop

    Is it possible to customise the text colour and size within the drop down boxes. ie. in the drop down created for attributes in online shops
    In the drop down, the font is black and bigger than I'd like it. I want it grey. How can I customise the text inside these drop downs?

    Hi Liam,
    Please refer to this link: http://zahir.businesscatalyst.com/view-all/pom-pom-short#.UeZcwY1xTjY
    Should the class be applied to the actual tag within the 'Shop Product Large' customised layout?

  • I cannot open pages on my MacBookPro. I get a message to update it. In my software update in the apple menu drop down, it shows no updates at this time. I have iWork '09.

    I cannot open pages on my MacBookPro. I get a message to update it. In my software update in the apple menu drop down, it shows no updates at this time. I have iWork '09.

    You have 2 versions of Pages on your Mac.
    Pages 5 is in your Applications folder.
    Pages '09/'08 is in your Applications/iWork folder.
    You are alternately opening the wrong versions.
    Pages '09/'08 can not open Pages 5 files and you will get the warning that you need a newer version.
    Pages 5.01 can not open Pages 5.1 files and you will get the warning that you need a newer version.
    Pages 5 can open Pages '09 files but may damage/alter them. It can not open Pages '08 files at all.
    Once opened and saved in Pages 5 the Pages '09 files can not be opened in Pages '09.
    Once opened and saved in Pages 5.1 files can not be opened in Pages 5.
    Anything that is saved to iCloud is also converted to Pages 5 files.
    All Pages files no matter what version and incompatibility have the same extension .pages.
    Pages 5 files are now only compatible with themselves on a very restricted set of hardware, software and Operating Systems and will not transfer correctly on any other server software than iCloud.
    Apple has removed over 100 features from Pages 5 and added many bugs, including files that refuse rto open:
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick

  • How can I remove the by-default text in the drop-down box in a fill-in-the-blank answer?

    I have this text in English "Select" for each drop-down list that is big enough:
    It appears in French at my project manager's place (in France).
    Question 1: Can we remove that text totally?
    Question 2: How can I make sure it will only appear in English?
    Many thanks

    I found it myself how to do it. The error says that it is not able to find the reference object i.e  it is asking us to refer to the table. The following piece of code will solve this problem. Have to implement this in WDDOMODIFYVIEW method of the view. This thing works comrades enjoy...
      DATA : lr_cmp_usage TYPE REF TO if_wd_component_usage,
             lr_if_controller  TYPE REF TO iwci_salv_wd_table,
             lr_cmdl   TYPE REF TO cl_salv_wd_config_table,
             lr_col    TYPE REF TO cl_salv_wd_column.
      DATA : node_year  TYPE REF TO if_wd_context_node,
             elem_year  TYPE REF TO if_wd_context_element,
             stru_year  TYPE if_alv_layout=>element_importing,
             item_year  LIKE stru_year-i_current_year,
             lf_string    TYPE char(x),
      DATA: lr_column TYPE REF TO cl_salv_wd_column.
      DATA: lr_column_header TYPE REF TO cl_salv_wd_column_header.
      DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
    Get the entered value from the input field of the screen
    node_year  = wd_context->get_child_node( name = 'IMPORTING_NODE' ).
    elem_year  = node_year->get_element( ).
      elem_year->get_attribute(
       EXPORTING
        name = 'IMPORT_NODE-PARAMETER'
       IMPORTING
        value = L_IMPORT_PARAM ).
      WRITE L_IMPORT_PARAM TO lf_string.
    Get the reference of the table
      lr_cmp_usage  =  wd_this->wd_cpuse_alv( ).
      IF lr_cmp_usage->has_active_component( ) IS INITIAL.
        lr_cmp_usage->create_component( ).
      ENDIF.
      lr_if_controller  = wd_this->wd_cpifc_alv( ).
      lr_column_settings = lr_if_controller->get_model( ).
    get column by specifying column name.
      IF lr_column_settings IS BOUND.
        lr_column = lr_column_settings->get_column( 'COLUMN_NAME').
    set Header Text as null
        lr_column_header = lr_column->get_header( ).
        lr_column_header->set_text( lf_string ).
    endif.

  • Auto Incrementing in Text Field

    I imported a tab file and one column was the city, state and zip code. For some reason, the Zip code auto increments. It just so happened that the first cell was Durham, NC 27701. All subsequent cells incremented the Zip code by one, so the second cell became Durham, NC 27702. I have tried making the column a text field, and that did not work. I do not find any formula in the field, so am at a loss as to how to prevent the auto-incrementing from hapening.

    rha3675 wrote:
    Which Vallauris is your home city? Provence, or Pyrenees?
    None, Vallauris is not in Provence but in 'Provence-Alpes-Côte-d'Azur'
    At this time there is a great discussion about this name.
    Some wish to change it because they think that thge acronym PACA is not their cup of tea.
    Given that, inhabitants of "Provence" refuse to drop "Provence",
    inhabitants of "Alpes" refuse to drop "Alpes",
    inhabitants of "Cote d'Azur" refuse to drop "Cote d'Azur".
    My own advice is simply : don't use an acronym !
    I searched heavily and din't find a Vallauris in Pyrénées.
    The only town whose name approach is :
    I just found :
    Valaurie
    Code postal: 26230
    Département: Drôme
    Région: Rhône-Alpes
    Vallauris sits between Cannes and Antibes.
    Yvan KOENIG (VALLAURIS, France) mardi 2 février 2010 17:45:21

  • How to delete text entries in drop down's?

    I've been creating new PDF forms for my communications center and one of the forms I added a drop down box with all of our dispatchers names.  When someone is filling out the form after its been saved to the computer, if they accidentally enter the wrong name they cannot delete it.  This isn't so much an issue for the drop down for the person who filled out the form, but if they hit the drop down for who cleared the entry, then its a problem as like i said, you cannot delete the name.  Is there anything I can change so that if someone accidentally hits the wrong drop down it can be deleted or erased?
    Also the same question can be asked about a calendar add-on from formrouter, if you click the box where I have the date set up you can't get rid of the box without choosing a date.  I was hoping that something like hitting the escape key might remove it but that doesn't help.

    If you set up the dropdown to "Allow user to enter custom text", they will be able to manually set the field to blank, but this also lets a user enter anything they want, unless you restrict it further with a validation script.
    Regarding the formrouter calendar, since you have access to the code you can modify it to behave however you want.

Maybe you are looking for

  • Can't restore apps from iCloud

    I managed to successfully restore my new phone from iCloud... but after the restore it then attempts to download my apps from the app store, and I get a message "some of the items on your order are not available in your region". The restore then halt

  • Macbook will not connect to the internet

    I was online then dropped off.  I tried to reconnect and nothing.  I have an iPhone which is picking up my internet activity and I have a Windows work computer picking up internet activity.  Just the Macbook wont work.  It seems dead to the internet.

  • Ozzie, you mentioned you fixed this...

    Re: Podcasts appear under Music not Podcasts Posted: Jan 5, 2007 12:56 PM in response to: camoracer Click to reply to this topic Reply email Email This was very helpful!! I downloaded a podcast in iTunes AND directly from the source and looked at the

  • Initializing Selection-Screen as dynpro subscreen

    Hello! I wrote a dynpro program that includes a selection screen as subscreen. In the flow logic the subscreen is called before output like this. process before output.   call subscreen sub including sy-repid '110'.   module status_0100. The program

  • JQuery won't load

    I can't seem to get jQuery to work in an HTML page. I tried loading  it from my harddrive and calling it from the web but it doesn't seem to work.Any tips?