Reply To: ID of layout

#2685
Dmitry Rogozhin
Participant

`n = REQUEST (“HomeDB_info”, “”, homeDBIntId, homeDBUserId, homeDBName, homeContext)
n1= SPLIT (homeDBUserId, “%n”, num)
n2 = SPLIT (GLOB_LAYER, “%n”, num1)
if num1 = 0 then
part1=”Prefix layout”
part2=”.postfix”
lenp1 = STRLEN(part1)
lenp2 = STRLEN(part2)
n = STRSUB(GLOB_LAYER,lenp1+2,STRLEN(GLOB_LAYER)-lenp1-lenp2-1)
n2 = SPLIT (n, “%n”, num1)
endif

I used this code to solve this problem. An example of an object can be viewed here
https://yadi.sk/d/RmNZDFD7ubPPv