i created a custom action in a Maximo app which opens a dialog box where the user can tick checkboxes to choose whether or not to display tabs in the app view.
If a checkbox is selected in the dialog box, the attribute's value is set to 1 and the tab is displayed. On unselect the value resets to 0 and the tab is hidden.
The cancel button triggers the "dialogcancel" mxevent in my custom dialog, but when I select a checkbox then click the cancel button, the value does not reset to 0 and the tab that should be hidden is displayed.
here's a sample of my xml :
<dialog datasrc="MAINRECORD" id="showrbean" label="Display tabs" savemode="ONLOADUNLOAD">
<checkbox dataattribute="SHOWTAB_1" id="id_checkbox_SHOWTAB_1" label="Tab 1"/>
<checkbox dataattribute="SHOWTAB_2" id="id_checkbox_SHOWTAB_2" label="Tab 2"/>
<buttongroup id="showtabs_bookmarks_2">
<pushbutton default="true" id="showtabs_1" label="Update" mxevent="updateTabs"/>
<pushbutton default="true" id="showtabs_2" label="Cancel" mxevent="dialogcancel"/>
</buttongroup>
</dialog>
The dialogcancel event doen't seem to be working, how can I reset my values on cancel ?
Thanks