Skip to Content
author's profile photo
Former Member

Using variable values in Java-script

We are using the Web Application Designer and facing an issue about retrieving values of variables from the server - in the javascript code.

Is it possible - in general? Are there commands for this purpose?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Aug 04, 2004 at 05:44 AM

    Hi,

    you should use the texteelements web item in your template, set property only_values and display only your variables. Place this inside a <div> - or <span>-Tag within an id.

    Then you can use getElementById function to retrieve the values and do whatever you want in your javascript.

    http://help.sap.com/saphelp_nw04/helpdata/en/9f/4e9d39d44cd45ee10000000a11402f/frameset.htm

    Heike

    Add comment
    10|10000 characters needed characters exceeded