Page 1 of 1

Datagrid help

Posted: Mon Jan 25, 2010 4:59 am
by sturgis
I hope someone can help me with this. I have a datagrid setup as a program launcher list (a dg form). Everything works ok, except for removing entries.

The entry removal code works for all rows except the last. I know I've seen the answer to this problem somewhere but I can't find it.

I've uploaded the stack. Currently it will only work on OS X. IT will create a database file in the Documents folder called sqLauncher.sqldb

To use the stack, simply drag the document or app you wish to add to the launcher list and it will add it and update the database.

To delete from the list, click the X button and it will delete the line and remove the entry from the database.

Deleting a last lone entry doesn't work. Help?
myStack.zip
(5.04 KiB) Downloaded 227 times

Re: Datagrid help

Posted: Mon Jan 25, 2010 4:35 pm
by trevordevore
What Sorts of Things Should I Not Do In Order To Avoid Needless Suffering?

I couldn't locate the deleteLine or checkForEmpty handlers but I'm guessing you are deleting a line/index from within the row behavior script. You either need to use "send in time" or move the mouseUp script to the Data Grid group script.

Re: Datagrid help

Posted: Mon Jan 25, 2010 4:56 pm
by sturgis
Ty ty for helping me stop needlessly suffering! Much appreciated.

Re: Datagrid help

Posted: Mon Jan 25, 2010 6:20 pm
by sturgis
Thanks very much, got it working. I knew I had read about this before, but couldn't find it.

Its working dandy now.