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] Store MIN.Field Value as a Parameter value to be used later on down the line

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Store MIN.Field Value as a Parameter value to be used later on down the line
 Login/Join
 
Silver Member
posted
As the title describes I have a set of data in a compound document that will be used in one report. In a completely set of data I need to use a min value in a computed field. Is it possible to store that value in a parameter so my computed field later on can be

COMPUTE CUSTOM/D12 = &MINPARAM / Field

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


WebFOCUS 8
Windows, All Outputs
 
Posts: 49 | Location: United States | Registered: April 21, 2015Report This Post
Virtuoso
posted Hide Post
This can be a way from the moment the original value exist in a table/file:
TABLE FILE CAR
SUM MIN.RETAIL_COST AS MINRCST
ON TABLE HOLD AS HLD FORMAT BINARY
END
-RUN
-READFILE HLD

-TYPE &MINRCST


But without knowing how does your value is stored, difficult to gives you correct solution.


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: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Silver Member
posted Hide Post
Martin

That code does not seem to be setting the variable as desired. That as statement doesn't seem to be transmitting to variable.

TABLE FILE AITRANS
SUM
MIN.Net_Worth AS NETWORTH
WHERE Client_Number = 1111111
ON TABLE HOLD AS HLD FORMAT BINARY
-RUN
0 NUMBER OF RECORDS IN TABLE= 7 LINES= 1
-READFILE HLD
-TYPE
END


WebFOCUS 8
Windows, All Outputs
 
Posts: 49 | Location: United States | Registered: April 21, 2015Report This Post
Virtuoso
posted Hide Post
The End command is at the wrong place and you must specify what to display (-TYPE)

TABLE FILE AITRANS
SUM MIN.Net_Worth AS NETWORTH
WHERE Client_Number = 1111111
ON TABLE HOLD AS HLD FORMAT BINARY
END
-RUN
-READFILE HLD
-TYPE &NETWORTH


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: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Silver Member
posted Hide Post
I had the &NETWORTH in my code the variable was just blank in the output code.

Okay so once i added ON TABLE SET ASNAMES ON it worked.

Thank you thank you thank you.

Learn something new everyday with this program.


WebFOCUS 8
Windows, All Outputs
 
Posts: 49 | Location: United States | Registered: April 21, 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     [SOLVED] Store MIN.Field Value as a Parameter value to be used later on down the line

Copyright © 1996-2020 Information Builders