Hi,

I created a modal which inherits the BasePageV2 to solve my problem with lookup's filtering for simplelookups, but now I am facing problem with trying to close the modal.



I tried BasePageV2's onBackButtonClick, this._closePage(), onDiscardChangesClick and it doesn't close the modal. 

Any workaround/idea?

Like 1

Like

1 comments
Best reply

Hi,

Problem solved.

Since I created a modal base on BasePageV2, it doesn't have a this.close() function by default. 

Solution: Unloading module/modal should be done inside the modal (BasePageV2), hence I need to call this.destroyModule(); while in the Modal.
 

Hi,

Problem solved.

Since I created a modal base on BasePageV2, it doesn't have a this.close() function by default. 

Solution: Unloading module/modal should be done inside the modal (BasePageV2), hence I need to call this.destroyModule(); while in the Modal.
 

Show all comments