Clarion8 NT7.25
Hi Bruce
In the CIDC Nettalk seminar I asked how I could hide/unhide these buttons based on a value in the highlighted record
Example
If I do not want to allow a change on a record if the value is (say) REC:status = 2
As I understood it from you on the Form tab of the Browse in the Show Buttons change I would check the include Change Button and put a Condition for it to appear in the Condition field.
Firstly: what should the format be? I have added the REC:Status to the View Fields.
'REC:Status <> 2'
or REC:Status <> 2
or p_web.GSV('REC:Status') <> 2
Secondly, and vitally, when I put a trace in the GenerateUpdateButtonsBelow routine in the Start of "Set jQuery Update Buttonset Options" embed point which is where this condition appears this trace only appears once while a browse is being generated. Selecting different rows do not call this routine again which means (as I understand it) that it cannot be testing the highlighted record to determine if the change button should be included or hidden.