close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
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 5:35 am by sfj6167 | Last modified 8/22/2012 9:56 am by sfj6167 | 806 views | 11 replies

CraigRBeta Tester

Hi Bison,
sorry to keep asking questions, but I just want to be clear as to your objectives.
From your table and data, I assume that a salesperson can be created by an admin (eg salesperson with UserID 2), or a dealer (eg salesperson with UserID 4).
You want to link salespersons with the dealer who inserted the record, (what about if salesperson was created by an admin ?)
I am trying to work out why you have 2 separate fields recording FH_id and SA_id.
Am I correct in saying that the only time a value is stored in SA_id, is when the user is a salesperson, and that the only time a value is stored in FH_id is when the user is a dealer or a salesperson, (where the userid of the dealer inserting the record is stored)
What is the purpose of the UserGroupID, does this identify admins/dealers/salespersons ?

If I am logged in, my userid should be stored as a session value.
So If I am a dealer, when I create a salesperson, my userid can also be stored in the record, so you can identify which salespersons I added/

changing the trigger conditions.

When you add an insert record behaviour, the trigger is typicaly something like..

<?php if (isset($_POST["Insert"]) || isset($_POST["Insert_x"]))  {
[[insert code block]]
} ?>



what you can do is change the parameters of the &#8216;if&#8217; statement so that the insert code is only triggered if (for example) the value of a posted text field equals a desired value. If the criteria is not met, the trigger will not fire.

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