Skip to content
+1-888-319-3663

EONE BLOG

Executing Sanscript from an eXtender object


This article looks at how to include sanscript code on an eXtender form from any of the following trigger points:
  • Field Entry of any field
  • Field Change of any field
  • Field Exit of any field
  • On opening the object
  • On clicking on an extra window (button)
We will specifically explore here the way to embed sanscript code into an eXtender form to open a regular GP window and pass some parameters.

In this example, a Property Management application was created using eXtender. A tenant form was created to allow tenant information to be tracked. The tenants are setup as customers in Great Plains.

An extra window was added at the bottom of the window that is labeled Rent Payment. The Rent Payment button has a few lines of sanscript code that will automatically open the Cash Receipts Entry window, and automatically populate the Customer Number with the Tenant ID. This is ideal to give the work flow process that is ideal for the customer.

The code that performs this operation is repeated here. If you are a developer you will understand this perfectly. If you do not understand what is below then you should not be writing logic code and should either contact us at eOne for consulting help or contact you local dex guru who can whip up scripts in no time.

local string ls_tenant_id;
call with name “GetString” in dictionary 3107,ls_tenant_id,”Form”,”PM_TENANT_CARD”,CurrentID,1,”Header”,0;

open form RM_Cash_Receipts;
set ‘Customer Number’ of window RM_Cash_Receipts of form RM_Cash_Receipts to ls_tenant_id;

run script ‘Customer Number’ of window RM_Cash_Receipts of form RM_Cash_Receipts;

Leave a Comment





RECENT POSTS


2021 Q4 Promotions
Connect with us at Directions EMEA 2021 in Milan!
eOne at Summit North America 2021
Employee Spotlight: Megan Tripp, Business Development Representative
eOne is now compatible with Microsoft Dynamics GP October 2021 Release

POPULAR POSTS


2016 SmartConnect Integration Bootcamps
Tech Tues: Automatically refreshing Pivot Tables in Excel Refreshable Reports
Happy Thanksgiving from the eOne team!
2017 SmartConnect Integration Bootcamps
New Releases of Extender and SmartList Builder

CATEGORIES

TAGS

Business Central CRM D365 Business Central Dynamics 365 dynamics crm Dynamics GP Dynamics NAV Econnect Employee Spotlight eone eOne News error Error Message Events Excel Excel Report Builder Extender Flexicoder GP integration Map Meet the Team Microsoft dynamics crm Microsoft Dynamics GP Navigation List Builder Office Relationships partners Popdock release Reporting SalesForce SalesForce.com SmartConnect SmartConnect.com SmartConnect Bootcamp SmartConnect Maps SmartConnect Office Hours SmartList SmartList Builder SmartPost SmartView SQL Tech Tuesday Templates training

Integrate & Automate without Any Code.

SmartList Data has Never Been Faster.

The Easiest Way to Report on GP Data.