
What is the best way to do cross dictionary scripting ? The way we do currently is to create the code in string and then call execute command and pass the related product id. Reason to write the code in string is because the current dictionary doesn't have reference to the Fields/Forms of other dictionary and will end up giving compile time error.
Is there any better way to do it ?
Thanks,
Himal
*This post is locked for comments
I have the same question (0)Hi Himal
For information on Cross dictionary development, I would suggest looking at my old blog. There are lots of articles.
blogs.msdn.microsoft.com/developingfordynamicsgp
I would suggest using a text field rather than a string and using + char(13); at the end of the lines to format the script.
Then you can use warning l_text; to display the script if you need to debug it.
BETTER STILL
Develop your scripts using GP Power Tools' Runtime Execute window. Once you have the code working, use the Generate Dexterity Pass Through menu option and this will create the code to copy and paste into your dictionary.
The Generate Dexterity Pass Through is a new feature for build 22, but is available in beta in the latest build 21 released. Build 22 will be released very soon.
David