Siebel – Fetch Active view properties – III
by Nitin JainI will discuss a practical example, and the corresponding Inputs as a usage example for the “FINS Data Transfer Utilities”. If you have not already done so, I would suggest going through the previous posts for a better understanding:
Siebel – Fetch Active view properties
Siebel – Fetch Active view properties – II
I will share a practical usage example for the above vanilla BS here.
Launch your Siebel Client. Navigate to the screen,
Administration – Business Services -> Scripts
Press ‘New’. I chose the name, “04 Nitin Test” for my Test BS.
Write a small piece of code in the method, “Service_PreInvokeMethod”, and the language as eScript.
Sample code is as follows:
function Service_PreInvokeMethod (MethodName, Inputs, Outputs)
{
var Input_ps = TheApplication().NewPropertySet();
var Output_ps = TheApplication().NewPropertySet();
var bs_FINS = TheApplication().GetService(“FINS Data Transfer Utilities”);
bs_FINS.InvokeMethod(“GetActiveViewProp”, Input_ps, Output_ps);
TheApplication().RaiseErrorText(Output_ps.GetProperty(“<output arg name>”) );
return (CancelOperation);
}
You can replace the with the desired parameter one by one, to see the corresponding output. As a sample, I got the following outputs in my Siebel setup:
| Output Argument | Value |
|---|---|
| BusinessObject | Business Service |
| IsAdminMode | N |
| Screen | |
| ThreadApplet | Business Service Test List Applet |
| View | Business Service Test View |
| ViewModeCode | 4 |
There are two strange observations in the table above.
1) The Output Argument, “Screen” returns NULL. Now, I am obviously within a screen, which has a name. Why is it NULL?
2) It has returned the ViewMode “4″.
A simple Lookup in Siebel Tools F1 help lists the following ViewModes of a view:
SalesRepView (0)
ManagerView (1)
PersonalView (2)
AllView (3)
OrganizationView (5)
GroupView (7)
CatalogView (8)
SubOrganizationView (9)
Notice carefully, 4 is not in the list!
Related posts:
- Siebel – Fetch Active view properties Hi, Working on a typical requirement recently, I came across...
- Siebel – Fetch Active view properties – II We discussed about fetching the values from the active view...
- Siebel Assets List view – Performance issue / Cannot display records Assets Screen Load is a major problem in Siebel, and...
- Siebel – InvokeServiceMethod() on Calculated Fields InvokeServiceMethod() is used to invoke Business Services and take values...
- Siebel – getMilliseconds() usage Siebel by default displays all dates in the system accurate...
- Siebel – SIA BC Utility Service – Loop multiple records This is a vanilla business service which provides an extensive...
- Siebel – Automatic User Logout Logging out a user automatically, when the user does not...
Hi Nitin,
As i was new to site i posted my question to this unrelated content.
Thanks,
S.Sriram
That is fine, Sriram.
In any case, we have provided an easy option, “TALK TO US” section on the top right side of GeeksBlogging@dotCOM to help everybody.
The direct link is..
http://geeksbloggingat.com/contactus.html
Cheers!