Tags » Code Snippets

Enable Modified by and Created by on ALL Parameters tables

Handy Code to have , Can be use to change any of the property of a table also just with the slightest change.

static void Waj_EnableProperties(Args _args)

81 more words
Code Snippets

Create Ledger dimension from string values

By using the below code one can create ledger dimesion recId using X++

container offsetAccount;

RefRecId ledgerDimension;

offsetAccount = [‘11850000’, ‘11850000’, 3, ‘Department’, ‘101’, ‘Customer’,‘Cus-101’, ‘Vendor’, ‘Vend-101’];

9 more words
Code Snippets


These are the code snippets of showing how to create an address tag and to add add, edit, delete functions.

This is made by HTML5, CSS  to manage what will be inside the address tag. 42 more words

Code Snippets

Quick Fix: Scrolling and Focus when multiple bootstrap modals are open

When more than one modal is opened you might have noticed that after the latter modal loses its focus, the former modal loses its scrolling option, rather page’s body scrolls (if exists, otherwise no scrollbar!). 107 more words

Code Snippets

array_unique for multidimensional array

array_unique removes duplicates from only flattened one dimensional array. But still it can be used in a multi-dimensional array with a small work-around. 270 more words

Code Snippets

Python - Simili interactive prompt or console line

With few lines of codes, you can build an IDLE or interactive prompt using the continuous input mechanism

After configuration, you can use it to do calculations etc. 51 more words


Create Default dimension using x++

The following job will get a DimensionAttributeValueSet record ID base on the a set of dimension values.

static void CreateDefaultDimensions(Args _args)
PurchTable purchTable;
DimensionAttributeValueSetStorage valueSetStorage = new DimensionAttributeValueSetStorage(); 107 more words

Code Snippets