another blog


About Microsoft Dynamics GP :-)


To insert value in DEX_ROW_TS from back end  GETUTCDATE() will be used in sql.



Filed under: Dexterity Development, SQL, , ,

How to prevent change script of some dexterity field.

Set the Cancel button’s Hyperspace property to True. This prevents the change script
for the currently focused window field from running when the user clicks the Cancel

Filed under: Dexterity Development, , ,

How to insert CR(Carriage Return) from sql in dexterity text field.

update POP10150
set CMMTTEXT=’Almas’+char(13)+’Mahfooz’
where POPNUMBE=’PO2071′

Filed under: Dexterity Development, SQL, , ,

Adding NULL in Dropdown.

local integer item_number;
item_number = finditem(esUserLevel of window Enter_User_Names of form Enter_User_Names, CH_SPACE);
if item_number = 0 then
add item CH_SPACE to esUserLevel of window Enter_User_Names of form Enter_User_Names;
end if;

Filed under: Dexterity Development, , , ,

Making Life easy with Link Format Selector

To Show relevant currency symbol in custom Dynamics GP window we need to do the following.

  1. Drag a Currency Index field inside window, but keep it off the window main area.
  2. Link all currency fields to that index field through ‘Link Format Selector’. One can find it under “Tools” Menu.
  3. Read the currency index value on change of your currency ID field from MC_Currency_SETP table.
  4. Now the fields will show the relevant currency symbol on window.

Filed under: Dexterity Development, , , ,

Finding SQL table names with specific column.

and table_name like ‘IV%’

Filed under: Code Snippit, SQL, , ,

How to access non gp database table within GP window.

We have one database named “Other”, a non GP database.It has some table we need to use within GP.(read/write/edit/delete record)



On our GP Company Database ‘TWO’ we have created a view.



CREATE view [dbo].[VOtherTable001]


select *,ID as Dex_row_id from Other..OtherTable001



Let’s add a button on sales transaction entry window to read the first record of table.




we will give permissions to our view.

grant select , insert, update, delete on VOtherTable001 to almas

Now the next messages we got are



To solve these above issues

Create a new role like below in ‘OTHER’ database .

Create a user loging for user ‘almas’ in ‘OTHER’ database  so it could be mapped with TWO user.





How to access non gp database table within GP window.

Filed under: Dexterity Development, 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: Please make sure the Twitter account is public.

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: