NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: broche on February 28, 2015, 10:30:51 AM
-
NT 8.34
Cl 9.1
Generating an Invoice from a browse on a webform
All works great, however some customers want the rate on the invoice others do not.
I can do this with two buttons on the Webform calling different reports but it is not intuitive and the customers are used to a single button on the browse line.
My question is how to either conditionally print a report from a browse button or hide/un-hide a column in the report based on a field from the customer record.
Any tips appreciated.
Brian.
-
Hi Brian,
One report (and thereby one button) will suffice (and it's not really NT related - it goes for any Clarion report).
You can tweak the report in the Open Report embed (after parent) like this:
if SomeCondition = true
SetTarget(Report)
hide(?SomeControl)
SetTarget()
end
Peter
-
Thanks a bunch Peter
-
Hi Peter,
When you say 'Open Report embed' I don't see one with that description - what exact embed is it please.
Thanks gain, Brian.
-
Brian,
In the embed tree:
Local Objects
ABC Objects
Window Manager (ReportManager)
OpenReport
Peter