another blog


About Microsoft Dynamics GP :-)

How to find if specific field exist on window at run time.

Someone asked me this, may it possible to find if some specific field exist on gp window at run time?

I think yes we can find out by doing following trick, I don’t know the beginning and end of the story that why he needs to find out this. Here is a code.

local string s;
local string compiler_error;

s=”open form SOP_Entry. lock Almas of window SOP_Entry of form SOP_Entry.”;
if compiler_error<>”” then
{do nothing}
{disable field}
end if;

This can also be checked by exception handling if you know your exception.

check this link


Filed under: Can i, Dexterity Development,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: