Hi Team,
I'm trying use a variable set in automation script in the custom adhoc GQI code.
I have an 'OB_Edit' automation script, and inside this script i have created a shared project and added the below code, so that i can use this variable set in OB_Edit automation in the GQI code
In OB_Edit script:
I have set the value like below
RefreshCache.refresh = true;
In GQI_Code:
I have referenced the RefreshCache shared project and used the value like below.
if( RefreshCache.refresh)
In OB_RefreshCache.cs (Shared project):
namespace OB_RefreshCache
{ public static class RefreshCache
{
public static bool refresh { get; set; }
}
}
Here is how it works, the OB_Edit is called first on a save and then after when a table is opened the GQI_Code is called
So, though it is set as true in OB_Edit script, it still shows as false in GQI_Code. Tried it in few other ways as well, but either way it is showing false
Hi Hari priya,
I'm afraid that what you're trying to do will not work. Automation scripts and GQI are running in different processes, so sharing memory between the two is not possible.