NetTalk Central

Author Topic: Pop-up browse issue  (Read 5622 times)

kingja

  • Sr. Member
  • ****
  • Posts: 261
    • View Profile
    • Email
Pop-up browse issue
« on: August 25, 2014, 04:54:03 PM »
Bruce,

     I like to create what I call a "secondary menu" and display it to the right of a browse.  The secondary menu is a NetWebSource procedure with the menu template added.  The secondary menu is set as a child of the parent browse in the browse template settings.  This works, as long as I don't call the browse as a pop-up.  If I do call the browse as a pop-up, then the child secondary menu does not display.  Can you think of a work-around for this?

Thanks,

Jeff

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: Pop-up browse issue
« Reply #1 on: August 26, 2014, 08:03:54 AM »
I raised this with Bruce about a year ago but he didn't have a solution at that time. I had to revert to my browse being page and the forms popup.
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Pop-up browse issue
« Reply #2 on: August 26, 2014, 10:15:08 PM »
If you embed the browse/menu onto a form and pop that up, does it work?

kingja

  • Sr. Member
  • ****
  • Posts: 261
    • View Profile
    • Email
Re: Pop-up browse issue
« Reply #3 on: September 02, 2014, 07:26:56 PM »
Kevin,

     Just getting back to this issue.  Can you explain what you mean by embed the browse/menu onto a form?

Thanks,

Jeff

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Pop-up browse issue
« Reply #4 on: September 02, 2014, 08:14:19 PM »
Create a webpage as a form from the templates. Change type from Table to Memory. Add control to the form and select procedure as the type. From the procedure list select your browse and then repeat for menu.

Hope that helps.

Kev

kingja

  • Sr. Member
  • ****
  • Posts: 261
    • View Profile
    • Email
Re: Pop-up browse issue
« Reply #5 on: September 03, 2014, 10:26:22 AM »
Kevin,

     Thanks, that does help.  In fact, I've been doing this all along.  I have a NetWebForm with a tab set up.  On the tab I have the NetWebBrowse procedure.  As a child of this browse procedure, I have a NetWebSource procedure that defines the secondary menu. 
     I call the NetWebForm as a pop up but the secondary menu does not display.  If I don't call it as a pop up, it does display the secondary menu.
     The effect I want is to call the browse as a pop up.  This browse should have its own menu, either a dropdown or taskpanel menu would do.  This is important to my app as all other browse and foems are called as a pop up.  I'm currently trying different things to achieve this effect but so far have had no luck.

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Pop-up browse issue
« Reply #6 on: September 03, 2014, 07:04:30 PM »
Have you tried removing the menu as a child of the browse and just adding it as a control to the form or calling it via the XHTML template option?

kingja

  • Sr. Member
  • ****
  • Posts: 261
    • View Profile
    • Email
Re: Pop-up browse issue
« Reply #7 on: September 04, 2014, 08:37:13 AM »
Kevin,

     Thanks!  Almost there.  Using my secondary menu as a control on the form, I was able to get the effect I wanted.  See the attached image.  However, none of the items in the menu are working...that is they are not opening their respective procedures.  The menu itself can be "opened" and "closed" however.  Calling my menu from the XHTML template option has the same  results.  One other thing, the close button does not work in this configuration. 
     Now working to see how to make the menu active again.

Jeff

[attachment deleted by admin]

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Pop-up browse issue
« Reply #8 on: September 04, 2014, 03:23:07 PM »
Hi Jeff,

the menu item procedures would also need to be popups not normal pages. But thinking about how popups work (the container for the popup is loaded when the screen opens and is hidden on the page until called) I'm not sure how it could discover and load these from a source file.

You could try adding a hidden button to call a popup procedure and then have your menu call the same procedure.

Cheers,

Kev

kingja

  • Sr. Member
  • ****
  • Posts: 261
    • View Profile
    • Email
Re: Pop-up browse issue
« Reply #9 on: September 05, 2014, 06:51:14 PM »
Kevin,

     I have taken a different approach.  I created a small memory form and placed button on it, which call various pop-up procedures.  The form has tabs set to none.  I then call this small form as a control on the main form.  I have been able to achieve the effect I was looking for...and everything is pop-ups now.  Please see the attached image.

Thanks,

Jeff

[attachment deleted by admin]