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     [SOLVED]Spaces With Column Data - Excel

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]Spaces With Column Data - Excel
 Login/Join
 
Guru
posted
 
-SET &SPAC2='     ';
-SET &SPAC3='            ';
-SET &VALUE='HII';
DEFINE FILE CAR
SPACCOL2/A20 = '&SPAC2&VALUE';
SPACCOL3/A20 = '&SPAC3&VALUE';
END

TABLE FILE CAR
PRINT
CAR
SPACCOL2 AS 'COL1'
SPACCOL3 AS 'COL2'
ON TABLE PCHOLD FORMAT PDF
END
-EXIT


I am having a logic where in I need to add leading spaces to the data, in few columns. To show some Hierarchial stuff difference.

The code above works fine with PDF format. Where in, Excel the spaces are not added to the data. How to go about this ?

This message has been edited. Last edited by: Ramkumar - Webfous,


Thanks,

Ramkumar.
WebFOCUS/Tableau
Webfocus 8 / 7.7.02
Unix, Windows
HTML/PDF/EXCEL/AHTML/XML/HTML5
 
Posts: 394 | Location: Chennai | Registered: December 02, 2009Report This Post
Virtuoso
posted Hide Post
Try adding this statement to your code:

ON TABLE SET SHOWBLANKS ON


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Guru
posted Hide Post
quote:
SHOWBLANKS


Thank you Dan... That worked like a charm !! Smiler


Thanks,

Ramkumar.
WebFOCUS/Tableau
Webfocus 8 / 7.7.02
Unix, Windows
HTML/PDF/EXCEL/AHTML/XML/HTML5
 
Posts: 394 | Location: Chennai | Registered: December 02, 2009Report This Post
Virtuoso
posted Hide Post
Yet another setting I knew nothing about. Thanks Dan! I think I'll need to tune in more frequently Smiler



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Virtuoso
posted Hide Post
Lovely! It works in HTML as well.

DEFINE FILE CAR
CTR/I2 WITH CAR = CTR + 1;
SPACES/A40 WITH CAR = '                              ';
CARNAME/A40 = OVRLAY(SPACES, 40, CAR, 20, CTR*2, CARNAME);
END
TABLE FILE CAR
PRINT
   CARNAME
ON TABLE SET SHOWBLANKS ON
ON TABLE PCHOLD FORMAT HTML
END


Arrrgh, I really needed something like this a while ago ... oh well, now I know better.

Thank you again Dan!
Good One



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report 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     [SOLVED]Spaces With Column Data - Excel

Copyright © 1996-2020 Information Builders