close ad
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Userid inserts into different user table fields

Thread began 8/20/2012 2:35 am by sfj6167 | Last modified 8/22/2012 6:56 am by sfj6167 | 2103 views | 11 replies


Hi craig

I`ve attached the db table users.

What I need to do is this:

admins job is to be able to create dealers,superusers and admins.

If he creates superusers and admins, the groupid is suffecient, and works as it should.

if he creates a dealer
on insert the about to be created userID should be inserted into FH_id (Thats the part I dont know how to do)

That way we can always make querys against dealers...

On seperate Insert,update,results,search pages for dealers I need to do this:

Dealer can only create sales persons.
On insert of a new dealer the about to be created userID should be inserted into SA_id (Thats the part I dont know how to do)
On the same insert, since its a dealer, and he is logged in, I need to insert the usersession from the dealer into the about to be created salespersons FH_id. (Thats the part I dont know how to do)

I made a user exampel in the db, so you can see what I mean..

Dealer with id3 has created salesperson(id4), so when he does that, the row for salesperson should have dealers id into the FH_id and salespersons own id into the SA_id.

This way we can easily create quaries against dealers and there attached salespersons...

Also could you explain how to make a trigger that would on conditions trigger the different insert server behaviours...


Attached Files

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





Ease of use


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...