FM provides fields and variables with varying scopes:
table global fields ( all TOs of a table, same value )
table fields ( all TOs )
global variables ( file )
variables ( script )
values ( custom functions )
What is missing are table fields/variables with a scope of 'instance'. Instance is an open window with a TO tied to it.
I find this curious as FM does handle information with instance scope -> found set, sort, summary fields, layout objects with calculated values (i.e. tab control tab titles).
Haven't found a clean way to get around this, I'm curious how fellow developers handle instance-scoped data.
Do you want to be able to store different data sets for different window sessions?
Did you know that you can use single $ variables in layout calculations and they are retained in the scope of the layout? I've used it for layout level display purposes but that is tied to the layout not to the window.
My use case is:
A given layout is instantiated in 1 or more windows, each window displaying different records of the TO.
Depending on a record's or field's status, different labels and value lists are required. This must happen on a per window (instance) basis. A variable-value across all windows of a layout won't do it.
I removed my posting since a super nice person who frequents this forum suggested my posting was, in his opinion, off target and might annoy some folks which is never my intention.
I admire your perseverance in making micro services palatable to the rest of us. I have not yet dared to do so myself, since I know almost nothing about JavaScript.