Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Mon Jul 15, 2019 11:04 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Java error changing column widths
PostPosted: Tue Apr 02, 2013 3:54 am 
Offline

Joined: Thu Sep 13, 2012 4:33 pm
Posts: 18
When I change the column widths to uneven columns using numbers separated by comma's I get a java error as follows:

Could not execute returned javascript: Unexpected EOF
Source: var langdir = document.getElementsByTagName('body')[0]; if(langdir) { langdir.removeAttribute('dir'); }
var langdir = document.getElementsByTagName('body')[0]; if(langdir) { langdir.setAttribute('lang','en-us'); }
new listbox('LomJyhQK',[]);
RS.controls['LomJyhQK'].setEnabled(true);
RS.controls['LomJyhQK'].setColumnWidths('44,5,287,5,125,5,95

You can see that the quote and closing bracket are missing. This seems to be a problem with the web control definition. The column widths add up to 1 less than the list width (I changed that deliberately just in case that was the issue).


Top
 Profile  
Reply with quote  
 Post subject: Re: Java error changing column widths
PostPosted: Tue Apr 02, 2013 4:04 am 
Offline

Joined: Thu Sep 13, 2012 4:33 pm
Posts: 18
I confirmed this by putting a comma and closing bracket on the end of the list of column widths in the list box properties, which did not give the error message..

However the column widths when run also differ from the column widths in the editor (which are correct).


Top
 Profile  
Reply with quote  
 Post subject: Re: Java error changing column widths
PostPosted: Tue Apr 02, 2013 4:12 am 
Offline

Joined: Thu Sep 13, 2012 4:33 pm
Posts: 18
When you deselect HasHeading in the control properties you lose the columns altogether.

OOPS....


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group