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     Error File Customization - Development Environment?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Error File Customization - Development Environment?
 Login/Join
 
Master
posted
I am customizing the error file in WebFOCUS v7.6.4 - ENtemplate.xml.

I've completed customizing the message for Error 280. Error 280 HTML is displayed when the WebFOCUS Reporting Server is down.

Is there a way I can test my customization, without bringing the reporting server down, and attempting to render a WebFOCUS web page?

That is can I throw an Error 280?

Or, is there placeholder somewhere, where I can place code, temporarily, to test HTML customization? (Also, ideally, I wouldn't have to recycle the web server, every time I wanted to see an error message.)




Pilot: WebFOCUS 8.2.06 Test: WebFOCUS 8.1.05M Prod: WebFOCUS 8.1.05M Server: Windows Server 2016/Tomcat Standalone Workstation: Windows 10/IE11+Edge Database: Oracle 12c, Netezza, & MS SQL Server 2019 Output: AHTML/XLSX/HTML/PDF/JSCHART Tools: WFDS, Repository Content, BI Portal Designer & ReportCaster
 
Posts: 822 | Registered: April 23, 2003Report This Post
Expert
posted Hide Post
Without bringing the server down, the only thing I can think of is to copy the customized HTML into another error - Invalid Password, for example. Then login with an invalid password to test the customized HTML. Don't forget to undo this after testing!


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Master
posted Hide Post
Thanks, Francis.

Yes, copying the customized HTML into another error pocket, and then triggering that error to test, might be the way to go.

Can you suggest an error that would be a good placeholder for doing this? (I can't find a listing of the error messages in any manual, to help me choose.)

We have folks working/testing in the environment I need to change the errors file in. I want to cause them the least amount of grief, by using an error that they would be unlikely to trigger, yet would be easy for me to trigger.

Thanks again.
 
Posts: 822 | Registered: April 23, 2003Report This Post
Expert
posted Hide Post
David,

As you may have already figured out, ENtemplate.xml works in conjunction with ENwebfoc_strings.lng. This file contains the string values that are used by the XML file. You'll have to read both files to see what each error means. A quick wade through the ENwebfoc_strings.lng file didn't help in coming up with a suitable error to test with, so I'd still suggest the Invalid Password error, which might be err_1003.

If you allow the users to change their passwords on self-service or MRE screens, perhaps you could use err_1023 (but then there's err_32036...) and enter a wrong password in the seccond, password confirmation box.

Regards,


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
You could of course also add a non-existing node in the odin.cfg using the webfocus administration console. Then, next, start up the ad-hoc reporting page that comes with webfocus, select a specific server, namely the non-existing one, and submit.
This will trigger the 280 message.

Hope this helps ...


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Master
posted Hide Post
The Errors File in v7.6.4 is an XML file.

Each unique error page sits in a named template node. For example, the template for an error 11:

 
<template name='error_11'>
       <![CDATA[
            <HTML>
            <HEAD><Title><inserttext err_11 />
            </Title></Head>
            <Body>
            <H2>
            <inserttext err_11_explain />
            </H2>
            </Body>
            </HTML>
        ]]>
    </template>
 


'Something' must know how to 'call' the errors file and request the character data stored there, and then render that data in the browser.

Logically, there should be some way to emulate this process. That is, identify the .xml file, and call a particular template within it.

I know that there is a template processor (XSLT), but if this would be helpful, I don't have any experience with it.
 
Posts: 822 | Registered: April 23, 2003Report 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     Error File Customization - Development Environment?

Copyright © 1996-2020 Information Builders