Most people would resort to scripting to perform this task, but that path leads to the dark side.
Scenario
In the application, we have the Action BC that is used by normal users to create activites for their day to day work.
There is a new requirement from business, to build a special activites view for a new user group. These people are front line staff, and spend most of their time with the customer so the requirement is to predefault everything for this user base and all they have to fill in are minimal pieces of information.
There are a few ways to meet this requirement.
- If users are in a seperate division, then we can use a predefault expression based on their division (dosnt work if users are in one division)
- We can get the active view name in a calculated field and predefault based on that (if there are multiple views, then it becomes a very ugly expression)
- We can create a brand new BC for this particular group (this would seperate any logic already in Action, and has to be reimplemented in this new BC, and it is extra overhead in the repository)
- We can use applet user properties to predefault the field values.
This can be configured as follows:
Property: PostInvokeMethod
Value: NewRecord:SetFieldValue:Contact Id:LoginId()
The trigger is NewRecord, which will fire SetFieldValue on Contact Id field setting the value to LoginId(), the logic is pretty straightforward.
Hi Jason,
ReplyDeleteThis user property is not working for me can you please tell me for which version of siebel this user property is available I am using siebel 7.8
Thanks in advance
Hi Monu, do a flat search in the respository and look at the class of the applets that use this property and set your applet to use the same. It works in 7.8 - Jason
ReplyDeleteHi Jason,
ReplyDeleteI did the flat search on applet user property and was not able to find a record for the same.
i am on siebel 7.8 module.
Thanks in advance.
Try applet class CSSINSFrameListUP
ReplyDeleteHi Jason,
ReplyDeleteThere is no such class in repository, Can you please explain in detail or this solution do have some class constrains.
Thanks,
Goutem
This will only work on CSSINSFrameListUP, its DLL is SSCAINFR, and super class is CSSFrameListBase.
ReplyDeleteHi why we can't try like this. inBC level calculate field.
ReplyDeleteif (('ActiveViewName')= 'ViewName1',Y,N)
set the above calculate field as predefault value in the expression.there is no limitation and nothing needed script.Please let me know any issues.
Hi Sharma, this is discussed in the article above. Jason
ReplyDelete