johnw54

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

 

Let(

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

Case (

Plurality = 1;

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

@Table

)

)

 

So @Table equals the first word of the layout

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

Then???

 

 

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

Outcomes