best practices in scripting and workflows?



best practices in scripting and workflows?..

Answer / sravan

In Scripting
1)Activate the fields before query operations.
2)Write return(CancelOperation)after the loop(if),when you
create custom button.
3)Write Words for visibility not integers like "SetVieMode
(AllView).
4)If you declare any variables in Declaration level,reset
the values in "Pre-Delete Event".
5)Nullify the objects in finally block as reverse wise
means,suppose if you declare first BO,next BC then you
should nullify first BC after BO.
6)Don't use flags for setting the validations.
7)Write field validations in Pre-Set Event only

Is This Answer Correct ?    8 Yes 0 No

Post New Answer

More Siebel Interview Questions

Explain why do we use symbolic strings in siebel 77?

0 Answers  


how to create constain picklist?process suppose country field is there and state field is there,when user selected Australia in country,i have to display aus related states only states field? pls senme ans to (selvarajb.tech@gmail.com)

0 Answers   Logica CMG,


This is krishna, I created new Table,Bc,Link,Bo,view,screen TABLE : CX_ECB_S_TAT BC : ECB TAT BC Link : ECB TAT BC/Service Request Bo : ECB TAT BO View : ECB TAT View Screen : ECB TAT Screen and I created new "X_ECB_TAT_ID" Column for foregin key relation ship in "S_SRV_REQ" Table [in colum properties I specified Forieignkey Table-CX_ECB_S_TAT] and I created "TAT Id Ext" Field with "X_ECB_TAT_ID" Column in "Service Request" BC. I created Link"ECB TAT BC/Service Request". in this link I specified "Destination Field-TAT Id EXT".( Parent BC : ECB TAT BC, Child BC : Service Request) --------------------------------------------------- There is two Screens 1)ECB TAT Screen 2)Service Request Screen in First Screen : ECB TAT Screen Parent BC : ECB TAT BC Fields : Type,Area,Sub Area,TAT I given the field values to Type,Area,Sub Area and based on field values I given "TAT" field value. now we will go to Second Screen : Service Request Screen Child BC : Service Request Fields : INS Product,INS Area,INS Sub-Area,TAT I given same values(Parent bc Field Values) to INS Product,INS Area,INS Sub-Area then should be update "TAT" Field value (I mean Parent BC same "TAT" Field vaue should be update in "TAT" Field in Child BC) I wrote script for above requirement in "SetFieldValue" Event in "ECB TAT BC" function BusComp_PreSetFieldValue (FieldName, FieldValue) { if(FieldName == "TAT") { var Bo = TheApplication().GetBusObject("ECB TAT BO"); var Bc = Bo.GetBusComp("Service Request"); this.ActivateField("Type"); this.ActivateField("Area"); this.ActivateField("Sub Area"); this.ActivateField("TAT"); var sType = this.GetFieldValue("Type"); var sArea = this.GetFieldValue("Area"); var sSubArea = this.GetFieldValue("Sub Area"); var sTAT = FieldValue; //this.GetFieldValue("TAT"); var Bc1 = Bo.GetBusComp("Service Request") with(Bc1) { var exp = "[INS Product] = '" + sType + "' AND [INS Area] = '" + sArea + "' AND [INS Sub-Area] = '" + sSubArea + "'"; ActivateField("INS Product"); ActivateField("INS Area"); ActivateField("INS Sub-Area"); ClearToQuery(); SetViewMode(AllView); SetSearchExpr(exp); ExecuteQuery(ForwardOnly); var cnt = CountRecords(); ActivateField("TAT"); var fst = FirstRecord(); while(fst) { SetFieldValue("TAT",sTAT); fst = NextRecord(); } } } return(ContinueOperation); } but in "Service Request" BC "TAT" field value updating existing records,not updating creating new necords. I should update "TAT" field value to creating new records. where I have to write script in which event in which BC for this. please post detail script for this. from last 15 days i'm working on this. please help me on this. thank you so much in advance.

2 Answers   Ecobank,


Explain what is the difference between links and multi value links?

0 Answers  


What are the uses of opportunity, account contact in Siebel?

4 Answers   Siebel Systems,






How to edit the joined fields values in join?

0 Answers  


what is the difference between "picklist generic" and "picklist hierarchical" business components?

0 Answers  


How is server monitoring managed using the load balancing concept?

0 Answers  


In a flow, when a Customer has called for enquiring about some product. He does not have any Service tag, Order # or SR#. In this case what kind of Activity will be created and how will the agent proceed with the Activity.

0 Answers   Cap Gemini,


Explain what is nameserver?

0 Answers  


Why do you need to create employees at the database in Siebel?

2 Answers  


What is the function of swse on the web server? What is it?

0 Answers  


Categories