Hello,
It is a friendly question and your answer is much appreciated.
I am MC Dynamics GP developer.
I need to add a new field into a 3rd party dictionary and I like you blog talking about adding a parallel synchronized window which opened when the desire form is opening.
I tried to do the trigger which allow me to do that but nothing works.
I need to show a message when “window SVC_Contract_Line_Invoice_View of form SVC_Inquiry_Contract_Entry” in SVC dictionary opened.
Here is what I did:
On the Startup I wrote:
local integer l_result;
l_result = Trigger_RegisterFocusByName(949, "window SVC_Contract_Line_Invoice_View of form SVC_Inquiry_Contract_Entry", TRIGGER_FOCUS_PRE, TRIGGER_AFTER_ORIGINAL, script csSVC_Message);
if l_result <> SY_NOERR then
warning "Focus trigger registration failed.";
end if;
“csSVC_Message” Code:
warning "Hi";
I don’t know what I miss.
is there anyone be able to send a full example of how to use parallel synchronized window technique.
Thank you.
*This post is locked for comments
To customize a 3rd Party window, I would suggest two options (1. Modifier with VBA 2. Dexterity).
1. Modifier with VBA
You can easily modify the 3rd party window by using Modifier and add the newly added button to VBA then write the code to this button change event. This is one of the best method for customizing 3rd party window.
Note: VBA is not supporting GP 2013 Web Client.
2. Dexterity
If you want to customize the 3rd party window with using Dexterity, go to GP installation folder and copy the 3rd Party extracted dictionary to your work area and open this dictionary in Dexterity and then modify the window and write your coding. Then you need to combine the development dictionary with dynamics dictionary with following below KB article.
http://support.microsoft.com/kb/930350
Finally paste your combined dictionary to GP installation folder and test your customization.
Note: Before follow above steps make sure you have a backup for GP installation folder.
If you are not using GP web client then use Modifier and VBA for your 3rd party customization.
Hope this helps!!!
I build the chunk and deploy it. Then, tested it within GP.
No, I didn't create the combined dictionary. I tried to make the combined dictionary but this will build new resource ID's in the main dictionary "Dynamics.dic" which will interrupt the extracted dictionary.
How did you test this customization in GP? deployed in GP? or Test Mode?
Did you created combined dictionary?
Hi,
Appreciate your answer.
Unfortunately, this doesn’t work.
No any action happens when open the form.
Do you have a complete example of using a 3rd party dictionary form with Dexterity?
Would be much appreciated.
Thank you.
Try the execute function into your procedure “csSVC_Message” Code as shown below.
local string compiler_error;
if execute(949, "warning""Hi"".", compiler_error) <> 0 then
{A compiler error occurred. Display the error.}
error compiler_error;
end if;
Hope this helps!!!
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156