We currently support two ways of generating SKey Getters/Setters.
Add a SKey string member to the object. Pagen will create GetPrevSKey, GetSKey for us (both of which are required to satisfy the Object interface)
Manually write GetPrevSKey and GetSKey. These must call GetPrev<X> and Get<X> so that the Changed works as intended.
SKey and PSKey members are added at the top level to the JSON objects sent to Clients. This means that IF an object includes an SKey member, The SKey will actually be sent to clients twice inside the same object like this
We could decide that this is not a problem. However, this is risky, because it may cause bugs if we accidentaly write javascript that depends on the inner subKey value
We could modify pagen so it adds json:,omit to the subKey diff member. (verify syntax)
We currently support two ways of generating SKey Getters/Setters.
SKey
string member to the object. Pagen will createGetPrevSKey
,GetSKey
for us (both of which are required to satisfy theObject
interface)GetPrevSKey
andGetSKey
. These must callGetPrev<X>
andGet<X>
so that theChanged
works as intended.SKey
andPSKey
members are added at the top level to the JSON objects sent to Clients. This means that IF an object includes an SKey member, The SKey will actually be sent to clients twice inside the same object like thisConsider these options:
subKey
valuejson:,omit
to the subKey diff member. (verify syntax)