close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Insert number into sort field.

Thread began 6/09/2011 2:13 am by enquiry272230 | Last modified 6/10/2011 4:00 pm by Jason Byrnes | 750 views | 3 replies |

enquiry272230

Insert number into sort field.

HI,

I have a iQuery drag and drop script that works really well to re-order the rows in a database table, so I would like to use it for the "items" table management, to update the location of catalog items.

The only issue at the moment is that:
When entering a new record into the items table, I would like the next higher number in the sort field entered automatically.

I am doing it manually at the moment.

To further complicate the issue, I am using the "Multiple Record Inserts" behaviour.

It would be brilliant if this can be done

Sign in to reply to this post

enquiry272230

I have figured out a method of inserting the next higher number from the items table sort field data into the insert form field "sort".

I set up a separate recordset with the following select query:
SELECT MAX(sort) +1 FROM items

And then bound the new recordset data to the insert form field "sort"

If it was a single record insert, it would be OK.
Unfortunately it puts the same number into all of the multiple record inserts repeated fields.

Therefore I need it to increment based on the number of repeat regions in the multiple insert records behavior.

Sign in to reply to this post

enquiry272230

Anny ideas on achieving the above would be appreciated.

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of your page so I can take a look at the code to figure something out.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...