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.
I had the silly idea to try and outsmart HTML Composer to make the generated code a bit more readable (and manageable). HTML Composer had generated a date-fieldlike this:
That's pretty unreadable (what variable corresponds to that field, for example? You need to scroll past all that style info to see... grrr), so I thought "Why don't I put that style information where it belongs: in a style-sheet"? So here we go:
What happens? The calendar icon loses its positioning Why? It's semantically equivalent, isn't it? IBI isn't actually parsing the contents of the actual style attribute instead of reading out element style information through the style property of the element, are they?
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 :
The calender icon isn't in the code. It's added later. Since it isn't a real HTML item. It takes whatever is in the STYLE element of the inputbox and uses that ( with some modifications ) to display the icon. Since you've cleared / removed the STYLE it can not do that. If you catch the generated HTML you'll see additional A tags added to the end of the code. Unfortunately they don't seem to get an ID. :-(
Originally posted by Dave: You've been waiting a long time to post this didn't you? Just so that you could make this post nr. 666 (!)
Oh indeed, it is! Frankly, I don't usually bother with posting numbers, they're quite meaningless. In this case, I'm aware that some people associate a meaning with this particular number, but I'm not one of them.
Regarding what really happens; I didn't actually remove the styling, I just moved it around a bit. The styles are still associated with the element, and the element must be what IBI's code bases its positioning for the calendar icons on. Basically, they messed up.
My main reason for posting wasn't as much to complain about yet another issue with HTML composer (plenty of those on these forums, quite a few by yours truly), but to inform people that although this seems a sane thing to do, it doesn't work out the way you'd expect.
I think it should be possible to override some of the ibirls3 code to fix this, but I haven't had an opportunity to look into that yet.
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 :
I know you just used another way of adding styling to an element. The end result in a browser should be the same...
...but it not just a browser looking at this code.
You -did- remove the STYLE attribute from the INPUT tag. And if some WF code tried to read the contents of the STYLE attribute... ...it will assume no styling is present. ( which it pretty much counts on I guess ).
G'luck, Dave
_____________________ WF: 8.0.0.9 > going 8.2.0.5
Posts: 668 | Location: Veghel, The Netherlands | Registered: February 16, 2010
I'm sorry, but that statement makes no sense. The code that's having problems necessarily does its work in javascript, which is perfectly capable of getting to the styling information on a given HTML element. It's not even more difficult (quite possibly it's actually easier) than getting that information from the style attribute as IBI is apparently doing now.
Composer only created the HTML that I improved a bit on. I have no need for it to be able to interpret it again after the change. What's surprising is that it broke stuff in the browser, as that was totally unnecessary.
The reason that I changed the HTML was that I wanted to fix the tab-indexes. With the almost random order in which labels and form elements tend to appear in the HTML and all that style info at the front of each element, its really difficult to see what form-element you're currently looking at. Putting the style info at the end would alleviate the problem, but you still would't be able to read, for example, a label's text. Moving the style info into a separate style-section in the HTML seemed like a good (and proper) solution - but, as I described here, that unfortunately doesn't work for calendar controls (and for no particular reason).
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 :
In WebFOCUS 8 the tool does not even let you view the HTML code but only allows you to edit the JAVASCRIPT functions. The more you play with the HTML code the more you can break and maytimes the code will not get converted correctly. The more you play with the HTML code the better the chance you will break something and the report cannot be migrated to newer releases and that is when IBI hears about it.
You can see all the styling for any control by clicking on the control and doing the following:
1 - Goto the Properties window on the right side of the composer page (by default). 2 - Look for Styling: Advanced ... and click on the elipsis button to the right. 3 - The Style Composer popup window will come up and you can set all the properties there in a safe manner.
I hope that this resolved you issue and if not please feel free to open a case with Tech Support and someone will assist you.
Thanks Barry
WebFOCUS 8103, Windows, App Studio
Posts: 80 | Location: NYC | Registered: November 13, 2008
OH by the way the Tab order can be changed in the GUI as well. Go to View menu item and make sure that "Positioning" is checked. Then look for the third icon on that toolbar with a finger pointing to three boxes. That icon is the TAB ORDER button and that will let you change the Tab order of the HTM page.
Thanks Barry
WebFOCUS 8103, Windows, App Studio
Posts: 80 | Location: NYC | Registered: November 13, 2008
I know you can change the tab order using HTML composer, but then I need to restart Dev Studio after changing the tab order to get line numbers in Dev Studio back. Moving the style attribute to the "appropriate" section and editing the tab indexes by hand (and removing the superfluous ones on the labels) is quicker and requires less mouse usage.
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 :