Quantcast
Channel: Reports & Macros
Viewing all articles
Browse latest Browse all 1118

DialogTemplate - make your own navigation

$
0
0

Hi,

 

I've created a dialog in my script, including 2 pages.

Those pages have the basic buttons (next/previous, cancel, validate). Then, I also added personnalized buttons in the second page. But I have difficulties to make those buttons do exactly what I want.

For example, I've added a button in page 2

iDialogTemplate2.PushButton(10, 170, 200, 28, "Add a new relation", "BUTTON_NEW");

I've created the dedicated function :

 this.BUTTON_NEW_pressed = function()
 {
      //treatment to save the results

      //call to page 0
 }

The treatment to save the results works well (I haven't detailed it). My issue is when I tried to reload the Page(0) of the Dialog. I don't know how to proceed. Does someone know how to reopen the page 0 when you click on a button on page 1 ?


Viewing all articles
Browse latest Browse all 1118

Trending Articles