Tuesday, November 10, 2009

How Can You Add Hidden Fields to a List Applet for Browser Script Access?

Background
 
A common business requirement is to have access to business component fields using browser script, but ensuring that these fields are not visible by the end users.  In Siebel 7, only fields existing on the UI are available to the GetFieldValue and SetFieldValue business component methods in browser script, regardless of the Force Active property value set for those fields.

Moreover, the ActivateField() method is not available for browser script. As a general rule, ActivateField only works if it is used as part of a buscomp search, before ExecuteQuery and after ClearToQuery.
 
This TIP details one solution, which is to add hidden controls to the applet. Another solution is to create a custom business service which runs on the server to obtain the necessary field values.
 
Option 1: Add a Hidden Control to a Form Applet
 
To make a field available through browser script, you can add a hidden control to a form applet.
 
The control must have the HTML Type property set to Hidden and must point to the desired field using the Field property.
 
NOTE: Setting the Visible property on the control to FALSE will not make the field available through browser script. When the Visible property is set to FALSE, the field value will not load to the browser, hence the value is not available for the browser script.  


http://www.siebeldigest.com/

0 comments: