We are now ready to enable our button declaratively. Do so by completing the following steps:
1. Select the ‘Applet’ object and query for the ‘Contact List Applet’ applet.
2. Select the ‘Applet User Prop’ child object of applet in Object Explorer.
3. Create a new record with the following values:
Name: CanInvokeMethod: India
Value: TRUE
4. Select the 'Contact List Applet'.
5. Right-click the applet and select ‘Edit Browser Scripts’ and select eScript as the scripting language to be used.
7. Under ‘BrowserApplet’, select the ‘Applet_PreInvokeMethod’ event. This is the event where our code will take place.
Sample Code:
function AppletPreInvokeMethod (Name,inputPropSet)
{
If (name=="India")
{
theApplication().SWEAlert("Welcome India");
return(CancelOperation);
}
return(ContinueOperation);
}
8. Save and exit the script.
Wednesday, June 25, 2008
Posted by Spidermen,Ice age,Age Of Empire latest at 11:52 AM
Subscribe to:
Post Comments (Atom)
5 comments:
Hi iam vishnu vardhan Iam keen Interested in your blog. But the query is that how practice escript for the starters .Iam aware of java script please if you wish send an eamil to me
vishnu.ch@hotmail.com
thank you for your services for siebel survivors
I tried as you said but The probem is control is not appearing the applet. NOw where I map the"welcome " control in to fields or controls in the edit weblayout.can you show it graphically. or explain clearly
its not working
Hi,
I tried the script as suggested by you. Its not working for me.
When i write the code to invoke the button in Server Script, the button is disabled in the client.
Server Script code:
function WebApplet_PreCanInvokeMethod (MethodName, &CanInvoke)
{
if(MethodName == "India");
{
CanInvoke = "TRUE";
}
return (ContinueOperation);
}
But when i write the same in Applet User property ,the button is enabled.
In browser script i just wrote the code what you suggested. I get the following error
"The applet method "India" is not supported on Business component Contact used by business object Contact (SBL-DAT-00322)".
Kindly help me please.
You can even mail me to mrudula.t@in.ibm.com
Post a Comment