Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Maintain form - vertical display

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Maintain form - vertical display
 Login/Join
 
Gold member
posted
I have a maintain form wiith a grid.
The values are small (I4) but the column headings are up to 16 characters.

The column heading are in separate edit boxes.

Is there a way to display the contents of an edit box vertically (vs horizontially).


A
ABCD vs B
C
D


Brad S.
WF 8.05 / Win7 /Tomcat Self Serve
 
Posts: 61 | Location: St Louis | Registered: May 15, 2003Report This Post
Master
posted Hide Post
My research on this has shown that in a heading, we can only have the one horizontal line of text. However, if the columns are fixed (no scrolling left / right), I have found two ways to simulate vertical headings.

The first way is with a Text Box. To do this, open Notepad or Word and type the text in one letter at a time, vertically. Copy that text into a text box and align it with the grid column.

The second way is with an HTML Object. Build the value with a br in between each letter. When you display it in the HTML Object, it displays one character per line. You will then need to align that object with the grid.

I am sorry there is no easier way to do this that I have found.

Mark Derwin
 
Posts: 663 | Location: New York | Registered: May 08, 2003Report This Post
Master
posted Hide Post
I guess I said this couldn't be done too soon. A lot of trial and error has come up with this solution. It involves two steps. The first is a creation time. The second is at runtime.

Step 1: When you create your grid, edit the text for the desired heading, and place a \n in between each of the characters. In my case, I have: M\na\nr\nk. When you click ok, the heading WILL appear vertically inside the painter. However, at runtime you won't see the vertical heading. You will see the characters with the \n in between them. This does however, increase the height of the grid heading area.

Step 2: Add the following JavaScript to your MNTONLOAD.JS file. This file, that is incorporated into every Maintain application, is run everytime the Maintain form is refreshed.

Form1.Grid1.QuickSetCellTypeEx(2, -1, 2);
Form1.Grid1.QuickSetText(2, -1, "M\na\nr\nk");
Form1.Grid1.SetColWidth(2, 20);
Form1.Grid1.RedrawCell(2, -1);

These commands operate on the heading of column 2. They change the text in the heading to the vertical text and then reduce the width. You Can change the 20 in the SetColWidth statement to make the column as wide as you need. Finally, you may not need the Redraw command, if this is in the OnLoad function.

Good luck - Mark
 
Posts: 663 | Location: New York | Registered: May 08, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Maintain form - vertical display

Copyright © 1996-2020 Information Builders