Focal Point
[SOLVED] hard-coded server names

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/1737001976

October 29, 2015, 01:32 PM
Leanne Wood
[SOLVED] hard-coded server names
We are testing WebFocus version 8.1.04. I have successfully exported and
imported all data from WebFocus 7.7.05 to the the testing server.

As users are testing their code, they are running into issues with the server name being
hard-coded into some of their fexes or html launch pages. When users run a report they get a message, to login to Managed Reporting, which still points to the old server.

Is there a way to globally replace the server name from webfocus:8080 to
wf8sandbox:8080, or will they need to edit each file individually? I've tried
using Wild Edit, but no matter what I do, the server name does not change.

Is this because the repository is now stored in the database?

Does anyone know of another way to accomplish this?

Any help you can offer would be greatly appreciated.

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 8.2.02M, App Studio 8.2.02M
Windows 2012 Server, Excel
October 29, 2015, 01:54 PM
Tom Flynn
Go to each of the Reporting Servers and add this to edasprof.prf file:

-SET &&SERVER = 'HTTP://AAA.YYY.xx.XXX:8080';
or
-SET &&SERVER = 'HTTPS://AAA.YYY.xx.XXX:8080';

Then, replace the hard-coding in the fex's to the &&SERVER variable...


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
October 29, 2015, 02:02 PM
Leanne Wood
Thanks, Tom.

Just so I am clear, users would need to edit each fex or html file manually?


WebFOCUS 8.2.02M, App Studio 8.2.02M
Windows 2012 Server, Excel
October 29, 2015, 02:17 PM
Francis Mariani
Yes, there is currently no easy method to automate updating files that are located in the Repository.

The only way I can think of doing this is to:

- use Developer Studio or App Studio to drag the files to a folder on the PC desktop
- use a smart, programmer's text editor to make the changes to the files
- use Developer Studio or App Studio to drag the files from the desktop folder to the Repository folder

This would have to be done one folder at a time and carefully.

This message has been edited. Last edited by: Francis Mariani,


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
October 29, 2015, 03:03 PM
Leanne Wood
Francis,

thank you so much for your input. I'm sure my users won't be pleased, but there isn't much we can do about it.

thanks again!


WebFOCUS 8.2.02M, App Studio 8.2.02M
Windows 2012 Server, Excel
October 29, 2015, 05:20 PM
Waz
The only way we have "globally" update anything is to do an export (with IBI_CM_Format_Raw set to True so the export is text files), then use some editor, etc to effect the change, then re-inport.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

October 30, 2015, 04:49 AM
Wep5622
We don't use MRE, so things could be different there, but we've seen this happen when deploying projects from incorrectly configured Developer Studio environments.

Basically, the user's Dev Studio environment (mine) was set up to use port 8080 directly, while we deploy our HTML (and other static content) to a server at port 80. The deploy process noticed this discrepancy and prepended URL's in the HTML with http://servername:8080/


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :