Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
namespace akioma.abc.efg {
 
    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.

Image RemovedImage Removed