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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Suppressing detail field

Status
Not open for further replies.

ghelfer

Programmer
Apr 1, 2011
7
BR
How can I suppressing numeric field into detail section?
I created a parameter flag on the form to control it because sometimes I need to show this field.
Thanks in advance.
 
Right click on the field you want to suppress conditionally->format field->suppress->x+2 and enter:

{?SuppressThisField} = true

-LB
 
great, and I need to suppress or hide a LineObject and change the width FieldObject dynamically, is this possible?

 
The inserted line would have to be in its own section and then you could apply the conditionally suppression to the section.

I don't quite know what you mean by FieldObject--please be more specific and provide more details.

-LB
 
ops, FieldObject = TextObject

sometimes I need to show (Detail Section):
|Qty|Descr|Unit|TotalPrice|

and sometimes:
| Descr |Unit|

and I want to use just one report (set dynamically)
.
 
You can control the location of the object/field horizontally by right clicking on it->size and position and entering a conditional formula in the x+2 box for the "X" position. You have to use twips to define the distance from the field's original position, with 1440 twips = an inch. You could move the Description field to the left and the second field to the right based on formulas. Assuming the description field starts in position 1 inch in (its starting position), then you could use a formula like this:

if {table.field} = <your criterion> then
-1440 else
0

For the second object, you could use the following to move it an inch and a half to the right of its starting position:

if {table.field} = <your criterion> then
2160 else
0

So you can change the positions of the objects, but you can't change the width per se.

-LB
 
PS. Another approach would be to add the fields/labels in two separate sections, e.g., PH_a and PH_b and Detail_a and Detail_b. You would position the fields you want to use as you wish and then conditionally suppress the entire sections, rather than handling the positions per field/object.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top