Posts

How to customize segmented entry control

Image
 Customizing Segmented entry Lookup in out of the box form When you have a requirement to customize the lookup in ledger dimension segmented entry, following are the steps needed to perform to achieve this requirement. Step 1: Create field account type that contains multiple accounts like Customer, Vendor, Bank etc. Create field account number that will save the account number related to account type selected. for account number take EDT ledger dimension that would save the RecId of account number. Step 2:  Now paste your field along with account type in extension of out of the box form. And set the following properties of segmented control with auto declaration set to yes. Step 3:  Create a class to extend from dimension hierarchy class. Step 4:  Create condition based on your account type. Step 5:  Create extension class of SegmentedEntryControl class. Step 6:  Override the checkUseCutomLookup method. and specify for what account types custom lookup is re...

Change tracking through AIFChangeTrackingTable in X++

Image
  Change tracking through AIFChangeTrackingTable in x++   This document demonstrates how to get changes done in tables through data entity. You need changed records from multiple tables and save those records in our custom table. For this, you need to create a data entity containing the tables, views or query to include required tables. Then, Navigate to Modules -> System Administration -> Data Management. Click on Data Entities Search for your entity . Then click the three dots on action pane and select Change tracking . It will show three options, select enable custom query . After selecting the option, you will get these Infolog messages and change tracking will be changed to custom. This is needed to functionally enable the change tracking for required entity. The requirement is to get the  records that are created or modified in actual tables. For this you have to create a query same as data entity and with calling AIF change tracking ...