Published on InterSystems Developer Community (https://community.intersystems.com)

Home > Zen Mojo - Method Push and Pop

Question
Alexandre Marques · Jul 18, 2016

Zen Mojo - Method Push and Pop

I have two pages and I am using the push and pop to go and back navigation. When I click the button forward and back in the browser, I can't navigate more between pages.

 

The following code:

Page 1 - onSelect Method:
var obj = {idExame: VALID, objUsu: ObjUsu};
zenPage.gotoArea ('itemexames', key, key, false);
view.pushDocument (key, obj, key, obj);


Page 2 - onSelectMethod, back:

var documentKey = "PacienteExamesinitial";
var layoutKey = "PacienteExamesinitial";
var area = "pacienteexames";

view.popDocument ();
zenPage.gotoArea (area, layoutKey, documentKey, false);

 

I am using ZenMojo with Bootstrap.

Can someone help me?

Thanks

Alexandre Marques

#ZEN #Caché

Source URL:https://community.intersystems.com/post/zen-mojo-method-push-and-pop