[Grid Control] Issue with First Grid Table ID

Posted by Rollbase User on 24-Jan-2012 03:33

Hi Pavel, Since we added the ability to add multiple Grid Tables to an Object's Pages, We've noticed that while testing on Rollbase.com, we encountered significant issues with the new ID naming convention of the Grid Tables. Current: First Grid's ID = rbi_gridTable_0 Previous: First Grid's ID = rbi_gridTable Screenshot:  All of our previous scripts calling the document.getElementById('rbi_gridTable') must now be edited to inherit the new naming convention. The problem with this is we can't scale how many zones we would have to edit and re-test, hence we haven't pushed our upgrade yet. Apart from our Private Instance, I was also worried about the Rollbase.com clients if ever they used a code similar to the ours below:

All Replies

Posted by Admin on 24-Jan-2012 10:02

I afraid you have to modify your scripts now.

Posted by Admin on 25-Jan-2012 22:10

Hi

It might be taxing for us to have to locate all our scripts which used this call, might we instead have the option to choose whether our pages use multi grids or just single grid layout wherein if we select single it will revert back to the old layout and ID? Also for the convenience of the other users :-)



Thanks

Martin Piscoso

Rollbase ph



Posted by Admin on 25-Jan-2012 22:36

Try change ID using JavaScript. Sorry for inconvenience.

Posted by Admin on 25-Jan-2012 23:00

OK thanks for the reply

Posted by Admin on 26-Jan-2012 12:46

You can write a function to retrieve grid's element. In this function try both old and new IDs.



You will benefit from having multiple grids on the page, just as the rest of our customers.

Posted by Admin on 26-Jan-2012 13:53

Ya we are already in the process of fixing our scripts :-)

Posted by Admin on 26-Jan-2012 18:24

Actually the edit is not that big a deal, we just have to change 'rbi_gridTable' to 'rbi_gridTable_0', the hard part is identifying where we put them haha ^_^



Anyway - Thank you very much for your support,

Piscoso Martin

Rollbase PH

This thread is closed