NetTalk Central

Author Topic: Browse With Other Button Calling Popup Doesn't Work  (Read 4452 times)

spot1701

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
Browse With Other Button Calling Popup Doesn't Work
« on: April 12, 2011, 03:07:39 AM »

Nettalk 5.22 ( & 5.21)
I have a browse with a button on it. I make the button an "Other":





I get it to call  the form as a "popup"



When the app compiles it produces the following error:



The app DOES compile, but when you run it and you press the button on the browse. The save button appears  on the form but pressing it does nothing. The Cancel button closes as expected.

If I set the button to NOT "Open as popup" all behaves as expected with no errors.

« Last Edit: April 12, 2011, 03:12:02 AM by spot1701 »
Thanks

Bryan

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Browse With Other Button Calling Popup Doesn't Work
« Reply #1 on: April 12, 2011, 06:40:39 AM »
Hi Bryan,

I've tried duplicating here, but not getting any joy.

Perhaps you can tweak one of the examples to show the effect?
I suspect your issue may be more in the form than the browse, but it's hard to be sure.

BTW - you probably need the "Use JavaScript Styled button" to be on to use the JavaScript Icon - but
I don't think that's causing the problem.

What might cause the problem is if the browse itself contains some non-xhtml compliant code. That would "appear" as a form that won't close after "save" is pressed. You can use FireBug to see the xml returned by the browser after clicking on Save. (Console , open response, choose XML at the top of the response.)

cheers
Bruce

spot1701

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
Re: Browse With Other Button Calling Popup Doesn't Work
« Reply #2 on: April 12, 2011, 07:07:39 AM »
Apologies, my shots weren't exactly correct. The save button stops working if you try and pass the "Delete" action to the form.

I've attached web1.app which demonstrates the template error, and the fact that the save button doesn't work when you pass a delete action.

Basically, what I'm trying to do is bring up a form when the user wants to delete a record. I don't just want the "are you sure" popup, I want to display more information than that.



[attachment deleted by admin]
Thanks

Bryan

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Browse With Other Button Calling Popup Doesn't Work
« Reply #3 on: April 12, 2011, 07:29:28 PM »
Hi Bryan,

with C7 apps you must include the dict as well.

when a C6 dict converts to C7, new GUID fields are randomly generated as ID's for each field.
This means your "converted" dict is not the same as my converted dict.

cheers
Bruce


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Browse With Other Button Calling Popup Doesn't Work
« Reply #4 on: April 12, 2011, 08:39:57 PM »
One more thing - the Form supports a "Delete" button. You can turn it on on the "Layout" tab.
If you add this a user can delete the record by clicking on "Change" on the browse, then "Delete".

Cheers
Bruce

spot1701

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
Re: Browse With Other Button Calling Popup Doesn't Work
« Reply #5 on: April 13, 2011, 12:11:18 AM »
Apologies. Have attached app and dct.

Will have a look at the delete button on the form, and see if I can make that work for me.

[attachment deleted by admin]
Thanks

Bryan

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Browse With Other Button Calling Popup Doesn't Work
« Reply #6 on: April 13, 2011, 09:11:37 PM »
In your example;
on the browse button set the Action to "change".
on the MyMemoryForm procedure, Layout tab, turn on "delete" and "cancel" buttons, turn off "save/close" button.

That seems to do the trick.