Wednesday, January 27, 2016

Siebel: Dynamically show/hide a control on applet

The best way to do with configuration is using toggle applet.
The other way is to write browser script to achieve the logic.






Below code can be used to hide a form applet control ('AAA')

var vControl = this.FindControl( "AAA" );
vControl.SetProperty( "Visible", "FALSE" );
vControl.SetLabelProperty( "Visible", "hidden" );


Below code can be used to show a form applet control ('AAA')

var vControl = this.FindControl( "AAA" );
vControl.SetProperty( "Visible", "TRUE" ); 
this.FindActiveXControl( "AAA" ).style.visibility = "visible"; 
vControl.SetLabelProperty( "Visible", "visible" );

add a control user property for the control - 'AAA',  with the name 'useLabelID' (no quotes) and the value: 'TRUE' (no quotes).


123Siebel

Search 123Siebel