Guide - Understanding Dynamic Syntax
Guide - Understanding Dynamic Syntax
The syntax
There are basically 2 syntaxes; the item syntax and the table syntax.
$[$<ItemUID>.<ColumnUID>.<DataType>]
Where <ItemUID>, <ColumnUID> and <DataType> is the 3 things you need to provide.
Page 1/8
Here we have the Sales order were we have pointed out 6 fields that we will look at. They all represent the
different datatypes we will encounter in SAP Business One
1.
2.
3.
4.
5.
6.
We will now look at each and determine how we translate into the dynamic syntax.
Page 2/8
= $[$54.0.STRING]
= $[$54.0.0]
If we used this in an SQL-sentence:
= $[$8.0.NUMBER]
If we used this in an SQL-sentence:
= $[$8.0.DATE]
If we used this in an SQL-sentence:
Copyright 2014 Boyum IT A/S
Page 3/8
= $[$38.17.NUMBER]
= $[$38.17.CURRENCY]
If we used this in an SQL-sentence:
= $[$24.0.NUMBER]
= $[$24.0.CURRENCY]
If we used this in an SQL-sentence:
Before version 2.740 you need to use CURRENCY as datatype here. After version 2.740 NUMBER and CURRENCY
work the same way. This was done to be closer to the Formatted Search Syntax
Page 4/8
= $[$29.0.NUMBER]
= $[$29.0.CURRENCY]
If we used this in an SQL-sentence:
ROWSHEADER
Description
This syntax extend .row (aka $[$item.col.type.row]) so you can target a
specific row. You can write a specific row number or the keywords .FIRST,
.LAST, .LAST-1, .SELECTED and .FOCUSED
For more on this syntax please see the following video:
http://youtu.be/SdCUS9IZF7Q
If you need to target a row header of a matrix it is done like this:
$[$<MatrixItemUid>.ROWSHEADER.0]
Before version 2.7.4.0 you need to use CURRENCY as datatype here. After version 2.7.4.0 NUMBER and CURRENCY
work the same way. This was done to be closer to the Formatted Search Syntax
Page 5/8
Here we have a user defined field called Kit Number but since it is only part of the side-bar and not part of
the main window we need to use the table syntax:
$[<TableName>.<FieldId>.<DataType>]
Working the same way as with the item-syntax we need to provide the 3 values needed.
The table the field is on is ORDR and the field is U_KitNo
The data type is string (STRING or 0)
= $[ORDR.U_KitNo.STRING]
= $[ORDR.U_KitNo.0]
Page 6/8
Description
Gives you the unique id of the user logged in.
$[PERIOD]
NB: PLEASE NOTE THAT THIS IS NOT THE USERNAME OF THE USER, BUT THE ID OF HIM/HER. YOU
CAN USE THE OUSR TABLE TO FIND WHAT USER HAVE WHAT ID OR USE THE B1UP SPECIFIC
KEYWORD $[USERNAME]
Gives you the id of the currently used posting period
Description
The username of the currently logged in user
The name of the database logged into
The Database country localization
The name of the company
The name of the server
The date of the server presented in the client format
The time of the server presented in the client format
The System Id of the company
The Installation Id of the company
The forms current pane
The current language of the B1 Client in a numeric form
1 = Hebrew, 2 = Spanish (Argentina), 3 = English (United States), 5 = Polish, 6 = English (Singapore), 7 =
Spanish (Panama), 8 = English (United Kingdom), 9 = German, 10 = Serbian, 11 = Danish, 12 = Norwegian, 13
= Italian, 14 = Hungarian, 15 = Chinese, 16 = Dutch, 17 = Finnish, 18 = Greek, 19 = Portuguese, 20 = Swedish,
22 = French, 23 = Spanish, 24 = Russian, 25 = Spanish (Latin America), 26 = Czech, 27 = Slovak, 28 = Korean,
29 = Portuguese (Brazil), 30 = Japanese, 31 = Turkish, 35 = Traditional Chinese (Hong Kong)
$[NEWID]
Page 7/8
$[WORD_FOLDER]
$[EXTENSION_FOLDER]
$[EXCEL_FOLDER]
$[XML_FOLDER]
Page 8/8