...
Code Block |
---|
namespace akioma.osivabc.stammefg { export function TestEventOnStateChanged(object: any) { if (object.type == 'tabbar') { object = object.fetchPage(object.currentPageNum); } if (object.stateData && Object.keys(object.stateData).length !== 0) { console.log('The object and stateData', object, object.stateData); } } } |
Open a “Versicherte” like “Zukerhuat Terence” , open designer in external screen and add “$ akioma.osiv.stamm.TestEventOnStateChanged(eventSource);” for an input, the form, first tab and sidebar item and for the window.
Now if you change something in the form, or remove the value form a mandatory field (or set a customState in future) you will see the coresponding console.logs.
...