Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Compound Rpt : Issue while adding constant value to position of components.
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] Compound Rpt : Issue while adding constant value to position of components.
 Login/Join
 
Platinum Member
posted
Hi,

I have a compound report where i need to display the content for different page size.
So i have an amper variable for page size and use that variable to check for different page size.
The issue i am facing is for somme page size,say A4 , i have to apply a top margin and left margin for the compound report.So i have to add the same top and left margin to the position of different components in my compound report to get an uniform look.

When i do that as shown below,

  
-DEFAULTH &RIGHTMARGIN = 0.345
-DEFAULTH &TOPMARGIN = 0.485

--------------
-------------

OBJECT=STRING, NAME='txt1', TEXT='<font face="ITALIC" color="#ffffff" size=22>Welcome</font>', POSITION=((&RIGHTMARGIN+0.500) (&TOPMARGIN+1.875)), MARKUP=ON, WRAP=ON, DIMENSION=(7.000 0.930),  METADATA='left: 0.500in; top: 1.875in; width: 7.000in; height: 0.930in; font-family: ITALIC; font-size: 22pt; position: absolute; z-index: 2;', $



This wont' work as i get bad style sheet error on POSITION because of the addition operation.
I don't want to hardcore by adding the values as i have reports with 100's of lines.
Is there any way i can make the addition work for the POSITION or any other way.?

This message has been edited. Last edited by: FP Mod Chuck,


WF8202M,Windows 7,8,10
HTM,PDF,EXCEL
 
Posts: 220 | Location: MI | Registered: September 13, 2017Reply With QuoteReport This Post
Virtuoso
posted Hide Post
srajeevan

I think you need some dialog manager logic to do the math on the &RIGHTMARGIN and &TOPMARGIN before you reference it in the stylesheet with a -SET based on the page size you want.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 1944 | Location: Customer Support | Registered: April 12, 2005Reply With QuoteReport This Post
Platinum Member
posted Hide Post
Okay.
 
-SET &RIGHTMARGIN = 0.345;
-SET &TOPMARGIN = 0.485;


Right now i am passing the value as it is for A4 size.Even with that i the position won't do the addition operation i think.The value is being passed.Here is the error message that i get.

(FOC3202) BAD VALUE IN STYLESHEET FILE AT LINE 37: POSITION=((0.345 + 0.500) (0.485 + 1.875))


WF8202M,Windows 7,8,10
HTM,PDF,EXCEL
 
Posts: 220 | Location: MI | Registered: September 13, 2017Reply With QuoteReport This Post
Virtuoso
posted Hide Post
Srajeevan

Do the math in the -SET to a different variable


-SET &RM = &RIGHTMARGIN + 0.500;
-SET TM = *TOPMARGIN + 1.875;


OBJECT=STRING, NAME='txt1', TEXT='Welcome', POSITION=((&RM) (&TM)), MARKUP=ON, WRAP=ON, DIMENSION=(7.000 0.930), METADATA='left: 0.500in; top: 1.875in; width: 7.000in; height: 0.930in; font-family: ITALIC; font-size: 22pt; position: absolute; z-index: 2;', $


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 1944 | Location: Customer Support | Registered: April 12, 2005Reply With QuoteReport This Post
Platinum Member
posted Hide Post
Hi Chuck,
Thanks for the suggestion.
I could do like that if i have only one or few components.But i have like 50+ components in a fex and the position values changes for each components.So having such -SET statements for each component is a not a possible solution for me.


WF8202M,Windows 7,8,10
HTM,PDF,EXCEL
 
Posts: 220 | Location: MI | Registered: September 13, 2017Reply With QuoteReport This Post
Virtuoso
posted Hide Post
Srajeevan

Putting math in the stylesheet will not work so all I was trying to do was give you another way to accomplish setting the position value. Hopefully someone else will have an answer that is acceptable for you.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 1944 | Location: Customer Support | Registered: April 12, 2005Reply With QuoteReport This Post
Platinum Member
posted Hide Post
I agree with you.
I was looking for any other possible solution if there is.

Thanks


WF8202M,Windows 7,8,10
HTM,PDF,EXCEL
 
Posts: 220 | Location: MI | Registered: September 13, 2017Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Compound Rpt : Issue while adding constant value to position of components.

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.