NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Gordon Holfelder 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
-
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
-
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
-
hmm - seems like it.
Let me know.
Cheers
Bruce
-
I will re-test when the next build is available, which will be? :)
-
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
-
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
-
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