Last time I said that I will be presenting a Solution to make Required Fields dynamic and SRF independent. So I am back with What I promised.
Requirement:
Siebel Service Request module was to be implemented because of a new implementation the business requirements were being changed all the time. One Strange requirement was to make the Required Fields of a business component dynamic. So that they can be changed without a release. Now, we all know one way to make a field required is to set the Required Property of the field to true. But that would mean that if I were to change that a new SRF deployment will be required.
Solution:
LOV's again were the life saver for us. We created an LOV called SRV_REQ_FIELD and in the Display value we provided the names of the fields that we wanted as Required Fields. In the Business Component PreWrite Record we queried for that particular LOV and traversed through the records that were active. If the Field provided in the LOV did not contained a value then an error was raise stating that the value for that particular required field was not supplied. I am giving the Pseudo Code below to what that script might look like
BOLOV = TheApplication().GetBusObject("List Of Values");
BCLOV = BOLOV.GetBusComp("List Of Values");
with (BCLOV)
{
Query for LOV Type as 'SR_REQ_FIELD' and Active Flag = 'Y'
}
IsRecord = BCLOV.FirstRecord();
while( Last record is not reached)
{
this.ActivateField(BCLOV.GetFieldValue("Name"));
if ( this.GetFieldValue(BCLOV.GetFieldValue("Name")) == "" )
Raise Errro Text ("Value not given")
BCLOV.NextRecord();
}
This solution is not recommended if the number of fields that are required is fairly large. But still can be really handy in many situations.
Hope you liked this post! If yes, Do post your comments.
For other posts Related to LOV please go through the category of List of Values
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