Siebel Unleashed forum is finally serving it purpose for what it was opened. There are lot of people asking questions and more importantly lot of people answering questions.
So, if you are not already its member I suggest you to become one immediately by clicking here so that you don’t miss much. Here is another interesting requirement that I would like to share with you all which was asked by THusvaeg and he was considerate enough to share the solution that worked for him.
Requirement:
I have a user request that you can select mulitple records in the list applet and then change a value for all records at the same time. The field they want to change uses a pick applet in the form applet, and it is through this pick applet they wish to change all the records to the same value.
Solution
Here is the script that THusvaeg provided that is working for him
function XX_PreSetFieldValue(FieldName, FieldValue)
{
var ActiveViewName = TheApplication().ActiveViewName();// selecting the views under the BC for which the multiple selection should be available, could repeat this for any view / BC
if(ActiveViewName == “XX Vessel List View” || ActiveViewName == “XX Vessel List View – Admin”)
{
// this if must be reiterated for every field you want to work with multiple selection (why we don’t have it for the entire application)
if(FieldName == “XX Fleet Manager Last Name”)
{
var oThisBO = this.BusObject();
var oXXAssetBC = oThisBO.GetBusComp(“Asset Mgmt – Asset”);
var sConId = oXXAssetBC.GetFieldValue(“XX Fleet Manager Id”);var bFirstSelected = oXXAssetBC.FirstSelected();
while(bFirstSelected)
{
oXXAssetBC.SetFieldValue(“XX Fleet Manager Id”, sConId);
bFirstSelected = oXXAssetBC.NextSelected();
}
}if(FieldName == “XX Super Intendent Last Name”)
{
var oThisBO = this.BusObject();
var oXXAssetBC = oThisBO.GetBusComp(“Asset Mgmt – Asset”);
var sConId = oXXAssetBC.GetFieldValue(“XX Super Intendent Id”);var bFirstSelected = oXXAssetBC.FirstSelected();
while(bFirstSelected)
{
oXXAssetBC.SetFieldValue(“XX Super Intendent Id”, sConId);
bFirstSelected = oXXAssetBC.NextSelected();
}
}
}
}
Executor another user has taken it step further by improving it and incorporating certain best practices that we use while scripting. You can follow the thread here.


(4 votes, average: 4.50 out of 5)