O4WTabs routine after upgrade from 9.2 to 9.3.2 (O4W)
At 18 OCT 2012 09:28:40AM Bill North wrote:
Hi,
I have a coded O4W form with a tabbed interface but on upgrading to 9.3.2 instead of tabs going across I get a list of hyperlinks which jumps me further down the page how can I correct this?
Also for Mv entries the Del and Ins buttons no longer appear side by side?
Any Help would be appreciated.
Bill
At 18 OCT 2012 10:12AM bshumsky wrote:
Hi,
I have a coded O4W form with a tabbed interface but on upgrading to 9.3.2 instead of tabs going across I get a list of hyperlinks which jumps me further down the page how can I correct this?
Also for Mv entries the Del and Ins buttons no longer appear side by side?
Any Help would be appreciated.
Bill
Hi, Bill. I think there should be some notes in the README about upgrading as you went from 9.2.1 to 9.3.2 - did you do each upgrade along the way (9.2.1 to 9.3 to 9.3.1 to 9.3.2)?
If I recall correctly sometime between 9.2.1 and 9.3.2 there was a big change in the jQuery library (which we use as our underlying framework) which required a change to the javascript that's specified in the "Standard Scripts" section of the configuration screen. If you can still get to the configuration screen, try to change to the latest jQuery version that's specified on the Scripts tab, and then you must edit the standard scripts so that instead of using ../javascript/o4wscripts.pack.js (found on the first line of the standard scripts) you'll instead use ../javascript/o4wscripts_post6.pack.js. After you've saved your configuration changes, your tabs might come back.
If you're running a "split" system (where the OpenInsight folder is on a different machine than the web server) you must also be sure to copy the contents of the O4W folder in your OI directory to the web server, since several of the scripts and plugins have been updated.
Finally, you'll probably need to run the O4WUPGRADE command in OpenInsight in each application that runs O4W. This should be done from OpenInsight on the desktop; for each application that you log into using O4W, please RUN O4WUPGRADE in the System Monitor.
Hope that helps,
- Bryan Shumsky
At 18 OCT 2012 10:57AM Bill North wrote:
Hi Bryan,
I went from 9.2.1 to 9.3 and then to 9.3.2
Changing the config record did not bring back the tabs. Is it something to do with the Style?
O4WUPGRADE routine say no upgrade required.
Thanks for your help.
Bill
At 18 OCT 2012 11:42AM bshumsky wrote:
Hi Bryan,
I went from 9.2.1 to 9.3 and then to 9.3.2
Changing the config record did not bring back the tabs. Is it something to do with the Style?
O4WUPGRADE routine say no upgrade required.
Thanks for your help.
Bill
Hi, Bill. Almost always, this indicates a problem with loading one of the scripts - once there's a javascript error on the page, it stops rendering any of the "advanced" stuff, like tabs, from that point on. What I often do to diagnose this is to go to the offending page in the browser, and "view source". Then, for all the script links that are in the source, I click on them and see if they bring up the expected javascript source - you can also do the same for any style sheet links. Don't worry, you don't have to know what they all mean or do, but you just have to see if instead of bringing up the javascript (or css) the browser instead shows you a "page not found" error message - that's the indication that that's the one that's missing.
Hope that helps,
- Bryan Shumsky
At 18 OCT 2012 02:51PM Bill North wrote:
Hi Bryan,
I clicked on all the links and got no "page not found" messages. I did notice that the O4WTabs routine now has an extra parameter <StyleInfo> does this now need to be set? line in code is
O4WTabs("empTabs", TabNames, TabDescs)Regards
Bill
At 18 OCT 2012 04:26PM bshumsky wrote:
Hi Bryan,
I clicked on all the links and got no "page not found" messages. I did notice that the O4WTabs routine now has an extra parameter <StyleInfo> does this now need to be set? line in code is
O4WTabs("empTabs", TabNames, TabDescs)Regards
Bill
Hi, Bill. No, that's not a required parameter, you should still be OK with what you've got. Is your custom stored procedure the ONLY thing that has a problem displaying the tabs? If you go to the O4W Configuration Maintenance form, do the tabs display correctly there?
Thanks,
- Bryan Shumsky
At 18 OCT 2012 05:00PM Bill North wrote:
Hi Bryan,
The O4W Configuration Records form still has it's tabs, but I have made no change to the code since moving from O4W 1,1 to 1.4.
Bill
At 18 OCT 2012 05:21PM bshumsky wrote:
Hi Bryan,
The O4W Configuration Records form still has it's tabs, but I have made no change to the code since moving from O4W 1,1 to 1.4.
Bill
Hi, Bill. Well, if the O4W configuration screen still has its tabs, then perhaps I've been barking up the wrong tree
Can I access your routine via a URL from "out here" so I can take a look at it? Or is it only available on an internal web server?
- Bryan Shumsky
At 18 OCT 2012 05:46PM Bill North wrote:
Hi Bryan,
Sorry but I have been upgrading my development copy on my laptop. so this is not available online.
Bill
At 19 OCT 2012 05:10AM Bill North wrote:
Hi Bryan,
I have been checking and found that if I call the routine directly from a menu as an O4W procedure I get the tabs problem. However I also call the same routine via a link on a report then the tabs appear. I am still digging to see if I can find a reason for this.
Any help would be appreciated.
Regards
Bill
At 20 OCT 2012 12:37PM bshumsky wrote:
Hi Bryan,
I have been checking and found that if I call the routine directly from a menu as an O4W procedure I get the tabs problem. However I also call the same routine via a link on a report then the tabs appear. I am still digging to see if I can find a reason for this.
Any help would be appreciated.
Regards
Bill
Hi, Bill. Is the link that's executed when you click on the menu (which you can see either in the menu builder, or at the bottom of your browser just before you press the link) _exactly_ the same as when you click on the link in a report (again, you'll see the URL displayed at the bottom of the browser)? And if you key in the URL(s) directly, do you see the same behavior?
Which browser(s) have you tried this on? Do you get the same results in, for example, Firefox?
- Bryan Shumsky
At 21 OCT 2012 01:06PM Bill North wrote:
HI Bryan,
Yes the link in both cases is called as an O4W procedure. I have been using chrome but have retested using Firefox and the problem is the same.
Regards
Bill
At 22 OCT 2012 12:53AM bshumsky wrote:
HI Bryan,
Yes the link in both cases is called as an O4W procedure. I have been using chrome but have retested using Firefox and the problem is the same.
Regards
Bill
Well, gee, you're not giving me too much to go on, are you?
![]()
At this point, I think the thing to try is to write a tiny O4W routine that just displayed a set of tabs, and see if that works - both when called "stand alone" and from your menu. If it does work from both places, then we will have to go through your failing routine, commenting out different sections, until we determine what might be messing up.
If the simple routine _doesn't_ work in both places, then maybe we have to look at the menu to see if _it's_ somehow causing the problem.
I did just think of something else to look at, actually - maybe it's related to the 'template' that you're using (the HTML document that the O4W dynamic content is getting inserted into)? When you call the routine "stand alone", does it use the same template as when you're calling it from the menu? If you change which template is being used, does it make a difference in the behavior? In the template that's being used for the menu, what tag are you using for the menu - %MENU%? %MENU-V%? %MENU-H%?
Thanks,
- Bryan Shumsky
At 22 OCT 2012 07:54AM Bill North wrote:
Hi Bryan,
As you suggested I created a form procedure which only displayed tabs, this gave me the problem no matter which way I called it. I then tried changing the registration details and this worked! What I did was to assign no menu to the form procedure when registering it this meant that I got regular tabs, if I assigned a menu then I got the list. I am unsure as to how this relates to the display of the tab, but at least I now have a solution.
Thanks again for all your help in tracking this problem down.
Bill