Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 9 of 9 total
Thread TGrid seems to launch error when loading dataset
Fri, Apr 3 2015 12:50 PMPermanent Link

Bruno Larochelle

trying to do all sorts of things with v2

here is something I ran in to (could not find this reported elsewhere, sorry if it is known already)

Simple DB project where I have a TEdit and TGrid connected to a configured dataset. (DBISAM dat -> DBISAM server -> EWB2 server -> my EWB2 application)

when I load the DB (using "database.load"), I get an error, and I think it is coming from the grid (based on the message):

Application error : Object doesn't support property or method "creategridcell"

If I disconnect the TGrid (dataset = ''), then everything works, and my TEdit loads data as expected.

////

I tried the same thing in an EWB1 setup, and the grid loads fine.

////

my code for reference :

database.username := edtUsername.text;
database.password := edtPassword.text;
database.baseURl := 'http://127.0.0.1:8088/datasets';
database.load(tblOffers);

I'm using EWB 2.00 Build 4
Logiciels Bitwise Software
Edmonton, AB, Canada
Sat, Apr 4 2015 4:23 AMPermanent Link

Uli Becker

Bruno,

I reported that to Tim by mail already - don't get an error here (the
app just hangs), but the problem seems to be the same.

Uli
Mon, Apr 6 2015 7:01 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Bruno,

<< here is something I ran in to (could not find this reported elsewhere,
sorry if it is known already) >>

I'm uploading a new build 5 today, so give it a try and see if it fixes the
situation (it should).

Tim Young
Elevate Software
www.elevatesoft.com
Mon, Apr 6 2015 6:14 PMPermanent Link

Bruno Larochelle

hi Tim

Just tried with build 5, but still getting the same behaviour. I did make sure I purged the browser etc, so it appears that the issue may still be there. I also confirmed from the 'About' box that I was indeed using and compling with build 5.

here is what the IE (11) browser is saying, but Chrome also gives a similar message:

...............
var $t = this;
  if ($t.tdataset_fonloaderror)
     $t.tdataset_fonloaderror($t, errormsg);
  else
     throw new Error(errormsg);
[X] Object doesn't property or method 'createcellgrid'   <<<<<<<<<<<<< This is the error the debugger reports
};

webdata_tdataset.$p.doafterload = function()
{
  var $t = this;
  if ($t.tdataset_fafterload)
     $t.tdataset_fafterload($t);
};
.................

hope that helps

regards.. Bruno




"Tim Young [Elevate Software]" wrote:

Bruno,

<< here is something I ran in to (could not find this reported elsewhere,
sorry if it is known already) >>

I'm uploading a new build 5 today, so give it a try and see if it fixes the
situation (it should).

Tim Young
Elevate Software
www.elevatesoft.com
Tue, Apr 7 2015 6:42 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Bruno,

<< Just tried with build 5, but still getting the same behaviour. I did make
sure I purged the browser etc, so it appears that the issue may still be
there. I also confirmed from the 'About' box that I was indeed using and
compling with build 5. >>

Could you please send me the project and database that you're using, along
with the dataset definition ?  You can find the dataset definition here:

C:\Users\<UserName>\AppData\Local\Elevate Software\Elevate Web Builder 2

I just need the section called "DataSet_<YourDataSetName>".

I'll take a look here and see what's going on.

Thanks,

Tim Young
Elevate Software
www.elevatesoft.com
Tue, Apr 7 2015 8:37 AMPermanent Link

Uli Becker

Tim,

maybe that helps: same problem as before here: when I set the dataset of
a TGrid at runtime, it works fine, doing so at design time, the
application hangs after loading the dataset.

Uli
Tue, Apr 7 2015 12:38 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Uli,

<< maybe that helps: same problem as before here: when I set the dataset of
a TGrid at runtime, it works fine, doing so at design time, the application
hangs after loading the dataset. >>

I'm not seeing this here. If you save the project, does it keep doing this
afterwards ?  If so, then please send me the project.

Thanks,

Tim Young
Elevate Software
www.elevatesoft.com
Tue, Apr 7 2015 8:50 PMPermanent Link

Bruno Larochelle

Tim..

Good news.. I figured out what my problem was, while trying to prepare a 'simple' project to demonstrate the issue.

Keep in mind, I was 'fooling around' with a bunch of things, basically trying to 'break' it Smile

Here is what I did, not really intentionally..

I had a configured TDataset connected to a TGrid. Then, because I like to use it while debugging or testing stuff, I threw in a TMultiLineEdit (this is where I pile up my diagnostics etc). What I did not realize at the time is the TGrid took in on as it's parent. (i'm guilty, I put the TMultiLineEdit on top of the grid.. duh)

After that, everything works fine, including adding text to the memo, until you try to load a dataset that is connected to that grid.

So.. note to Bruno.. don't slap a TMultiLineEdit on a grid! Smile

thanks for you help. Now I'm off to the races!

(Uli.. maybe you've put something in/on a Tgrid inadvertently?)

////////////////////////////////////////////

"Tim Young [Elevate Software]" wrote:

I'll take a look here and see what's going on.

Thanks,

Tim Young
Elevate Software
www.elevatesoft.com
Logiciels Bitwise Software
Edmonton, AB, Canada
Thu, Apr 9 2015 12:16 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Bruno,

<< I had a configured TDataset connected to a TGrid. Then, because I like to
use it while debugging or testing stuff, I threw in a TMultiLineEdit (this
is where I pile up my diagnostics etc). What I did not realize at the time
is the TGrid took in on as it's parent. (i'm guilty, I put the
TMultiLineEdit on top of the grid.. duh) >>

Smile Yep, that will do it.  Unfortunately, there's no way to really stop
this since EWB 2 basically allows you to put a control into anything that is
designated a container, and the grid is a container for the grid columns.

Thanks,

Tim Young
Elevate Software
www.elevatesoft.com
Image