NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: broche on February 28, 2015, 10:30:51 AM

Title: Report Hide/Uhide a report column
Post 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.
Title: Re: Report Hide/Uhide a report column
Post by: peterH on February 28, 2015, 11:18:29 AM
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
Title: Re: Report Hide/Uhide a report column
Post by: broche on February 28, 2015, 11:58:51 AM
Thanks a bunch Peter
Title: Re: Report Hide/Uhide a report column
Post by: broche on February 28, 2015, 12:37:21 PM
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.
Title: Re: Report Hide/Uhide a report column
Post by: peterH on February 28, 2015, 09:41:22 PM
Brian,

In the embed tree:

Local Objects
  ABC Objects
    Window Manager (ReportManager)
      OpenReport

Peter