Tags » 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

Get Comments of a Workflow

We can use this sample code to get the workflow comments on particular Record. Project budget is my desired table  . you can replace ProjBudget to any other table on which you want to get the entered comments. 30 more words

Code Snippets

Printing last n elements of array

How to print the last let us say 10 elements of an array containing 50 ekements ?

The code in python 3:

x = [‘a’,’b’,’c’,’d’,’e’,’f’,’g’] 29 more words


Go to origin \ Custom button on Info

Just a quick code to add a button on InfoLog to facilitate user to go directly on the respective message record.


Code :

SysInfoAction_MenuFunction        sysInfoAction; //Class which we have to use to create a Button.

59 more words
Code Snippets