I was working on my desk one day and newbie to siebel approached me to ask a question(also a avid reader on asked me the same question on mail). He asked me about a simple requirement or rather I should say the requirement that appeared simple to me.
The requirement was :
A button on an Applet should be enabled if a particular user logs into the application otherwise it should remain disabled.The Solution is a simple script that we can write on Applet_PreCanInvoke event to enable or disable a button conditionally.
I am providing the pseudo code for that script below
function WebApplet_PreCanInvokeMethod (MethodName, &CanInvoke)
{
if (MethodName == "UrButtonMethod")
{
if(UserLogin == "AuthorisedUser")
{
CanInvoke="TRUE";
return (CancelOperation);
}
else
{
CanInvoke="FALSE";
return (CancelOperation);
}
}
}
There is just one catch in the above mentioned code. How will you find that user is the authorised user or not. There are several ways of doing it some are easy and some are difficult.
I will tell you the easiest way to do that. You just need to write one line of code to accomplish that which is as following.
if(TheApplication().GetProfileAttr("Me.Login") == "AuthorisedUserLogin")
There is a whole bunch of such kind of profile attributes that are available to us all the time in the whole application, we can use them anywhere we want. But discussion on Profile Attributes is subject of another post. So, come back for more.
If this post was helpful to you, Please post your comments or suggestions to make this site better.
Wednesday, May 7, 2008
Subscribe to:
Post Comments (Atom)
Archive
-
▼
2008
(36)
-
▼
May
(24)
- Siebel List of Values - A Strategic Move - Continued.
- Siebel List of Values - A Strategic Move!
- Siebel CRM How To - Create a new LOV?
- Siebel CRM How To - Invoke Workflow through BC Use...
- Siebel Tools How To - Have Mutiple Local database ...
- Siebel How To - Create Inbound and Outbound Webser...
- Siebel How To - enable or disable a button conditi...
- Navigating Siebel - Via Keyboard!
- Siebel CRM How To - Automate login into Siebel Ded...
- NextRecord DeleteRecord - Use with caution!!
- Siebel CRM How To – Restrict a Field to only Accep...
- Siebel eScript – How to track performance with Tim...
- Siebel eScript – An Overview
- Siebel Logs - How Useful are they ?
- Siebel Business Component Outer Join - How Important?
- Siebel Profile Attributes - an Overview.
- Siebel Search Specification (Search Spec) – What a...
- Siebel Tools - Check In - Check Out an Introduction.
- Siebel CRM - Configuration File (cfg) Disected and...
- Siebel CRM 7.8 - Signals Demystified.
- Siebel 7.8 Signals - A Case Study!
- Best Practices For Siebel
- Siebel CRM - Back to Basics (Siebel Architechture).
- Siebel CRM How To - Automate login into Siebel Ded...
-
▼
May
(24)
Translation by Google
Subscription Free
Categories
- ANSI SQL
- Back to Basics
- Best Practices
- Case Study
- cfg File
- Check In -Check Out
- Configuration
- Copy
- Debug
- Ecology
- EIM
- eScript
- Files
- Firewall
- Harvest
- How - To
- I Wish I Knew
- List of Values
- Logging
- Mapping
- Oracle
- PL/SQL
- Remote Server
- Siebel
- Siebel CRM
- Siebel Logs
- Siebel Tools
- Signals
- SQL Plus
- SQLNavigator
- Tunning
- Web Services
- Workflows
No comments:
Post a Comment