Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     ReportCaster - Help with Best Practice
Go
New
Search
Notify
Tools
Reply
  
ReportCaster - Help with Best Practice
 Login/Join
 
Member
posted
Hi Fellow FOCUS developers,

I've written one WF533 report for RC and the same one accessed by UI front end. Both reports are supposed to be exactly the same output. The RC report just mails a daily snapshot, the UI version allows user to enter their own From and To date, plus a few other options.

I originally felt that RC was different enough to keep all RC reports in one folder separated from the rest of my UI reports(it was new to me two months ago). Now, I'm trying to figure out if I should modify the RC code to make it callable from the UI and RC scheduler. This would eliminate maintenance of two files that do almost the same thing but it would make for some ugly code, and I like clean code.

Has anyone else had this scenario and what is your experience or recommendation?

Thanks in advance for your comments! Smiler
 
Posts: 23 | Location: Daytona Beach, FL | Registered: February 07, 2005Reply With QuoteReport This Post
Gold member
posted Hide Post
You can read the documentation to see exactly how, but RC allows you to pass parameters to your reports so that they perform properly. In the above example you could pass a parameter that tells you fex to use today's date for both "from" and "to" dates. I hope this is what you were looking for....
 
Posts: 90 | Location: Tinker AFB | Registered: June 03, 2003Reply With QuoteReport This Post
Silver Member
posted Hide Post
You should keep only a single version of a procedure to ensure that any future enhancements are automatically reflected in your RC and UA versions. Like Boogarweed said above, you can run your focexec with any parameters you choose from RC, so there is no need whatever to keep two versions.
 
Posts: 44 | Location: New York City | Registered: May 23, 2004Reply With QuoteReport This Post
Platinum Member
posted Hide Post
We've approached this such that we set -DEFAULT amper variables to the values the Caster requires. For the ad hoc/on-line access, we prompt for the variables and overlay the default values. Works well for us.
 
Posts: 118 | Location: DC | Registered: May 13, 2005Reply With QuoteReport This Post
Member
posted Hide Post
Thank you all very much. I appreciate the advice and comments!
 
Posts: 23 | Location: Daytona Beach, FL | Registered: February 07, 2005Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     ReportCaster - Help with Best Practice

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.