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. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.


Connect to myibi
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] display of decimals in edit bar or function bar

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] display of decimals in edit bar or function bar
 Login/Join
 
Platinum Member
posted
Hi,

I tried fining a way to solve this but I can't. Please help me!

I have an excel report that shows 2 decimals(123.45), when I click on the particular cell, I see 4 decimals coming up in function area like (123.4567) but I want to show upto 6 decimals (123.456789) which I cant.

Here is my sample code.

DEFINE FILE CAR
FLD_1/D12.6 = 12.34567800;
END
TABLE FILE CAR
PRINT
CAR
FLD_1/D12.2
BY COUNTRY
ON TABLE PCHOLD FORMAT XLSX
END
-RUN
  


Thank you.

This message has been edited. Last edited by: FP Mod Chuck,
 
Posts: 109 | Registered: February 02, 2016Report This Post
Guru
posted Hide Post
With this code I see 6 decimals in Excel (2016)

 
DEFINE FILE CAR
FLD_1/D12.6 = 12.34567800;
END
TABLE FILE CAR
PRINT
CAR
FLD_1
BY COUNTRY
ON TABLE PCHOLD FORMAT EXL07
END
-RUN
 


XLSX also works by the way.


Test: WF 8.2
Prod: WF 8.2
DB: Progress, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.
 
Posts: 454 | Location: Europe | Registered: February 05, 2007Report This Post
Virtuoso
posted Hide Post
quote:
FLD_1/D12.2

With the above pav you redefines the output format to only see 2 decimals. So to see up to 6 decimals you have to remove the reformatting as per suggested by Frans.


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2410 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Platinum Member
posted Hide Post
Thanks for the reply frans and martinY.

I am trying to show upto 2 decimals in the body for excel(display value) but When we click on the data than in the function bar or edit bar on top of the columns it should show decimals upto 6.


Example :

---------------------------------------------------------------------------------------------------
12.541234
---------------------------------------------------------------------------------------------------

col_1 col_2

1 12.54 (when you click on this value than on top(function bar) is should upto 6 decimlas)
2 14.58
3 59.59
4 15886.36
5 45.89



Please let me know if you still did't understand my question.

Thanks.
 
Posts: 109 | Registered: February 02, 2016Report This Post
Expert
posted Hide Post
What's to format, in the synonym, of the source field?
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Platinum Member
posted Hide Post
here is the mas file
FIELDNAME=MONTH, ALIAS=month, USAGE=D9.8BC, ACTUAL=A15,
MISSING=ON,
 
Posts: 109 | Registered: February 02, 2016Report This Post
Virtuoso
posted Hide Post
pav,

Now you are asking for Excel feature which WebFOCUS as no direct control on it.

What you should do is to have your TABLE file producing the report with the 6 decimals to an Excel macro file where you will add an Excel formatting macro in it to have the column displayed with only 2 decimals.
You need to rely on Excel for your request, not FOCUS.


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2410 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Platinum Member
posted Hide Post
Thank you for the information martinY
 
Posts: 109 | Registered: February 02, 2016Report 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] display of decimals in edit bar or function bar

Copyright © 1996-2020 Information Builders