Identify drilldown list columns for Validations : SWEField
Submitted by dtadmin on Sun, 09/11/2011 - 21:13
We may need to perform certain operation/validation when user drilldown on a particular field in a List Applet.
Vanilla provides a method Drilldown at applet level which can be captured.
The problem here is if there are more than one drilldown list column in applet, clicking on any of them will trigger our validation logic.
Solution :
The Workaround to the problem is to use the SWEField property passed to the Applet_PreInvokeMethod property set. (In the Applet_PreInvokeMethod event in Browser script, if Method Name is “Drilldown” , we will find the Id specific to the drilldown field. This value (Id) has a specific format (s_1_2_24_0)which changes from list column to list column and record to record. The fourth part of SWEField property (i.e. 24) remains constant for a particular list column across all records.
Applet browser side sample code:
To Set profile Attribute after identifying drilldown list column.
function Applet_PreInvokeMethod (name, inputPropSet)
{ switch(name)
{
case "Drilldown":
alert(inputPropSet.GetProperty("SWEField")); // Identify SWEField Value for list Column.Remove in actual code
var SWEFieldParts = inputPropSet.GetProperty("SWEField").split("_");
if(SWEFieldParts[3] == "24") // Column SR #
{
theApplication().SetProfileAttr("SC_Edit_Drilldown", "Y");
}
}
return ("ContinueOperation");
}
Applet server script sample code:
To Get Profile Attribute which is set at browser side using above code to identify drilldown list column.
function WebApplet_PreInvokeMethod (MethodName)
{ if(MethodName == "Drilldown")
{
if(TheApplication().GetProfileAttr("SC_Edit_Drilldown ") == "Y")
{ TheApplication().SetProfileAttr("SC_Edit_Drilldown", "N");
// Logic to perform validations
}
}
return (ContinueOperation);
}
Related Articles:
Browse Categories
User login
Navigation
Popular content
- Autosys Job Handling (13,609)
- GE UNIVERSAL REMOTE INSTRUCTIONS (12,357)
- Siebel User properties (9,094)
- Test 1 - NC Drivers License Test - DMV Question Dump (8,770)
- Making a View "Read Only" based on a criteria: Aspect User Property (4,216)
- Siebel Application Response Measurement (SARM) (4,144)
- Siebel Predefined Queries (PDQ) – Reference (4,080)
- Siebel Server Component Event Logging (3,662)
- Strategies for Building Team Cohesion (3,153)
- How to create the EBC’s in Siebel (3,085)
Readers who viewed this page, also viewed:
- Siebel EAI Interview Questions (60.0%)
- Making a View "Read Only" based on a criteria: Aspect User Property (40.0%)
- Connect AND GeoAccess to Siebel (40.0%)
- JMS Configurations (40.0%)
- How Do You Pass or Receive a Property Set to or from a Custom Business Service? (20.0%)
- Basic Troubleshooting Steps for EAI JMS Transport (20.0%)
- How to Populate User Keys and Required Columns using Siebel EIM (20.0%)
- EAI Interview Questions and Answers - Test 1 (20.0%)
- Siebel Analytics Web Services (20.0%)
- Siebel Integration Objects and Data Mapping step by step guide (20.0%)
