variable

X-Application Version: 3.1.3
Tamino Version : 3.1.1
Platform : Win2k
WebContainer : Tomcat 3.3
JDK Version : 1.3.1

hi
how we can put the value of variable in the field of database? for exapmle put i into requestid of schema request

thanks alot

Hello,

it depends on your scenario:


  • You want to set the element value of a document when the page is invoked. In this case, you have to write a plugin since the direct elementactions you could use does not refer to the variable context. Within your JSP you would invoke:

    <xapp:directelementaction type="setValue" select="xPath to the node whose value has to be set" arg="${yourVariablesName$}" />
    </pre><BR><BR><LI> You want to set the an hidden or visible text field. Its value is transfered to the document when the user clicks a button / link and the request for the <B>next</B> JSP is processed. In this case you can use an edit tag enclosing an inut tag. Set the value of the input by using the value of your variable.<BR><BR><pre class="ip-ubbcode-code-pre">
    <xapp:edit select="xPath to the node whose value has to be set">
      <input type="text" value="<xapp:getvar name='${yourVariablesName$}' />" />
    </xapp:edit>





In both of these cases the value is transferred to the document on the server. A commit to the document is required to transfer it to the database.

Please, let me know if use case 1 is relevant for you. Then, I can support you with a Plugin.

Bye,
Christian.