another blog

Icon

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.”;
execute(s,compiler_error);
if compiler_error<>”” then
{do nothing}
else
{disable field}
end if;

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

check this link

https://www.facebook.com/notes/evincible-solutions/how-to-make-focus-trigger-script-run-only-when-alternate-window-is-marked/404705122918129

Advertisements

Filed under: Can i, Dexterity Development,

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: