Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hide field in a report

Status
Not open for further replies.

Dalarna

Programmer
Mar 8, 2010
22
0
0
SE
Hi all!
Need a tip ... Report – Clarion Template Chain
Have you any tip where in the embedded points I shall write code if I want to hide fields in the reports detail area ...
Ex.
IF X = 1
HIDE(?LOC:A)
.
I have tested in Before Print Details section but there it not works.

From Sweden
/Magne
 
Hi!

The proper usage is ::

Report$?Loc:A{PROP:Hide} = True

since for Reports you need to specify the target unlike a Window.

Check the generated source to see if this code is before the PRINT(...) commands and it will work fine.

Regards
 
Thanks ShankarJ!
I will try your tip but I am afraid I need some help from you to fix the "problem":)
Can reach you via email if needed?
From Sweden
/Magne
 
Hi Magne,

Sure. But if you post here it might help others as well.

Regards
 
Hi ShankarJ

If we test in a clarion sample report, so maybe I understand the principle to hide fields

Clarion/Examples/HowToClarion/Reports/
file: clrep003.clw

If I want to hide Dis:StoreID, where shall i write the code (embedded point)?
ex.
HIDE(?Dis:StoreID

/Magne
 
Hi Magne,

I do not use Legacy and so I cannot tell you the embed point but you can find the best embed by pressing the SOURCE button, then search for the PRINT(..) statement(s) and choose the embed just BEFORE the PRINT(..) statements.

Assuming the label of your report is Report, then the command to hide would be ::

Report$?DIS:StoreID{PROP:Hide} = True

OR

HIDE(Report$?DIS:StoreID)

Regards


 
Hi!
It worked well with:
Report$?DIS:StoreID{PROP:Hide} = True
in Before Printing Detail Section
Thanks for he help!
/Magne
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top