Set Page Variable from Input Box
Options
<p>I have a text report Item where I am having a input type as Text. </p>
<p>Now user is entering value in that text box. Can I get this user input value in some page or global variable and use in a different report item of type label after performing some concatenation in entered value??</p>
<p> </p>
<p>I tried the following</p>
<div><input type="text" id="textId" value="Entered value"/></div>
<div> </div>
<div>script written in other report item (HTML having a simple label)</div>
<div><script></div>
<div><VALUE-OF></div>
<div>var ab = reportContext.getDesignHandle().findElement("textId");</div>
<div>vars["pgVarTest"] = ab;</div>
<div>//reportContext.getDesignHandle().findElement("textId").text = "test"</div>
<div>//_jsContext.setPageVariable("pgVarTest",ab);</div>
<div></VALUE-OF></div>
<div>}</div>
<div></script></div>
<p> </p>
<p> </p>
<p>I need to pass this value in pgVarTest page variable.</p>
<p> </p>
<p> </p>
<p>Regards</p>
<p>Shashank</p>
<p>Now user is entering value in that text box. Can I get this user input value in some page or global variable and use in a different report item of type label after performing some concatenation in entered value??</p>
<p> </p>
<p>I tried the following</p>
<div><input type="text" id="textId" value="Entered value"/></div>
<div> </div>
<div>script written in other report item (HTML having a simple label)</div>
<div><script></div>
<div><VALUE-OF></div>
<div>var ab = reportContext.getDesignHandle().findElement("textId");</div>
<div>vars["pgVarTest"] = ab;</div>
<div>//reportContext.getDesignHandle().findElement("textId").text = "test"</div>
<div>//_jsContext.setPageVariable("pgVarTest",ab);</div>
<div></VALUE-OF></div>
<div>}</div>
<div></script></div>
<p> </p>
<p> </p>
<p>I need to pass this value in pgVarTest page variable.</p>
<p> </p>
<p> </p>
<p>Regards</p>
<p>Shashank</p>
0
Categories
- All Categories
- 109 Developer Announcements
- 49 Articles
- 100 General Questions
- 122 IM Services
- 40 OpenText Hackathon
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 897 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 122 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management