Page 1 of 1

Error on loading

Posted: Wed Jan 28, 2015 1:16 pm
by Lagi Pittas
Hi

I downloaded rgrid 1.6 I loaded it into the latest commercial stable edition on a Mac.

If I click on directory that works. As soon as I click on demo I get this error

"button "rGridBehavior": execution error at line 4389 (Chunk: no such object), char 12"


if there is a grp id tContainerID then
put the text of fld "cellField" of grp id tContainerID into tText <<<-------------- line 4389
end if

I tried running iot on an older the community edition on a PC (v 7.0.0) - it gives me exactly the same problerm.

I managed to copy a control to a mainstack but when I click on that control again the same message.

Hope someone can help

KIndest Regards Lagi

Re: Error on loading

Posted: Fri Jan 30, 2015 6:05 pm
by wilstrand
Hi Lagi.

I confirm the issue you describe when using LC 7. Please try an earlier LC version. I'm using 6.7.2 rc.2 atm and rGrid works fine on that.

Kind regards

Mats

Re: Error on loading

Posted: Mon Feb 02, 2015 1:05 pm
by Lagi Pittas
Hi Mats,

Is the problem possible to work around easily or has livecode broken it for good?

I really don't want to have different versions of livecode running - will you be fixing it soon or at least give me an idea what it could be?

Anybody in the livecode team got any idea what has been broken?

Thanks

Lagi

Re: Error on loading

Posted: Tue May 05, 2015 1:12 pm
by djkesler
Mats,

This problem with rGrid is preventing me from moving a large system to v7. Have you looked at the problem with a view to resolve it or is rGrid dead to anyone using a higher version the the 6.xx?

I really like rGrid, it is a great alternative to the complexity of Data Grid. If there is a structural change in 7 that has broken it, you as the developer would be the only one in a position to raise the issue with the LC team to find a resolution for your customer's sake, it seems to me.

I can image that you are very busy, but this problem is causing a lot of distress to those of us who have bought your product and used it as an building block to our work.

Thanks,

David K

Re: Error on loading

Posted: Tue May 19, 2015 2:03 pm
by Lagi Pittas
HI

Well Matts is it dead for versions greater than 6.x?

I decided today to use version 6.x anyways because other than unicode it has everything in 7.x (unless you know different)

Lagi

Re: Error on loading

Posted: Sun Sep 27, 2015 5:09 pm
by livecodeali
Just came across this thread.

The relevant 7.0 bug appears to be that grp id empty seems to evaluate to the same a grp id 0 in 7.0, whereas it's a parsing error in 6.7.

So a workaround would be to change the relevant bit to

if tContainerID is not empty and there is a grp id tContainerID then
put the text of fld "cellField" of grp id tContainerID into tText <<<-------------- line 4389
end if

Bug reported here:
http://quality.runrev.com/show_bug.cgi?id=16033

Re: Error on loading

Posted: Thu Nov 05, 2015 5:29 pm
by djkesler
I have isolated a bug in the refactored engine as it regards rGrid 1.6.

The bug number is 16033.

The relevant area of code is found in the rGridBehavior button of the rGridEngine:

Starting line number 4387:
put cellIDToContainerID(tOldCellID) into tContainerID
if there is a grp id tContainerID then
put the text of fld "cellField" of grp id tContainerID into tText
end if


I added some code that made it work at 4387 as ’tContainerID’ came back from the function containing its name, ’tContainerID’

put cellIDToContainerID(tOldCellID) into tContainerID
if isnumber(tContainerID) then
if there is a grp id tContainerID then
put the text of fld "cellField" of grp id tContainerID into tText
end if
end if

Setting the variable tContainerID to Local explicitly and/or the function cellIDtoContainerID returning nothing cause the
‘if there is a grp id tContainerID then’ to evaluate to TRUE.

The additional ’isnumber’ test fixes it.

I am confident that the team will stomp this bug at some point, but a couple of extra lines of code that will not break a fixed engine, is good for now.

There had been other problems, but with lc 7.1.1(rc2) and lc 8.0(dp8) and the addition test I have added above rGrid 1.6 seems to be working almost 100%. There is still some strangeness that I can’t track down where a ‘render grid’ render sets the ‘backcolor’ of the the menu button (tabbed) to the color of the rgrid grid line color. Very strange. I can live with that by just changing the ‘backcolor’ to match.

Hope this helps. :)
David Kesler