crmTech/ October 19, 2014/ Siebel/ 0 comments

Scenario: There are 2 applets, Applet A and Applet B. Both have different BC. These 2 BC’s doesn’t have any relationship. We need to make some field hidden/visible on applet B based on some criteria on applet A.

To achieve this scenario, write below browser script on applet A on ChangeRecord event of Applet A and Applet B. Applet A and Applet B exists in same view.

Here, cannot use RefreshRecord,Refresh BC, GotoView as it will loose the context of Applet A or Applet B. To avoid the context issue, you can 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

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

Advertisements
Share this Post

About crmTech

Sharad is working from more than 11 years in IT industry. He has giving his technical services in CRM for telecom, automobile, retail, finance industry in Sales, Service and Marketing. He has primary skill in Siebel and Salesforce Marketing Cloud. Apart from this he has worked in Google Cloud, Wordpress blogging, SEO optimization, Short film making, mobile apps creation,logo design creation for his own interest.

Leave a Reply

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