Custom Function

Discussion created by johnw54 on Jul 14, 2017
Latest reply on Jul 14, 2017 by coherentkris

I'm trying to understand this custom function.  I'm not sure what Plurality is?


Function name is TableName



@Table= Leftwords(Get(LayoutName);1);

Case (

Plurality = 1;

Left(@Table; Length(@Table)-1);





So @Table equals the first word of the layout

If Plurality = 1 (not a field, not sure what this is)




The following script calls the function....

Set Window Title [Current Window;

New Title: GetField(TableName (2) & "::window_title")]


There is the field window_title in each table


the script runs on the On Record Load script trigger.


The purpose of this is when you have many layouts open you can see with window title for each layout in a more descript way. 


Thank you