Multiple Drill-downs

Many of us have configured drilldowns in our project and as a deliverable there are scenarios also when we have to capture Drilldown method. This can be easily done by trapping Drilldown method at applet level using "Drilldown" method. However complexity comes when we have multiple drilldowns defined on the applet and we need to capture any particular drill-down field for processing. But Siebel always spring something as life saver. We can capture the drilldown for any particular field using "SWEField" property which comes as input property. Each mapped field have a unique identifier which can be used in drilldown method to check desired field.

First lets try to fetch the SWEField id for any desired drilldown field. I am still not able to figure out how siebel generates this tag, any help on this will be really great. This sample code on browser side helps in fetching the SWEField tag for any field in applet on Drilldown method.

function Applet_PreInvokeMethod (name, inputPropSet)
{
if(name == "Drilldown")
{
alert(inputPropSet.GetProperty("SWEField"));
return ("ContinueOperation");
}
return ("ContinueOperation");
}

There are two drilldowns configured in the below applet Reference and Assigned To.On click of Reference of first record it displays "s_4_2_26_0" .


On click of Reference of second record in list itAdd Image displays "s_4_2_26_1".




The last number is always incremented by one as we traverse through record set.Similarly on click of Assigned To on first record it displays "s_4_2_67_0" .


on click of second record it displays "s_4_2_67_1".



Lets consider now we want to trap drilldown only on reference field. This can be achieved by using following code:

function Applet_PreInvokeMethod (name, inputPropSet)
{
if(name == "Drilldown" )
{
if(inputPropSet.GetProperty("SWEField").indexOf("s_4_2_26") >= 0)
alert("Siebelish");
return ("CancelOperation");
}
return ("ContinueOperation");
}

But how siebel generates these SWE tags for fields is still a mystery for me. Happy Hunting!!

תגובות

פוסטים פופולריים מהבלוג הזה

FINS Data Transfer Utilities

SBL-BPR-00191: The rowId of the active row of the primary buscomp '%1', '%2', does not match the Primary Id

Profile Attributes and Open UI