I actually intend to start this blog with siebel tutorials for newbies, but i couldnt hold me back for posting this siebel browser script hack!
While i was debugging some code for eConfigurator, i found that we can access profile attributes from javascript injection. Javascript injection is javascript written in the address bar. To get the value of profile attribute just paste this script in address bar and hit enter:
javascript:alert(theApplication().GetProfileAttr("ApplicationName"));
To set profile attribute we can use following snippet:
Neelmani allready posted this on siebelunleashed.com
Now on digging it further, i found that applet read only fields are also accessible in this script. thus we can set the value of an field that is made readonly from applet.
To set an applet level read only field paste the following script in address bar:
And to set / get any profile attribute use this snippet:
Sample outcomes will be
Actually the script just query the active bc and set field value using the same browser script syntax documented in siebel. then fires write record to save that value.....
I think this hack can be very helpful while developing the siebel application. As sometime we need to change just the staus of a record to make it reusable. This code can come handy at that time...
To install this code in browser follw the link below...
http://special.account.googlepages.com/siebel&javascriptinjection
1 comments:
so you started a blog too :)
nice... let's c what you have in your blog
Post a Comment