You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Get element by id not working

Hello All,

I am trying to show a pop up and its not working. Due to upgrade to latest vbcs version.

Please see my vbcs function below:

  PageModule.prototype.showtestpopup = function () {  

     document.getElementById('rollbackPopUp').open();

     return null;

  };



And here my ui code

<oj-dialog style="display:none" dialog-title="Confirmation Alert" id="rollbackPopUp">

  <div slot="body">

    <div class="oj-flex">Rollback Payroll</div>

  </div>

  <div slot="footer">

    <oj-button on-oj-action="[[$listeners.ojButtonOjAction6]]">Ok</oj-button>

    <oj-button on-oj-action="[[$listeners.ojButtonOjAction7]]">Cancel</oj-button>

  </div>

</oj-dialog>



Kindly advise.


Thanks,

Mitish

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!