NetTalk Central

Author Topic: Browse refresh after delete  (Read 4367 times)

Gordon Holfelder

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
    • Email
Browse refresh after delete
« on: January 05, 2011, 12:30:54 PM »
Hi Bruce-

I have a slightly unusual browse. This browse has view, insert, change and delete buttons in the browse. These buttons are hidden / shown based on values found in the view (hot fields). In this case the actual maintenance is a popup using a memory form which in turn writes out the values used in the browse. All buttons are displaying correctly except the view button after pressing the delete. It appears that the loc:Popup value is being left at 1 after the delete and therefore the view button goes away. See the following generated code from the value::View routine:

    else ! default settings for column
      packet = clip(packet) & p_web.DivHeader('BrowseBenefits_View_'&PRitm:PRItemID,,net:crc)
          If Loc:Popup = 0
            packet = clip(packet) &  p_web.CreateStdBrowseButton(Net:Web:SmallViewButton,'BrowseBenefits',p_web.AddBrowseValue('BrowseBenefits','PRitm',PRitm:Key_PRItemID),,loc:FormPopup,'UpdateBenefit') & '<13,10>'
          End
    End

If I refresh the entire page with the browser or If I manually add code loc:Looup = 0 at the top of the browse it fixes the problem. Is this what you intended?

Thanks,
Gordon

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Browse refresh after delete
« Reply #1 on: January 05, 2011, 10:12:52 PM »
Hi Gordon,

I'm not getting the same effect here, but of course it's possible this is an "already fixed but not released" bug.

When you click on the Delete button, do you see something similar to the following POST in the log?

POST /MailboxesBrowseControl HTTP/1.1
.....
Cache-Control: no-cache

pressedButton=deleteb_btn&_popup_=1&FromForm=MailboxesFormControl&_bidv_=jkBceEjZ

The key is the _popup_ setting there, because in the generateBrowse routine is this;

  if p_web.GetValue('_popup_') = 1
    loc:popup = 1
  end

Cheers
Bruce



Gordon Holfelder

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
    • Email
Re: Browse refresh after delete
« Reply #2 on: January 06, 2011, 12:45:09 PM »
Hi Bruce-

Yes, This is what I get back:

POST /BrowseBenefits HTTP/1.1
...
Cache-Control: no-cache

pressedButton=deleteb_btn&_popup_=1&FromForm=UpdateBenefit&_bidv_=beF2KDNL

So does that mean it's fixed in the next build?
Thanks,
Gordon

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Browse refresh after delete
« Reply #3 on: January 07, 2011, 03:52:55 AM »
hmm - seems like it.
Let me know.

Cheers
Bruce

Gordon Holfelder

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
    • Email
Re: Browse refresh after delete
« Reply #4 on: January 07, 2011, 09:07:02 AM »
I will re-test when the next build is available, which will be?  :)

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Browse refresh after delete
« Reply #5 on: January 07, 2011, 10:19:06 PM »
soonish. I've been doing a lot of foundations work, which is almost "half finished" which will leave me in a space to make a build, then complete the other half.

cheers
Bruce

Gordon Holfelder

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
    • Email
Re: Browse refresh after delete
« Reply #6 on: January 31, 2011, 08:12:05 PM »
Hi Bruce-

Just tried this with 5.13 and it is still a problem. If I add the loc:Lookup=0 at the top of the browse it fixes the problem.

Regards,
Gordon

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Browse refresh after delete
« Reply #7 on: February 01, 2011, 03:01:34 AM »
I'm not sure why there's a loc:popup filter around the View button. So I've removed it for 5.15.

cheers
Bruce