after a long time
Sunday, September 25, 2011
Thursday, May 26, 2011
DefaultFocus User Property In Siebel
DefaultFocus is a user property helps to put focus on a particular field.
Ex. DefaultFocus_Query = Account will put focus on Account if query button is clicked on the applet
which will result in
Similarly we can use below mentioned user properties for applets:-
DefaultFocus_Edit = Contact will put the focus on contact field when the applet is in Base, Edit or Edit List mode.
DefaultFocus_New will put set a field or control within an applet that receives focus when applet is in New Mode.
This will give default focus to New button on an applet being used to add a new record.
If DefaultFocus_New is not added to an applet then first field in the applet gets default focus when applet is in new mode.
Ex. DefaultFocus_Query = Account will put focus on Account if query button is clicked on the applet
which will result in
Similarly we can use below mentioned user properties for applets:-
DefaultFocus_Edit = Contact will put the focus on contact field when the applet is in Base, Edit or Edit List mode.
DefaultFocus_New will put set a field or control within an applet that receives focus when applet is in New Mode.
This will give default focus to New button on an applet being used to add a new record.
If DefaultFocus_New is not added to an applet then first field in the applet gets default focus when applet is in new mode.
Thursday, February 17, 2011
Enable a button using eScript
This post is also a contribution by Vaibhav. Thanks to him for sharing his knowledge with all of us.
I will tell siebel newbees how to activate a button on an applet using escript. Suppose we have created a button on an applet (i assume reader know how to set a button on an applet) and want to enable this button as soon as applet loaded in the application.
Now first question in mind, where should we write script (which event)?
Ans is as soon as applet loaded so better to write PreCanInvoke event of the applet.
here is the server script of the applet.
function WebApplet_PreCanInvokeMethod (MethodName, &CanInvoke)
{
if (MethodName == "TestMethod")
{
CanInvoke = "TRUE";
return(CancelOperation);
}
return(ContinueOperation);
}
I will tell siebel newbees how to activate a button on an applet using escript. Suppose we have created a button on an applet (i assume reader know how to set a button on an applet) and want to enable this button as soon as applet loaded in the application.
Now first question in mind, where should we write script (which event)?
Ans is as soon as applet loaded so better to write PreCanInvoke event of the applet.
here is the server script of the applet.
function WebApplet_PreCanInvokeMethod (MethodName, &CanInvoke)
{
if (MethodName == "TestMethod")
{
CanInvoke = "TRUE";
return(CancelOperation);
}
return(ContinueOperation);
}
Siebel Browser Script for Newbee
This post is a contribution by Vaibhav Raj Saini who is having 3+ yrs of experience in siebel, sales logix and Java. I am sure his post will be a looping out solution for those who could not find starting point.
Once my (Vaibhav's) colleague who want to enter in siebel asked me how to learn siebel scripting then i told him let see a magic and i wrote a java script in my siebel application address bar and as soon as i hit enter it showed a alert message. you can go through these script and you know what will be the alert message.
javascript:alert(theApplication().GetProfileAttr("ActiveViewName"));
javascript:alert(theApplication().GetProfileAttr("Application Name"));
Then i told him siebel script is just like a java script the only thing you must know is the key word used in siebel for that you have to open siebel bookshelf and have a look at example script.
later on in our discussion i showed him how to write a Hello world script in siebel.
theApplication().alert( "Hello Word");
then how to show a field value in broser script
var msg = theApplication().ActiveBusObject().GetBusComp("Contact").GetFieldValue("Job Title");
theApplication().SWEalert( "" + msg);
and this way he got a start in siebel scripting.
Once my (Vaibhav's) colleague who want to enter in siebel asked me how to learn siebel scripting then i told him let see a magic and i wrote a java script in my siebel application address bar and as soon as i hit enter it showed a alert message. you can go through these script and you know what will be the alert message.
javascript:alert(theApplication().GetProfileAttr("ActiveViewName"));
javascript:alert(theApplication().GetProfileAttr("Application Name"));
Then i told him siebel script is just like a java script the only thing you must know is the key word used in siebel for that you have to open siebel bookshelf and have a look at example script.
later on in our discussion i showed him how to write a Hello world script in siebel.
theApplication().alert( "Hello Word");
then how to show a field value in broser script
var msg = theApplication().ActiveBusObject().GetBusComp("Contact").GetFieldValue("Job Title");
theApplication().SWEalert( "" + msg);
and this way he got a start in siebel scripting.
Thursday, February 10, 2011
'CanInvokeMethod' as Applet User Property
One day i was writing a custom method so i created a control on applet and Enabling button explicitly by using applet user property as below.
I compiled and tested many times but no luck. then i put space between colon and Method Name as below
CanInvokeMethod: TestMethod
then it start working.
I don't want any other waste time for such silly things and this leads to creation of one more blog named as "SiebelUniverse".
if anyone of you found any strange or worth noting things on this user property please share with siebeluniverse through comment.
Subscribe to:
Comments (Atom)


