As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
I need to create a report that looks like an outline that contains 3 levels of indent. Each level must wrap at its own level of indent. Each line of text can be up to 500 characters long. So the report would look like indented paragraphs something like you would see in a MS WORD document.
Users type in text into a SQL Server data file which is defined in the FOCUS MFD as A500V. Each row in the data has a flag which indicates what level of indent the row should havein the report. There can be up to 10 rows of data, each with its own individual indent flag (ranges from 0 to 2).
My code is similar to this:
DEFINE FILE OUTLINE ARROW2/A507= IF BULLET_FLAG EQ '2' THEN ' > ' | ENTRY_TEXT ELSE ENTRY_TEXT; ARROW1/A1= IF BULLET_FLAG EQ '1' THEN '>' ELSE ''; END
TABLE FILE OUTLINE PRINT ARROW1 AS '' ARROW2 AS '' BY LINE NOPRINT BY BULLET_FLAG NOPRINT ON TABLE SET STYLE * TYPE=REPORT,COLUMN=ARROW2,WRAP=4, $ ENDSTYLE END
This works fine if no lines wrap. If a row where BULLET_FLAG EQ '2' is longer than 4 inches, it wraps, which is expected. However, it wraps too far to the left; all the way to the left side of the data column.
Does anyone know how to indent a row of data and have it wrap at the indent level? Maybe CSS is the way to go.
I wonder if there is a way to dynamically build the report using HEADING?
I also cannot convert the field to a TX field since that is not supported in a DEFINE.
Don
Posts: 4 | Location: New York City | Registered: June 12, 2007
I tried it in HTML. the indent worked, but the wrapping didn't work. The span tag made the correct indent, but it wraped too far to the left. It went all the way to the left margin. This illustrates the problem I'm describing. I need the wrapped text to line up with the indent.
Also, this is a PDF report and the span won't work there. Eventually we will do this in PPT output as well.
Any other ideas?
DonF
Posts: 4 | Location: New York City | Registered: June 12, 2007