Siebel – Fetch Active view properties – II
by Nitin JainWe discussed about fetching the values from the active view in my post yesterday.
However, I also felt that it was a very crude way of doing it. We can only get the information we need, by writing a small script for it. Moreover, the information was very limited.
I also came across an alternative method to get the details from the Active View. Try searching for the Business Service, “FINS Data Transfer Utilities” in your Siebel Tools. It has a method, “GetActiveViewProp”, which can help us achieve our objectives. Moreover, it supports our point of view of Scriptless Solutions!
Usage:
The BS, “FINS Data Transfer Utilities” does not take in any Input Arguments for the method, “GetActiveViewProp”. We can, thus, directly call this BS in Scripts or Workflows as the requirement may be.
There are a number of outputs, however, that return the corresponding data for the logged in user.
BusinessObject
This would return the Business Object of the view active at the time of invoking this Business Service.
IsAdminMode
This would determine if the current view works in Admin Mode. Admin Mode gives you extra priviledges on a particular view.
The Admin Mode is defined by the “Admin Mode Flag” on the property corresponding to the View in the Siebel Tools Object Explorer.
Screen
The name of the screen that the current view is a part of.
ThreadApplet
Name of the Thread Applet in the current focus.
View
The name of the active view.
ViewModeCode
This is returned in the form of a Code (a number). This defines the View Mode of the current view in focus.
I feel this post is getting too long. I’ll post a follow-up post with a practical example.
Hi,
Thanks for sharing this information. I used this BS and its method “GetActiveViewProp”. I used it in a calculated field to get the active view name in a Parent BC. It was returning the correct value only when the parent BC was instantiated & executed for the first time to display the records in a View. But the calcuated field was still showing the same value even after navigating to another detail view where the same Parent BC is associated to the Parent applet. I also made the field’s Immediated Post Change property to True, but it didn’t work. After refreshing the Parent applet, the calculated field was showing the correct value.
Hi Avinash,
Thanks for your positive comments.
I agree that Refreshing could be a problem. What I can suggest is to Refresh the view once, before using the BS above.
There are ample articles on this blog on Refreshing the Views and Applets. Do go through them. They may help in your case.
I can suggest the following link to help you out:
Siebel – Refresh Applet retaining existing context
Great post.