Focal Point
[CLOSED] Code Overwritten

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

October 10, 2011, 11:53 AM
Ryan May
[CLOSED] Code Overwritten
Is there a setting within WebFOCUS to disable code being modified by WebFOCUS. I've noticed that anytime I go in and modify CSS and/or HTML it gets rid of any structure I've added and also adds a whole lot of additional (unneeded) code.

Thank you!

This message has been edited. Last edited by: Kerry,


WebFOCUS 7.7.03
Windows, All Outputs
October 10, 2011, 01:27 PM
ABT
Don't use HTML Composer. As you've noticed, whenever you open an HTML file in Composer, it 'helps out' by updating itself to HTML/JavaScript as per the current installed version.

There are lots and lots of posts discussing and coming to this conclusion.

- ABT


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
October 10, 2011, 03:12 PM
njsden
I don't think there's such a setting ... I would really love it if it did. As ABT says, HTML Composer uses a whole lot of metadata in the HTML document itself and that many, many times gets in the way of how you'd want your document to be.

Sadly we either learn to live with that (and take extra backups before any significant change) or abandon HTML composer altogether which is not always an easy option to make depending on your business needs.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
October 10, 2011, 03:23 PM
Doug
quote:
Don't use HTML Composer.
Keep in mind that someone else will probably come in behind you to maintain this code after you're done with it. So, with that in mind, only circumvent the HTML composer when NEEDED.




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
October 11, 2011, 01:21 AM
Alven Pitt
quote:
Ryan May

I am not having much knowledge about your issue but I would suggest you to go through the provided link:
csueastbay.edu/FOCUS/wf761doc/ibi_html/javaassist/intl/EN/help/topic469.htm#_OPENTOPIC_TOC_PROCESSING_d0e137015
May be you can get some sort of help from it.


Electrical Chokes
October 11, 2011, 04:10 AM
Wep5622
Starting with 7.6.10 the generated metadata got a lot more complicated - too complicated to create by hand, IMO. The way things are, it is not really possible to separate the metadata generation from the widget placement in the HTML composer, so you're pretty much stuck with using the composer.

I'd love to be able to write clean HTML and CSS, especially since that will likely be much easier to understand by the next person editing the page (as opposed to what Doug claims).
Unfortunately, as soon as you want to add a form-element or change its widget type, it's hard to circumvent using HTML composer, which will just scrap all the carefully crafted HTML you wrote.

So, unless IBI manages to separate the two, don't bother creating proper HTML and just live with the HTML composer. It's a hard pill to swallow if you have standards, but you'll just have to swallow it...


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 :
October 12, 2011, 10:06 AM
Ryan May
Is there a master stylesheet that everything references? Can I just write classes in there and call the classes?


WebFOCUS 7.7.03
Windows, All Outputs
October 12, 2011, 10:45 AM
webFocus_reporter
I am not sure what are you changing in CSS.
If you are using your own CSS, WF GUI helps to ref. that css file. You need to keep CSS file under WEB APPLICATION Folder and need to use ref. like this way in your HTML file - ../approot/XYZ/abc.css .

If you are doing something with RIA themes then, you need to modify src="/ibi_apps/bindows/js/application.js" file with your required style..


WebFOCUS 7.6.X/7.7.X
Windows
all output