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     [CLOSED] Add code to run after every procedure
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] Add code to run after every procedure
 Login/Join
 
Member
posted
Hi Focal Point,

I'm looking for a profile that runs AFTER every fex runs. This would effectively be the same as a universal profile (which runs before your fex runs) but I'd like ti at the end.

The use case would be to add a global catch to say things like IF &LINES EQ 0 then give a friendly message or that sort of thing.

Appreciate any help on this!

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


Dan B.
WebFocus 8203M
 
Posts: 13 | Registered: May 18, 2017Reply With QuoteReport This Post
Expert
posted Hide Post
Nice idea, I wonder if you can do it in the site profile ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.05OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6104 | Location: Land of the Darug people, Terra Australis Incognita | Registered: October 31, 2006Reply With QuoteReport This Post
Expert
posted Hide Post
I don't use a 'profile'. What I do, as do many others, is to add a line after appropriate TABLE FILE requests which does a GOTO IF &RECORDS EQ 0 in which there's a -INCLUDE of an HTMLFORM to display the 'Friendly No Data' message.

Albeit, a 'site profile' would be better, as Waz pointed out...
 
Posts: 2976 | Location: Middle Tennessee [8204M Gen48 in Test&Prod] | Registered: February 23, 2005Reply With QuoteReport This Post
Member
posted Hide Post
I appreciate the idea of a GOTO but this works only when you have access to the code of a report. If something's written in InfoAssist+ then adding that sort of logic is risky if you want to open it in the editor again.

Thanks for the thoughts. Any others before writing up a new feature request?


Dan B.
WebFocus 8203M
 
Posts: 13 | Registered: May 18, 2017Reply With QuoteReport This Post
Expert
posted Hide Post
Do the users have free-range in IA? or, are they using ROs?
 
Posts: 2976 | Location: Middle Tennessee [8204M Gen48 in Test&Prod] | Registered: February 23, 2005Reply With QuoteReport This Post
Virtuoso
posted Hide Post
In version 8201m change the contents of WebFOCUS82\client\wfc\etc\prod\error_42.xml and adjust to what you want.

You have to restart the client (tomcat).


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1100 | Location: Toronto, Ontario | Registered: May 26, 2004Reply With QuoteReport This Post
Member
posted Hide Post
Doug, we don't use reporting objects at this point. Their post-processing option is exactly what I'm looking for except on a global scale (with ROs, if you ever want to change the post-processing logic you'd need to change every RO individually).

Dhagen, very interesting! I'll look into that!


Dan B.
WebFocus 8203M
 
Posts: 13 | Registered: May 18, 2017Reply With QuoteReport This Post
Virtuoso
posted Hide Post
Interesting dhagen... Thanks for that insight.


8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
 
Posts: 1110 | Location: USA | Registered: January 27, 2015Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Add code to run after every procedure

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