Wednesday, July 18, 2018

#1 2005-07-04 06:48:51 am

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

Table and drag`n drop and reorder?

I`m having some problems with with a table. I have a table where you can drag`n drop InDesignfiles. But I also whant to be able to reorder the files. Does anyone have any idea how to solve this?


One mans trash is another mans treasure

Offline

 

#2 2005-07-06 02:09:51 am

kel
Member
Registered: 2002-11-20
Posts: 2031

Re: Table and drag`n drop and reorder?

Hi creator,

I think you need to set the contents of the data cells of the rows. First, you would store the contents of the data cells of data row "a". Then you would set the contents of data row "a" to the contents of data row "b". Then set the contents of  data cells of data row "b" to the stored contents of data cells of data row "a". This would switch the data of data rows "a" and "b".

gl,


Kel

Offline

 

#3 2005-07-06 08:12:10 am

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

Re: Table and drag`n drop and reorder?

Well I know that you can enable reorder in a table like this:
set allows reordering of table view "myTableview" of scroll view "myScrollview"

But this fails because I use "drag`n drop". I`m guessing it has something to do with the "tell myObject to register drag types{"file names"}"?


One mans trash is another mans treasure

Offline

 

#4 2005-07-06 09:19:42 pm

kel
Member
Registered: 2002-11-20
Posts: 2031

Re: Table and drag`n drop and reorder?

Hi,

I think the allows reordering pertains to columns.

When you drop "file names", they are placed at the end of theDataSource. Then, to move them to a certain row you need to get the cell contents and switch.

This is the only way I found to do this.

gl,


Kel

Offline

 

#5 2005-07-07 02:05:09 am

Qwerty Denzel
Member
Registered: 2005-06-11
Posts: 337

Re: Table and drag`n drop and reorder?

I want a table like the one in the International pref pane, where you can set your preferred order of languages (by dragging).

Offline

 

#6 2010-11-08 07:19:48 am

marlon4417
Member
From:: NJ
Registered: 2007-11-28
Posts: 62

Re: Table and drag`n drop and reorder?

Hello Trash Man,

Did  you figure this out?  I have a situation similar to yours where I drag a set of files onto a table and then need to reorder the files within the table.  Kel mentioned storing the contents of the data cell - can you show the syntax for this?

thanks,
Marlon

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)