Dragging a record from one list page to another?

13 posts by 2 authors in: Forums > CMS Builder
Last Post: July 14, 2008   (RSS)

By gkornbluth - July 12, 2008

Maybe it's just late, but I'm having trouble dragging a record from one list page to another.

The new record should be somewhere in the first page (of 100) records but I can't get it to go from position 115, which is on the second page, to position 10, which is on the first page.

Any ideas would be helpful.

Thanks

jery Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] Dragging a record from one list page to another?

By Dave - July 13, 2008

Hi Jery,

I see what you mean. We'll have to figure out a solution for that. How many records do you anticipate having in that section? Is it possible to sort by any other field?

Let me know some more details and we'll see what we can do to help!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Dragging a record from one list page to another?

By gkornbluth - July 13, 2008 - edited: July 13, 2008

Thanks for addressing this issue.

There could be thousands of records for any given application. In my case, which is a membership directory, logic dictates sorting by last name. In the case of a product list, logic might dictate sorting by product number.

It's also a bit of a pain when after a record is modified, the list resets itself back to the top, forcing you to go through a number of steps just to modify the the next record on the list.

It would be nice if the list did not reset each time and also if the number of records displayed on a page did not reset to the default of 25 after each record modification.


Thanks,

Jerry
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] Dragging a record from one list page to another?

By Dave - July 14, 2008

You might want to hard code searching based on one of the fields rather than have drag sorting. What I can do for drag sorting is add another larger value or value such as 33 to let you drag between multiples of 100.

If looks like the code that saves the last search, perpage, and page number value got broken in a recent release. What version are you on? I can send you an update to fix that - or we'll have it fixed in v1.20.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Dragging a record from one list page to another?

By gkornbluth - July 14, 2008

I'm on 1.18 but I'm due to go live this week and this is a sore point with my client.

Thanks
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] Dragging a record from one list page to another?

By Dave - July 14, 2008

Hi Jerry,

Try backing up, and then replacing, this file with the attached version:

/lib/menus/default/actionHandler.php

This should fix it so the last settings (perpage, keyword, page num) will be saved between viewings.

Next, if you edit (backup first) this file:
/lib/menus/default/list.php

You can add a new value to the perpage list. Just search for "100" and then add the code in red:

<option <?php selectedIf($listDetails['perPage'], '99')?>>99</option>
<option <?php selectedIf($listDetails['perPage'], '100')?>>100</option>

And that will allow you to get the record on a page where you can drag it past 100.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com
Attachments:

actionhandler_001.php 5K

Re: [Dave] Dragging a record from one list page to another?

By gkornbluth - July 14, 2008

I backed up the file actionHandler.php and replaced it with the new one that you sent.

When I went to modify a record I got the following error message...

Fatal error: Call to undefined function __() in /hsphere/local/home/apbcweb/artistsofpalmbeachcounty.org/cmsAdmin/lib/menus/default/actionHandler.php on line 40

J
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] Dragging a record from one list page to another?

By Dave - July 14, 2008

Hmm, you'll need to upgrade to v1.19 then before applying the patched file. Sorry, I thought you were on 1.19 already.

Upgrade to 1.19 and then try again and it should work fine.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Dragging a record from one list page to another?

By gkornbluth - July 14, 2008

I hate to be picky, but with all the updates and upgrades going onare these instructions still valid?

http://www.interactivetools.com/docs/cmsbuilder/upgrade.html

The Devil is in the Details...

Thanks,

Jerry
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] Dragging a record from one list page to another?

By gkornbluth - July 14, 2008

never mind... I found the upgrade file in the Zip file
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php