Posts

Showing posts from May, 2023

Create Custom Filter in d365 through x++

Image
For creating a custom filter in d365 like this shown below, you must follow the following steps: Ø    Create an Enum of your status like below. Ø   Create the field of status in your table and apply Enum to your status field. Ø   Declare the variable of Query Filter at the start of the form.   QueryFilter queryFilter;   Ø   Create the init and execute query method on the data source of the form like below;           public void init()         {             super();             queryFilter = TABLE _ds.query().addQueryFilter( TABLE _ds.queryBuildDataSource(),"Status");         }           public void executeQuery()         { ...

Create dimension for bank account in x++

 If you want to create the dimension in the table  DimensionAttributeValueCombination for the Bank AccountId, you simply write the line below, LedgerDynamicAccountHelper::getDynamicAccountFromAccountNumber(accountId.text(), LedgerJournalACType::Bank); The new record is created in the  DimensionAttributeValueCombination  table. Thanks.