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] Looping Through a Maintain Stack?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Looping Through a Maintain Stack?
 Login/Join
 
Member
posted
I am trying to LOOP through a stack and display the values from a column for each row where the condition is true = Security_Type EQ 3. Then plug each different value into separate varibles (office 1, office 2 - 8) so I can have them display in a Edit Box. Any ideas? Lost!

Security_Type Value_String All_Flag
1 TEK 0
2 TEKNE 0
3 00001 0
3 00006 0

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


WebFOCUS 7.701
HTML, PDF, EXCEL
 
Posts: 6 | Location: Hanover MD | Registered: September 30, 2011Report This Post
Master
posted Hide Post
Hi Clay -
The issue here is, is the answer set finite or infinite? If it is finite I would do something like this:

Assume STK1 contains all of your data. INFER the same fields into STK2 to create but not load it.

STACK COPY FROM STK1 INTO STK2
WHERE SECURITY_TYPE = 3;
-* This loads all the matching values into a new stack. Then
Compute office1 = stk2(1).value_string;
Compute office2 = stk2(2).value_string;
Compute office3 = stk2(3).value_string;
...
Compute office8 = stk2(8).value_string;

If the values are not finite you could display the column of STK2 in a grid and allow the users to edit the data that way.

Mark
 
Posts: 663 | Location: New York | Registered: May 08, 2003Report This Post
Expert
posted Hide Post
There is always the backup plan of calling FOCUS to return a record set back to Maintain.


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
Member
posted Hide Post
how is that done?


WebFOCUS 7.701
HTML, PDF, EXCEL
 
Posts: 6 | Location: Hanover MD | Registered: September 30, 2011Report This Post
Expert
posted Hide Post
Look up EXEC in the documentation, it calls a WebFOCUS proc.


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
  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] Looping Through a Maintain Stack?

Copyright © 1996-2020 Information Builders