NetTalk Central

Author Topic: Report Hide/Uhide a report column  (Read 3805 times)

broche

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Email
Report Hide/Uhide a report column
« 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.
Brian

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Re: Report Hide/Uhide a report column
« Reply #1 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

broche

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Email
Re: Report Hide/Uhide a report column
« Reply #2 on: February 28, 2015, 11:58:51 AM »
Thanks a bunch Peter
Brian

broche

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Email
Re: Report Hide/Uhide a report column
« Reply #3 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.
Brian

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Re: Report Hide/Uhide a report column
« Reply #4 on: February 28, 2015, 09:41:22 PM »
Brian,

In the embed tree:

Local Objects
  ABC Objects
    Window Manager (ReportManager)
      OpenReport

Peter