Doug Monson Posted December 5, 2023 Share Posted December 5, 2023 I am assisting in a WebFOCUS migration from 7.6 to 8207.28. The 7.6 application uses a single stylesheet to style all their reports.In 7.6, the application has the stylesheet in one of the application directories, e.g. baseapp. The stylesheet is made available globally by the SET STYLE = LANPRT command in the edasprof.prf file. The reference in the edasprof.prf makes the stylesheet available for all reports generated. This same technique does not seem to work in 8207.28.If I put the stylesheet reference in the actual FEX, it will find it and apply the stylesheet --SET STYLE = LANPRTTABLE FILE CARSUM DCOST RCOSTBY COUNTRY BY CARENDIf the SET STYLE = LANPRT is removed from the FEX and put in the edasprof.prf file, WebFOCUS does not find it. I have tried a -RUN after the SET STYLE command in the edasprof.prf file. I also created a FEX with the SET STYLE command in it and tried a -INCLUDE but these techniques did not work. Any suggestions are appreciated.-Doug Link to comment Share on other sites More sharing options...
Mat Barnard Posted December 5, 2023 Share Posted December 5, 2023 You'll probably need to use an absolute reference to the stylesheet in 8207 onwards:ON TABLE SET HTMLCSS ONON TABLE SET STYLE * INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/warm.sty,$ENDSTYLEEND So try: SET STYLE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/warm.sty Link to comment Share on other sites More sharing options...
Mat Barnard Posted December 5, 2023 Share Posted December 5, 2023 That's not quite right actually. :-/Do you have a ON TABLE SET STYLE in your code? I'm not sure the SET STYLE in EDASPROF is still supported.Most global styling is now done through 'Global Resources' in the WF Client. Link to comment Share on other sites More sharing options...
Doug Monson Posted December 5, 2023 Author Share Posted December 5, 2023 Thanks Mat. I do not have an ON TABLE SET STYLE in the code. I'm trying to avoid putting that code in every FEX and configure WebFOCUS to find the stylesheet globally for each report. Even if the stylesheet was in the Global Resources section, wouldn't each report need to reference it individually with ON TABLE SET STYLE? Link to comment Share on other sites More sharing options...
David Beagan Posted December 5, 2023 Share Posted December 5, 2023 Hi Doug, I tried it in WF Rel 9.1.0 and saw the same behavior as you did. I put a SET STYLE=WARM? SET STYLE in the edasprof.prf and run a report fex. I see in the edaprint.log that it is taking the new value. But a ? SET STYLE in the report fex shows it back to the default. Other seetings like ASNAMES and HOLDLIST work as expected and desired. Not sure if this was by design or just a buggish oversight. Link to comment Share on other sites More sharing options...
Solution Patrick Huebgen Posted December 6, 2023 Solution Share Posted December 6, 2023 @Doug Monson Please try to put the command in a client profile instead of edasprofall type of settings and other language commands are part of my universal profile 1 Link to comment Share on other sites More sharing options...
David Beagan Posted December 6, 2023 Share Posted December 6, 2023 I tried it, it works. Good one. Link to comment Share on other sites More sharing options...
Patrick Huebgen Posted December 6, 2023 Share Posted December 6, 2023 In 8.2x and 9.x this is my preferred way of adding any commands.I keep edasprof clean from any clutter.Universal profile will be used by caster and webfocus client (was not available in the past) and is the best choice for everything that is not ENGINE / adapter related or APP related Link to comment Share on other sites More sharing options...
Doug Monson Posted December 6, 2023 Author Share Posted December 6, 2023 Thank you Patrick it works very well. I should have thought to try a Client profile.-Doug Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now