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     [CLOSED] Save results/values for other fexes

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Save results/values for other fexes
 Login/Join
 
Platinum Member
posted
Hello,

Suppose I have four panels on a dashboard. Panel A calculates X (as well as some other calculations). Panel B calculates Y (as well as some other calculations). Panel C needs to show X and Y. And the fourth is a filter panel with some drop downs and a submit button (we'll call this panel D). The other three panels update whenever this submit button is clicked and they all respect whatever filters are selected.

Now I really hate using redundant code, so ideally for me, panel C will only update when both A and B run and save the results to some place (global variable or maybe a hold file). And I don't want to create a bunch of extra code to achieve this either. The solution I'm looking for should simplify the coding.

I know this can be done with INCLUDE statements, but this can become spaghetti-ish too but more importantly we end up running the same code/query multiple times (though modular code is great, I get it). I'm trying to write code that won't be hard to maintain, neat and efficient.

Any options out there?

Thank you!

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8201, SP 0.1, Windows 7, HTML
 
Posts: 190 | Registered: May 19, 2017Report This Post
Guru
posted Hide Post
You can store your results in FOCCACHE. FOCCACHE is a session storage and will be active from login to logout.

I would't drive the redundant code thing too far and try to keep thing transparant and easy.


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
Platinum Member
posted Hide Post
Thanks for the quick reply... But...

...when the Submit button is hit, how can I control that panel C only uses the values in FOCCACHE after panels A and B were run (and updated the values in FOCCACHE)?


WebFOCUS 8201, SP 0.1, Windows 7, HTML
 
Posts: 190 | Registered: May 19, 2017Report This Post
Virtuoso
posted Hide Post
Shingles

I am not sure that is possible you may want to pose that question to techsupport to see if there is a way.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2128 | Location: Customer Support | Registered: April 12, 2005Report 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] Save results/values for other fexes

Copyright © 1996-2020 Information Builders