NetTalk Central

Author Topic: How do you call a form or browse from the menu buttons as a POPup ?  (Read 4521 times)

MikeR

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
    • Email
Ive changed the link to content and popup ?
no luck ?
Im sure it worked before i'm on 8.11 

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
post a small example Mike, and I'll show you where you've gone wrong.

cheers
Bruce

MikeR

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
    • Email
I took your web2 example app.
added a popup to a browse and a popup to a form .
the browse poopup doesnt work as in my app.
the popup form does ? im not sure why mine app doesnt
attached web2.app zipped.


[attachment deleted by admin]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Hi Mike,

It's sort of a bug in the template, and sort of a bug in your example.

The problem is that you have 2 menu items to the browse procedure - the one which is a link, and the one which is the popup. The template bug is that because of the first, it ignores the prep work it needs to do for the second (which I've fixed in 8.13)

the bug in the app is that it's not necessarily a good idea to have this sort of "dual" approach. I understand this is a contrived example, but at this point, even with the bug fix mentioned above, for various internal technical reasons, this "dual" approach is not supported. Call the procedure one way or the other.

cheers
Bruce

MikeR

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
    • Email
thanks Bruce, but I think I still have a problem.
I am happy for the browsers to always be link or content.
and the forms to be popup.
that works.
I cant seem to make a form popup direct from the menu.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
It's hard to comment Mike without the actual "non working" example to try. In the example you posted the form did work, and the browse didn't (because it was in the menu twice, the first time not as a popup.)

Can you post an example closer to the problem you have?

My guess would be that the popup does not work because the menu is not doing a "PreCall" to that procedure. (You can look at the generated source to see if this is the case). Usually that's caused by the procedure being elsewhere in the menu, not as a popup.

cheers
Bruce

MikeR

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
    • Email
manged to break web2.app
added two new menu items myalias amd mymailbox
everything opens in popup except these two
also the form popups no longer work ?

[attachment deleted by admin]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
you actually added 2 new _menus_ not _menu items_ and that was the key, so the example was helpful. I've fixed the bug for "clicking to a popup directly on a menu" in build 8.13

cheers
Bruce

MikeR

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
    • Email
Thanks Bruce, is the reason it can't find the record error -2 and 30 also the same bug ?