SIEBEL: How to make Control Hidden/Rea​dOnly or Visible/Ed​itable on different applet exists in same view using browser script


Suppose there are 2 applets (Applet A, Applet B) based on different BC and these 2 BC’s doesn’t have any relationship. But we need to make some field hidden/visible on applet B based on some criteria on applet A then write below browser script on applet A on ChangeRecord eventApplet A and Applet B exists in same View.

We cannot use RefreshRecord,Refresh BC, GotoView here as it will loose the context of Applet A or Applet B. So we need to use below browser script on applet A.

function Applet_ChangeRecord ()

{

var sTestType = “”;

sTestType = this.BusComp().GetFieldValue(“Test Type”);

var oAppl = theApplication().FindApplet(“Test Applet”);

var oApp2 = theApplication().FindApplet(“Test1 Applet”);

var a = oAppl.FindControl(“Account”); //Control Name

var b = oApp1.FindControl(“Last Name – Auto”); //Control Name

if(sTestType != “”)

{

a.style.visibility=”hidden”; //Make Control Hidden

b.SetProperty(“ReadOnly”, “TRUE”); //Make Control Read Only

}//if

else

{

a.style.visibility=”visible”; //Make Control Visible

b.SetProperty(“ReadOnly”, “FALSE”); //Make Control Editable

}//else

}//main

For detailed information use below oracle link

http://docs.oracle.com/cd/E14004_01/books/OIRef/Interfaces_Reference17.html

 

Advertisements


Categories: Siebel

Tags: , , , , , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: