
Dear All,
I am working with GP2013 and testing it with multiple dynamics scenario. In my dexterity code, I have made changes as under -
Where ever "use Dynamics" syntax was written, I have replace code as "use " + GetSystemDatabaseName() ;
But, on syntax such as "AddMenuItem", "FindCommandInMenu","AlreadyExistsOnMenu" etc, it uses Dynamics name such as -
if AddMenuItem(ParentDictID,ParentFormID,ParentCmdID,DictID,FormID,CmdID,nLoadMode)=true then
nSeq = 0;
nStatus = AddCommandToMenu(DYNAMICS,
resourceid(form Command_Inventory),
resourceid(command CL_Inventory_Cards of form Command_Inventory),
nSeq,
Runtime_GetCurrentProductID(),
resourceid(form Command_BMM),
resourceid(command BM_Item_Extension of form Command_BMM),
false,
nLoadMode);
end if;
Here, Dynamics is not of string type, but do I need to make any change if Dynamics name is different than "DYNAMICS". How would I change if it is required?
Also, please let me know that on how many places in dexterity, it is required to make changes in GP2013 in case if Dynamics name is dirrerent than "DYNAMICS",
*This post is locked for comments
I have the same question (0)Do not change DYNAMICS in this context. DYNAMICS is a constant and it's value is 0. That is the product id for Dynamics. In this case, you are adding a form to the Cards>Inventory menu and that menu is part of the dynamics dictionary. This code has nothing to do with the system database name.