Add the following user properties:
Name: FINS PGV Confidential Flag, Value: Y
Name: FINS PGV UseBaseTable, Value: Y / N
Use Y if you are using base table mode.
Use N if you are using intersection table mode.
Name: FINS PGV ShowMyPGRecordsOnly, Value: Y / N
Write PGV Scripts. In some cases, you might want to use another class instead of the PGV-specific classes named in step 4. In that situation, attach the script given below to your applet. To associate the script:
- Right-click MyApplet and choose Edit ServerScripts.
- Select eScript as the language.
- Copy and paste the following script into the WebAppletLoad event:
var opropset;
opropset = TheApplication().NewPropertySet();
var searchspec;
var Inputs;
Inputs = TheApplication().NewPropertySet();
Inputs.SetProperty("FINS PGV Confidential Flag", "Y");
Inputs.SetProperty("FINS PGV Suppress Flag", "N");
//In case of Suppress Mode, reverse the Y/N values in the above two statements.
var servicename = TheApplication().GetService("FINS Product Group Visibility Service");
Inputs.SetProperty("FINS PGV Sales Team Visibility", "Position : Position Id");
servicename.InvokeMethod("getPGVisibilitySearchSpec", Inputs, opropset);
var searchspec = opropset.GetValue();
var servicename;
var searchname = "FINS PGV Search";
this.BusComp().SetNamedSearch(searchname,searchspec);
var sConfidentialFlag = Inputs.GetProperty("FINS PGV Confidential Flag");
var sSuppressFlag = Inputs.GetProperty("FINS PGV Suppress Flag");
//If we are in "Suppress" mode
if ( sConfidentialFlag != "Y" && sSuppressFlag == "Y" )
{
var sPublicFlagField = Inputs.GetProperty("FINS PGV Public Flag Field");
if (sPublicFlagField == "")
{
sPublicFlagField = "FINS CI Creator Product Group Suppress Flag";
}
this.BusComp().ActivateField ("FINS CI Created By Position Id");
this.BusComp().ActivateField ("FINS CI Created By Product Group Id");
this.BusComp().ActivateField (sPublicFlagField);
}