Hi,
I am trying to store SrsPrintDestinationSettings object as value in SysGlobalCache object.
I am setting this in a custom class.
This class is invoked twice so first time I am setting this object and second time I want to retrieve the object's value.
But second time, when it is trying to retrieve the settings, it is not going inside if statement as isSet() method is returning false.
I checked that by debugging. it is being set the first time but don't know why it is returning false.
Please suggest what went wrong.
I used the below code:
SRSPrintDestinationSettings settings;
SysGlobalCache prodStartPrinterSettings = infolog.globalCache();
if (controller.parmArgs().menuItemName() == menuitemOutputStr(ProdPicklistShowDialog))
{
settings = controller.getReportContract().parmPrintSettings();
prodStartPrinterSettings.set("abc", 1, settings);
}
if (prodStartPrinterSettings.isSet("abc", 1))
{
settings = (prodStartPrinterSettings.get("abc", 1));
}