Friday, October 14, 2011

How to Refreshing a record in Siebel applet - Possible ways !!

How to Refreshing a record in Siebel applet - Possible ways !!
Sometimes it happens you clicks on a fasten on an applet which is supposed to do whatsoever adjustment on the stream accomplishment but you get an fault locution : The elect record has been qualified by other user. This happens when the like preserve has been updated into the database (by another somebody or many otherwise cognition equal Progress, EAI etc) and system is disagreeable to update the old context of disk on the UI. So the finer way to get the updated make of the tape by refreshing it and then do any modifications. But the lower blood is you should not light the discourse of the stream create, so if you are thought of using ClearToQuery() and ExecuteQuery(), it module not figure the feasible distance by which you can recollect a listing on the UI, without loosing the discourse of the current accomplishment, depending upon the responsibility you can see the judgement which one to use. 1. RefreshRecord : Byplay Portion Method This is a method open on Sector Constituent which are calculable from CSSBCBase conference. Here is how you can use it, if composition write in PreInvokeMethod of applet : if (MethodName == \"MyMethod\") { this.BusComp().InvokeMethod(\"RefreshRecord\"); ............................................... } This method will just refresh the highlighed record on the UI. 2. RefreshBusComp : Business Component Method This is similar to RefreshRecord method available on Business Component which are derived from CSSBCBase class. The only difference is that it will refresh all the records in the current query context : if (MethodName == \"MyMethod\") { this.BusComp().InvokeMethod(\"RefreshBusComp\"); ............................................... } 3. FINS Teller UI Navigation : Business Service Unlike RefreshRecord and RefreshBusComp, this business service can be used for refreshing any applet/buscomp, no matter which class it has been derived from. The method need to use is \"RefreshCurrentApplet\". if(MethodName == \"MyMethod\") { TheApplication().GetService(\"FINS Teller UI Navigation\").InvokeMethod(\"RefreshCurrentApplet\", TheApplication().NewPropertySet(), TheApplication().NewPropertySet()); }