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] Adding COMPUTE to Synonym

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Adding COMPUTE to Synonym
 Login/Join
 
Guru
posted
Hi,

I've created a report with a computed field in it that has the following expression...
PROD_QTY * AVE.INSTALLATION_PERCENTAGE / 100

This works just fine.

When I try to add a COMPUTE to a synonym using the same expression it doesn't work. The check expression button says it is valid but when I look at the synonym in Tree View the expression shows up in red. If I try to run a report using this I get the error that the fieldname is not recognized. I assume this is because the expression really isn't valid.

What do I need to change to get this expression to work from a synonym rather than a report?

Thanks!

Dan

This message has been edited. Last edited by: Dan Pinault,


7.7.05M/7.7.03 HF6 on Windows Server 2003 SP2 output to whatever is required.
 
Posts: 393 | Location: St. Paul, MN | Registered: November 06, 2007Report This Post
Expert
posted Hide Post
What does the synonym with the COMPUTE look like.

Does it have the AVE ?

This may be the cause, becasue adding a COMPUTE to a synonym is the same as a DEFINE.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
Actually, you just can't add a COMPUTE to your master file.
You can add a DEFINE to your master, but that is not the same as a compute.
In a define for instance, it is quite useless to say AVE., since all computations for a define are done at the record level, not at the aggregate level.
In this case, I would stick with the COMPUTE in your request, don't try to put it in your master.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Virtuoso
posted Hide Post
I added a compute with a prefix operation in it in the master as a compute and I am getting the same results as yourself. The column is flagged in red, but I can still use the column and the results are correct. Maybe it is an oversight with the GUI in that it does not expect to see a prefix operator.

GamP - Yes, you can add a compute to a master. It's been there for a few releases ... undocumented naturally.

Master sample:
 COMPUTE SOMEVALUE1/D20.2=AVE.MEASURE3;,
      TITLE='Some Value 1', $ 


Fex sample:
 COMPUTE SOMEVALUE1;
 


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
Guru
posted Hide Post
dhagen,

Thanks for the Fex sample. I was unaware that the syntax for using a Master File Computed Field is
COMPUTE FIELDNAME;


I was attempting to use it in an ad-hoc request and just referencing it by
FIELDNAME


I guess I'll need to add some code to my ad-hoc application to accomodate this. Just when I thought it was good to go!...

Regards,

Dan


7.7.05M/7.7.03 HF6 on Windows Server 2003 SP2 output to whatever is required.
 
Posts: 393 | Location: St. Paul, MN | Registered: November 06, 2007Report 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] Adding COMPUTE to Synonym

Copyright © 1996-2020 Information Builders