Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
pr_methods:setelementvalue [2023/04/04 05:55] – removed - external edit (Unknown date) 127.0.0.1pr_methods:setelementvalue [2025/06/12 04:00] (current) – Change to AwareIM aware_support3
Line 1: Line 1:
 +{{tag>Index Programmers_Reference Methods Report_Scriptlets IReportEnvironment_Interface SetElementValue}}
 +====setElementValue (String, Object)====
 +<code java>public** void setElementValue (String elementName, Object value) 
 +throws Exception</code>
  
 +This method sets the current value of the report element with the specified name. The element must be an element with a scriptlet attached (text or image). Each element in the report may be given a name in its Properties dialog. If the element’s name is not specified //**AwareIM**// generates its own name. If a scriptlet needs to access certain elements in the report it is a good idea to give such elements some meaningful names.
 +
 +===Parameters===
 +|''elementName''|the name of the element the value of which is set|
 +|''value''|the value to set – must be either a ''String'' if the element is a text element or ''java.awt.Image'' if the element is an image.|
 +
 +===Throws===
 +An exception if the element with the specified name was not found or there was some other error.