{{tag>Programmers_Reference Methods Report_Scriptlets IReportEnvironment_Interface}} ======setElementValue (String, Object)====== **Interface:** [[3500:0700:0720|IReportEnvironment]] public** void setElementValue (String elementName, Object value) throws Exception 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.