another blog


About Microsoft Dynamics GP :-)

Modified Report is not appreaing in Debug Mood. GP2013

When we modify Dynamics GP window and test them on debug mood we need to mark alternate window, same should be done for reports. One of my junior team member was doing this and found no alternate report in Alternate Modified forms and report window.
Perplex, he though some thing related to GP2013 security is causing this.went in an out of GP, create task and securities but found nothing. The user he was using is ‘sa’ so no other user issue could be thought.

To help him out when I print the modified report to check what it will say, got calculated fields error, this makes confirm that some where we have our modified report but some thing is stopping it to be displayed on Alternate/Modified window.

So I close GP, Dictionary and dexterity, everything.
Right click on dexterity app and select run as administrator, login to GP and now our modified report was there in alternate modified reports form, mark and this start printing the reports showing changes we did.

Filed under: Data Issue of Dynamics GP, Dynamics GP, dynamics-gp, , ,

Finding Field Name and Table Name of custom table.

That’s not a good thing to copy and past. 😦

Mr. Phani  copy my this post and publish in his blog without referencing my blog post.



This post is specially for new comers for GP who find it difficult to know field names and table names of custom table when need to use in sql scripts for their add on application for Dynamics GP.


 Let take an example of Customer Maintenance. We have added a table evsTable and it’s two fields on a window.

Field 1 and Field 2.


Now what you have to do is to open the window for whose field information you need, lets say we need to know in which table Field 1 will save data and what is the physical name of Field 1 to use in sql.

 Just focus on some other field and press Alt+F8 and save macro file anywhere.


Now focus Field 1.

Again press Alt+F8.


Now go to the path where you have saved macro file and open it on notepad. You will find field…

View original post 55 more words

Filed under: Dexterity Development, My Thoughts

SQL Fiddle

A tool for easy online testing and sharing of database problems and their solutions.


Filed under: Good Findings, SQL

How to find the names of all text file in a folder in Microsoft Dexterity.

In Microsoft Dexterity we have a function Path_SelectPathname to select folder path.

According to the manual description of the function:The Path_SelectPathname() function displays a file dialog box, allowing a user to indicate the location of a file, and returns a generic pathname to that location.

But there is no way in Sanscript that we can find the contents of the folder, like to list down any specific extension files, Although it’s a common need to read text files in dexterity, so if user needs to read multiple text files inside Dexterity then he needs to select each file by using getfile() function individually, that’s not a real life situation. SO the below is a work around where user will tell the folder path and system will read all the text files of the folder. Not coding a whole scenario, just the key part of reading files names from folder.

For this particular situation we will use VBScript and Batch file, my favorite command line commands. :)I am using Sanscript function Dict_GetPathname(PATH_DATAFOLDER) to create batch file there, also vbs file will be copied there, So this could be changed according to your choice of option for saving vbs and batch files. More details of the function will be read from Dexterity Manuals. In debug mood it means you have to copy your vbs file in the folder where your dictionary is.

Open a notepad and past following line, replace the path “E:\New Working\Almas gp2010\” with your Dictionary folder path and save as listfiles.vbs

Set objShell = WScript.CreateObject(“WScript.Shell”)
objShell.Run(“””E:\New Working\Almas gp2010\command.bat”””), 0, True

open your dexterity window and copy below code in folder path select button.This will create a text file having names of all the text files inside selected folder, which then can be read through TextFile_ReadLine() function with a while loop .There should be other checks added in code like if user not selects folder path then abort script  or etc, add them according to your needs. 🙂

local integer l_File_ID;
local string com,l_Path,l_listFile,b_path,path;
local boolean result;

result = Path_SelectPathname(l_Path);
if result = true then
    FilePath of window ies_selectfolder of form ies_selectfolder = Path_MakeNative(l_Path);
end if;
path=FilePath of window ies_selectfolder of form ies_selectfolder;
l_File_ID=TextFile_Open(b_path+”command.bat”, 0, 2);
TextFile_WriteLine(l_File_ID, “E:”);
TextFile_WriteLine(l_File_ID, “dir /s/b “””+path+”*.txt””>”+””””+b_path+”text.txt”+””””);
run application “”,b_path+”listfiles.vbs”;

Filed under: Dexterity Development, dynamics-gp, , , , , ,

RE: Smartlist Error – Explorer_Get_DDL_Type not found

For Gp2013 SP2, we have option of Smart List Designer, so we can workaround for PA Status issue by using it.

First Create new view in your company database.


After that press button New, select Project Accounting in Product.Select Database view expand it and select the view we have created in SQL ‘Almas’ and also the Microsoft Dynamics project view PAProjects. Define the relationship as selected in below screen shots and save this new smart list.


Now filter as you wish.



Filed under: Dynamics GP, Project Accounting

If ERPs will ge…

If ERPs will get implemented by reading books then there were no MCPs, MVPs and Microsoft Partners. 🙂

Filed under: Just Thinking,

Workaround of GP2013 SP2 SmartList error ASI_Get_DDL_Type_Master

Workaround of GP2013 SP2 SmartList error ASI_Get_DDL_Type_Master

‘ASI_Explorer_CriteriaSBM OK Button K_CHG on form ASI_Advanced_Search’

‘ASI_Get_DDL_Type_Master()’, 0, 258, 1, 258, 32208

Filed under: Dynamics GP, dynamics-gp, Project Accounting

When In Dexterity, do as dexterity developer should do.

I have notice that people usually use SQL statements for doing task which have an equivalent and easy way of doing in dexterity. while browsing through Dynamics community found this particular post. The person who posted the issue is doing the same, using SQL to delete the records from Dexterity form. The disadvantages I found with this method are.

  1. Extra line of code.
  2. Possible issue of SQL_Connect.
  3. Hidden SQL script errors which could only confirm only if we first compile them first on Query Analyzer and then use in our code.
  4. Limitation of text field length which can not be greater than 32,767.
  5. Two many concatenation for larger queries.
  6. Possibilities of error increases, dexterity syntax, SQL syntax errors, Tables and fields reference error and difficult to debug.

As compare to SQL_Execute, dexterity remove from table is best, simple and sweet.

release table table1;
‘Item Number’ of table table1=’Item Number’;
change table table1;
if err()=OKAY then
remove table table1;
end if;

GP will take care of database connectivity and getting the right record to delete from right table. I always avoid using SQL_Execute until unless it is not done by dexterity provided syntax for any kind of table operations.

Filed under: Dexterity Development, ,

Files for this company have not been updated.

After trying to add the sample company data for GP10, and log in back to GP, got below message. To fix the issue when tried to run the utility , it would not let me to mark check box before Sample Company Name and so could not proceed. After checking SQL log fine two entries in dynamics..duLCK  table. Deleted them, allowed me to re-run the utility for TWO.

Those who are first time adding sample data check this Microsoft KB

Filed under: Dynamics GP, dynamics-gp, ,


Enter your email address to follow this blog and receive notifications of new posts by email.

Enter your email address to follow this blog and receive notifications of new posts by email.


Error: Twitter did not respond. Please wait a few minutes and refresh this page.

Blog Stats

  • 9,913 hits

RSS dynamics-gp

  • VSTools and database triggers.
    In SanScript coding we have database triggers, Below is a detail of what database triggers are as explained in dexterity manuals. Database triggers Database triggers are activated by successful table operations, such as a record begin read, saved, or deleted. The procedure that runs in response to a database trigger has access to the same […]
  • Getting the current active window in Dexterity.
    Using dexterity there is not a direct way of getting current active window information, but with set of available GP functions and triggers can make this task happen. Below I am sharing a trigger and function which can tell the active window name. Below code needs to be changed according to the needs of developer, […]
  • Hints and Tips… On going Post
    This is on going post and points will be added from time to time. 🙂 .. with Field Level Security we can not restrict document access on Sales transaction entry Window. Means we can not make user to choose only ‘Invoices’ in SOP Type drop down. .. we can not add custom table in table […]
  • Reversing the sort order of Receivable Transaction Inquiry – Customer by Document Date
    Last few months we got more request on changing sort orders of Inquiry windows and lookups and to cover them all in a one place I have been working on a small project which will provide a simple sorting without much effort. In Dynamics Community there was a post having similar situation, I have already […]
  • Getting the current open window in .net GP Add In
    There are many ways of getting information of active window in GP, but it changes according to the developing tool we are working on. 1.Dexterity.(the best tool 🙂
  • Not all RW_Function are meant for reports.
    There are lots of RW functions available in a report writer Calculated Field Definition window and almost all of them are so handy while working on report writer, but it is a matter of fact that some of them are not actually meant for report writer. Usually RW functions are associated with report writer and […]
  • Dexterity Can Wait and Respond.
  • Cross Dictionary Development.    
  • Calling Sales Document Numbers Lookup
    Often developers need to open available lookup on their custom form from dynamics GP.Sales Document Number lookup is a very common and much used lookup and every dynamics technical person needs to call it in once (or more) in their lifetime. 🙂 Dynamics GP SDK provide a prototype of coding on how to open various […]
  • This datatype name is already in use.
    This datatype name is already in use.
Ghostriver Studios Blog

Sculptural stained glass of Andrew Kosorok

Coding Notes

Code, News, Tech & Stuff

Dynamics GP Builders & Reporting

How to use MS Dynamics SmartList Builder, Excel Report Builder and other Reporting tools to get the data and analysis you need.

%d bloggers like this: