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     [CLOSED] Utilize Increase Decimal/Decrease Decimal functionality of Excel in WebFocus

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Utilize Increase Decimal/Decrease Decimal functionality of Excel in WebFocus
 Login/Join
 
Member
posted
Hi,

How can I utilize Increase Decimal/Decrease Decimal functionality of Excel in WebFocus?
I need to display Amount with 2 decimal places in excel format, whereas actual value(from database) needs to be shown in editor box(fx) of the cell. How can achieve it in WebFocus?



Best Regards,
Sandy Sagar

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 25 | Registered: September 15, 2014Report This Post
Gold member
posted Hide Post
Sandy
Not quite sure what you're asking but two things come to mind. Can you define the variable for Excel??? NEWVAR/D.2=OLDVAR;
If not, perhaps SET DMPRECISION could be the answer.

Jeff


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 74 | Registered: December 23, 2013Report This Post
Master
posted Hide Post
Depending on how many decimal positions you need, you'll need a 'D' format or 'P' format variable. The 'P' format can store more significant digits, but it automatically rounds to the last digit. 'D' format does not round. I could be wrong but I believe the 'D' format will store 15 significant digits and the 'P' format will store 31 significant digits.

In one of my reports I have variables that are P17.12. When I print them in the report, that is how they display. I use a formatting macro to change how they display in the cell so that it show 2 decimal positions. However, when you are positioned on the cell, the "editor box" shows the full number, up to 12 decimal positions.

For example, the cell will show 2.14 in the cell, but editor box shows 2.1421346789.


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006Report This Post
Member
posted Hide Post
Hi Jgelona,

Could you please guide me to write Marco to change the data type format of the column.

Best Regards,
Sandy Sagar


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 25 | Registered: September 15, 2014Report This Post
Master
posted Hide Post
I just did another report that does this and you don't need a macro.

I have a master where the field is defined as D13.8 (should work equally as well with a DEFINE field). When I print the field I use the FIELD/D13.2 format. That should work like you want.

The field in the report should display 2 decimals in the cell but the full value in the formula bar if you are positioned on the cell.

Also, if you need help with doing a macro, do a search on this board, there are many topics.


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006Report This Post
Guru
posted Hide Post
This is a nice thought. Good One


-Rifaz

WebFOCUS 7.7.x and 8.x
 
Posts: 406 | Location: India | Registered: June 13, 2013Report This Post
Guru
posted Hide Post
However, it doesn't work well with EXL2K but works in XLSX/EXL07. I have a original value as 10.001, when i print the field as DATA/13.2, in EXL2K format, it shows up as 10 in the formula bar, whereas in XLSX/EXL07, it shows up as 10.001 in the formula bar. Ultimately, I want to use EXL2K format. Is this a problem with Excel or WebFOCUS? How to explain to the customer?

This message has been edited. Last edited by: Rifaz,


-Rifaz

WebFOCUS 7.7.x and 8.x
 
Posts: 406 | Location: India | Registered: June 13, 2013Report This Post
Gold member
posted Hide Post
Hi All,

Is this issue resolved...?

We have the same problem.we have a field with D12.6 format.
In Excle output we need to show only 2 decimal points(like 65.57) in cell.
If the customer click or double click the field value(cell) in excel, need to display entire decimal value (like 65.57488) in formula bar .

It's work in EXL07 format. how to achive this in EXL2K format.

Any help pls....


WebFOCUS 8201m
Windows,AppStudio, DevStudio,All Outputs
 
Posts: 86 | Location: India | Registered: November 03, 2015Report 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     [CLOSED] Utilize Increase Decimal/Decrease Decimal functionality of Excel in WebFocus

Copyright © 1996-2020 Information Builders