Ask a Question related to Dreamweaver AppDev, Design and Development.
-
Andy #1
FAO namcy Gill
Hi Nancy
I've posted my database structure. Hope you can help
re: progress post
Andy Guest
-
Nancy Gill #2
Re: FAO namcy Gill
Okay .. I assume you will have some method for having created a session
variable for the userID on a prior page. On the form page .. create a
Session object in the Data Bindings window and use the same name as the
session variable you created so it will be available for the insert.
Now in creating the form, you will need a recordset to populate the dropdown
menu.
SELECT ProductID, Product_title
FROM Products
and use the form list/menu item where you have the Product_title as the
lable and ProductID as the value for the dropdown items. That will allow
the user to select an item by its name in the dropdown, but insert the
ProductID into your table. The rest of the items going into the Price table
(price appears to be all you have) would be inserted via a text box set to
price. Create a hidden variable within the insert form called user (or
whatever) and the value of the variable will be the session object that is
now available in the data bindings window.
Just so we're clear, this all means that your form is going to have a
list/menu item that drops down the names of the products, a text field where
the user selects the price he wants to charge and a submit botton. Submit
it to a success page or whatever you like.
In the insert record behavior, you will bind the dropdown value to
ProductID, the session variable to UserID, the Price to whatever price you
had in the text box and the Price ID will be autocreated when you insert.
Batta .. bing.
--
Nancy Gill
Team Macromedia Volunteer for Dreamweaver MX/UltraDev
[url]http://www.macromedia.com/go/team/[/url]
Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003)
Technical Editor: DMX 2004: The Complete Reference, DMX 2004: A Beginner's
Guide, Mastering Macromedia Contribute
Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web Development
Nancy Gill Guest
-
Andy #3
Re: FAO namcy Gill
Hi Nancy
Thank you for taking the time to help!
This method would work fine, the problem is that i need to assign all of the
products to the user in one go.
There are over 500 products that the user need assigning to, so using the
dropdown menu method, i would have to select each individual product from
the lsit and then insert it.
Would there be a way of having a 'select all' option in the drop down?
Thanks again
Andy
"Nancy Gill" <nancy@webwish.com> wrote in message
news:d4r4ee$4n6$1@forums.macromedia.com...> Okay .. I assume you will have some method for having created a session
> variable for the userID on a prior page. On the form page .. create a
> Session object in the Data Bindings window and use the same name as the
> session variable you created so it will be available for the insert.
>
> Now in creating the form, you will need a recordset to populate the
> dropdown
> menu.
>
> SELECT ProductID, Product_title
> FROM Products
>
> and use the form list/menu item where you have the Product_title as the
> lable and ProductID as the value for the dropdown items. That will allow
> the user to select an item by its name in the dropdown, but insert the
> ProductID into your table. The rest of the items going into the Price
> table
> (price appears to be all you have) would be inserted via a text box set to
> price. Create a hidden variable within the insert form called user (or
> whatever) and the value of the variable will be the session object that is
> now available in the data bindings window.
>
> Just so we're clear, this all means that your form is going to have a
> list/menu item that drops down the names of the products, a text field
> where
> the user selects the price he wants to charge and a submit botton. Submit
> it to a success page or whatever you like.
>
> In the insert record behavior, you will bind the dropdown value to
> ProductID, the session variable to UserID, the Price to whatever price you
> had in the text box and the Price ID will be autocreated when you insert.
>
> Batta .. bing.
>
>
> --
> Nancy Gill
> Team Macromedia Volunteer for Dreamweaver MX/UltraDev
> [url]http://www.macromedia.com/go/team/[/url]
> Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003)
> Technical Editor: DMX 2004: The Complete Reference, DMX 2004: A
> Beginner's
> Guide, Mastering Macromedia Contribute
> Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web
> Development
>
>
>
>
Andy Guest
-
Nancy Gill #4
Re: FAO namcy Gill
something like Select * FROM Products WHERE userid = MMcolParam and then
set MMcolParam to match the session variable? Sure .. but that would
require the userID to be associated with the products table. You have it
associated with the prices table .. so you could do a join on ProductID (I
think that was common to both tables .. it's been a couple of hectic days
since I looked at this. :)
--
Nancy Gill
Team Macromedia Volunteer for Dreamweaver MX/UltraDev
[url]http://www.macromedia.com/go/team/[/url]
Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003)
Technical Editor: DMX 2004: The Complete Reference, DMX 2004: A Beginner's
Guide, Mastering Macromedia Contribute
Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web Development
"Andy" <AndyjhughesNOSPAM@ntlworld.com> wrote in message
news:d4tfbv$fnu$1@forums.macromedia.com...the> Hi Nancy
> Thank you for taking the time to help!
>
> This method would work fine, the problem is that i need to assign all ofallow> products to the user in one go.
> There are over 500 products that the user need assigning to, so using the
> dropdown menu method, i would have to select each individual product from
> the lsit and then insert it.
>
> Would there be a way of having a 'select all' option in the drop down?
>
> Thanks again
> Andy
>
>
> "Nancy Gill" <nancy@webwish.com> wrote in message
> news:d4r4ee$4n6$1@forums.macromedia.com...> > Okay .. I assume you will have some method for having created a session
> > variable for the userID on a prior page. On the form page .. create a
> > Session object in the Data Bindings window and use the same name as the
> > session variable you created so it will be available for the insert.
> >
> > Now in creating the form, you will need a recordset to populate the
> > dropdown
> > menu.
> >
> > SELECT ProductID, Product_title
> > FROM Products
> >
> > and use the form list/menu item where you have the Product_title as the
> > lable and ProductID as the value for the dropdown items. That willto> > the user to select an item by its name in the dropdown, but insert the
> > ProductID into your table. The rest of the items going into the Price
> > table
> > (price appears to be all you have) would be inserted via a text box setis> > price. Create a hidden variable within the insert form called user (or
> > whatever) and the value of the variable will be the session object thatSubmit> > now available in the data bindings window.
> >
> > Just so we're clear, this all means that your form is going to have a
> > list/menu item that drops down the names of the products, a text field
> > where
> > the user selects the price he wants to charge and a submit botton.you> > it to a success page or whatever you like.
> >
> > In the insert record behavior, you will bind the dropdown value to
> > ProductID, the session variable to UserID, the Price to whatever priceinsert.> > had in the text box and the Price ID will be autocreated when you>> >
> > Batta .. bing.
> >
> >
> > --
> > Nancy Gill
> > Team Macromedia Volunteer for Dreamweaver MX/UltraDev
> > [url]http://www.macromedia.com/go/team/[/url]
> > Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003)
> > Technical Editor: DMX 2004: The Complete Reference, DMX 2004: A
> > Beginner's
> > Guide, Mastering Macromedia Contribute
> > Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web
> > Development
> >
> >
> >
> >
>
>
Nancy Gill Guest
-
Paul Whitham TMM #5
Re: FAO namcy Gill
Nancy
What he is trying to do is create a new record for each product in the
prices table for the new client that he has added. He needs to read the
recordset of products and loop an insert statement in it. I sent him some
code but he was not able to use it.
--
Regards
Paul Whitham
Macromedia Certified Professional for Dreamweaver MX2004
Valleybiz Internet Design
[url]www.valleybiz.net[/url]
Team Macromedia Volunteer for Ultradev/Dreamweaver MX
[url]www.macromedia.com/support/forums/team_macromedia[/url]
"Nancy Gill" <nancy@webwish.com> wrote in message
news:d53r8h$p51$1@forums.macromedia.com...Beginner's> something like Select * FROM Products WHERE userid = MMcolParam and then
> set MMcolParam to match the session variable? Sure .. but that would
> require the userID to be associated with the products table. You have it
> associated with the prices table .. so you could do a join on ProductID (I
> think that was common to both tables .. it's been a couple of hectic days
> since I looked at this. :)
>
>
> --
> Nancy Gill
> Team Macromedia Volunteer for Dreamweaver MX/UltraDev
> [url]http://www.macromedia.com/go/team/[/url]
> Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003)
> Technical Editor: DMX 2004: The Complete Reference, DMX 2004: ADevelopment> Guide, Mastering Macromedia Contribute
> Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Webthe>
> "Andy" <AndyjhughesNOSPAM@ntlworld.com> wrote in message
> news:d4tfbv$fnu$1@forums.macromedia.com...> the> > Hi Nancy
> > Thank you for taking the time to help!
> >
> > This method would work fine, the problem is that i need to assign all of> > products to the user in one go.
> > There are over 500 products that the user need assigning to, so usingfrom> > dropdown menu method, i would have to select each individual productsession> > the lsit and then insert it.
> >
> > Would there be a way of having a 'select all' option in the drop down?
> >
> > Thanks again
> > Andy
> >
> >
> > "Nancy Gill" <nancy@webwish.com> wrote in message
> > news:d4r4ee$4n6$1@forums.macromedia.com...> > > Okay .. I assume you will have some method for having created athe> > > variable for the userID on a prior page. On the form page .. create a
> > > Session object in the Data Bindings window and use the same name asthe> > > session variable you created so it will be available for the insert.
> > >
> > > Now in creating the form, you will need a recordset to populate the
> > > dropdown
> > > menu.
> > >
> > > SELECT ProductID, Product_title
> > > FROM Products
> > >
> > > and use the form list/menu item where you have the Product_title asset> allow> > > lable and ProductID as the value for the dropdown items. That will> > > the user to select an item by its name in the dropdown, but insert the
> > > ProductID into your table. The rest of the items going into the Price
> > > table
> > > (price appears to be all you have) would be inserted via a text box(or> to> > > price. Create a hidden variable within the insert form called userthat> > > whatever) and the value of the variable will be the session object> is> Submit> > > now available in the data bindings window.
> > >
> > > Just so we're clear, this all means that your form is going to have a
> > > list/menu item that drops down the names of the products, a text field
> > > where
> > > the user selects the price he wants to charge and a submit botton.> you> > > it to a success page or whatever you like.
> > >
> > > In the insert record behavior, you will bind the dropdown value to
> > > ProductID, the session variable to UserID, the Price to whatever price> insert.> > > had in the text box and the Price ID will be autocreated when you>> >> > >
> > > Batta .. bing.
> > >
> > >
> > > --
> > > Nancy Gill
> > > Team Macromedia Volunteer for Dreamweaver MX/UltraDev
> > > [url]http://www.macromedia.com/go/team/[/url]
> > > Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003)
> > > Technical Editor: DMX 2004: The Complete Reference, DMX 2004: A
> > > Beginner's
> > > Guide, Mastering Macromedia Contribute
> > > Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web
> > > Development
> > >
> > >
> > >
> > >
> >
> >
>
Paul Whitham TMM Guest
-
Andy #6
Re: FAO namcy Gill
Hi Nancy - Paul
I've now got Paul's code to partly work.
After inserting the new retailer the page redirects to the page with Paul's
code in it.
One product is also inserted but not all of them.
Looks like it's nearly there, but why is it only inserting one product for
the new retailer?
Thanks
Andy ( I know I'm a pain)
"Paul Whitham TMM" <paul@valleybiz.net> wrote in message
news:d544fe$62m$1@forums.macromedia.com...> Nancy
>
> What he is trying to do is create a new record for each product in the
> prices table for the new client that he has added. He needs to read the
> recordset of products and loop an insert statement in it. I sent him some
> code but he was not able to use it.
>
>
>
> --
> Regards
>
> Paul Whitham
> Macromedia Certified Professional for Dreamweaver MX2004
> Valleybiz Internet Design
> [url]www.valleybiz.net[/url]
>
> Team Macromedia Volunteer for Ultradev/Dreamweaver MX
> [url]www.macromedia.com/support/forums/team_macromedia[/url]
>
> "Nancy Gill" <nancy@webwish.com> wrote in message
> news:d53r8h$p51$1@forums.macromedia.com...> Beginner's>> something like Select * FROM Products WHERE userid = MMcolParam and then
>> set MMcolParam to match the session variable? Sure .. but that would
>> require the userID to be associated with the products table. You have it
>> associated with the prices table .. so you could do a join on ProductID
>> (I
>> think that was common to both tables .. it's been a couple of hectic days
>> since I looked at this. :)
>>
>>
>> --
>> Nancy Gill
>> Team Macromedia Volunteer for Dreamweaver MX/UltraDev
>> [url]http://www.macromedia.com/go/team/[/url]
>> Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003)
>> Technical Editor: DMX 2004: The Complete Reference, DMX 2004: A> Development>> Guide, Mastering Macromedia Contribute
>> Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web> the>>
>> "Andy" <AndyjhughesNOSPAM@ntlworld.com> wrote in message
>> news:d4tfbv$fnu$1@forums.macromedia.com...>> the>> > Hi Nancy
>> > Thank you for taking the time to help!
>> >
>> > This method would work fine, the problem is that i need to assign all
>> > of>> > products to the user in one go.
>> > There are over 500 products that the user need assigning to, so using> from>> > dropdown menu method, i would have to select each individual product> session>> > the lsit and then insert it.
>> >
>> > Would there be a way of having a 'select all' option in the drop down?
>> >
>> > Thanks again
>> > Andy
>> >
>> >
>> > "Nancy Gill" <nancy@webwish.com> wrote in message
>> > news:d4r4ee$4n6$1@forums.macromedia.com...
>> > > Okay .. I assume you will have some method for having created a> the>> > > variable for the userID on a prior page. On the form page .. create
>> > > a
>> > > Session object in the Data Bindings window and use the same name as> the>> > > session variable you created so it will be available for the insert.
>> > >
>> > > Now in creating the form, you will need a recordset to populate the
>> > > dropdown
>> > > menu.
>> > >
>> > > SELECT ProductID, Product_title
>> > > FROM Products
>> > >
>> > > and use the form list/menu item where you have the Product_title as> set>> allow>> > > lable and ProductID as the value for the dropdown items. That will>> > > the user to select an item by its name in the dropdown, but insert
>> > > the
>> > > ProductID into your table. The rest of the items going into the
>> > > Price
>> > > table
>> > > (price appears to be all you have) would be inserted via a text box> (or>> to>> > > price. Create a hidden variable within the insert form called user> that>> > > whatever) and the value of the variable will be the session object>>> is>> Submit>> > > now available in the data bindings window.
>> > >
>> > > Just so we're clear, this all means that your form is going to have a
>> > > list/menu item that drops down the names of the products, a text
>> > > field
>> > > where
>> > > the user selects the price he wants to charge and a submit botton.>> you>> > > it to a success page or whatever you like.
>> > >
>> > > In the insert record behavior, you will bind the dropdown value to
>> > > ProductID, the session variable to UserID, the Price to whatever
>> > > price>> insert.>> > > had in the text box and the Price ID will be autocreated when you>>>> > >
>> > > Batta .. bing.
>> > >
>> > >
>> > > --
>> > > Nancy Gill
>> > > Team Macromedia Volunteer for Dreamweaver MX/UltraDev
>> > > [url]http://www.macromedia.com/go/team/[/url]
>> > > Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003)
>> > > Technical Editor: DMX 2004: The Complete Reference, DMX 2004: A
>> > > Beginner's
>> > > Guide, Mastering Macromedia Contribute
>> > > Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web
>> > > Development
>> > >
>> > >
>> > >
>> > >
>> >
>> >
>> >
>>
>
>
Andy Guest
-
Nancy Gill #7
Re: FAO namcy Gill
ohhh .. I see.
"Paul Whitham TMM" <paul@valleybiz.net> wrote in message
news:d544fe$62m$1@forums.macromedia.com...then> Nancy
>
> What he is trying to do is create a new record for each product in the
> prices table for the new client that he has added. He needs to read the
> recordset of products and loop an insert statement in it. I sent him some
> code but he was not able to use it.
>
>
>
> --
> Regards
>
> Paul Whitham
> Macromedia Certified Professional for Dreamweaver MX2004
> Valleybiz Internet Design
> [url]www.valleybiz.net[/url]
>
> Team Macromedia Volunteer for Ultradev/Dreamweaver MX
> [url]www.macromedia.com/support/forums/team_macromedia[/url]
>
> "Nancy Gill" <nancy@webwish.com> wrote in message
> news:d53r8h$p51$1@forums.macromedia.com...> > something like Select * FROM Products WHERE userid = MMcolParam andit> > set MMcolParam to match the session variable? Sure .. but that would
> > require the userID to be associated with the products table. You have(I> > associated with the prices table .. so you could do a join on ProductIDdays> > think that was common to both tables .. it's been a couple of hecticof> Beginner's> > since I looked at this. :)
> >
> >
> > --
> > Nancy Gill
> > Team Macromedia Volunteer for Dreamweaver MX/UltraDev
> > [url]http://www.macromedia.com/go/team/[/url]
> > Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003)
> > Technical Editor: DMX 2004: The Complete Reference, DMX 2004: A> Development> > Guide, Mastering Macromedia Contribute
> > Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web> >
> > "Andy" <AndyjhughesNOSPAM@ntlworld.com> wrote in message
> > news:d4tfbv$fnu$1@forums.macromedia.com...> > > Hi Nancy
> > > Thank you for taking the time to help!
> > >
> > > This method would work fine, the problem is that i need to assign alla> the> > the> > > products to the user in one go.
> > > There are over 500 products that the user need assigning to, so using> from> > > dropdown menu method, i would have to select each individual product> session> > > the lsit and then insert it.
> > >
> > > Would there be a way of having a 'select all' option in the drop down?
> > >
> > > Thanks again
> > > Andy
> > >
> > >
> > > "Nancy Gill" <nancy@webwish.com> wrote in message
> > > news:d4r4ee$4n6$1@forums.macromedia.com...
> > > > Okay .. I assume you will have some method for having created a> > > > variable for the userID on a prior page. On the form page .. createthe> the> > > > Session object in the Data Bindings window and use the same name as> the> > > > session variable you created so it will be available for the insert.
> > > >
> > > > Now in creating the form, you will need a recordset to populate the
> > > > dropdown
> > > > menu.
> > > >
> > > > SELECT ProductID, Product_title
> > > > FROM Products
> > > >
> > > > and use the form list/menu item where you have the Product_title as> > allow> > > > lable and ProductID as the value for the dropdown items. That will> > > > the user to select an item by its name in the dropdown, but insertPrice> > > > ProductID into your table. The rest of the items going into thea> set> > > > table
> > > > (price appears to be all you have) would be inserted via a text box> (or> > to> > > > price. Create a hidden variable within the insert form called user> that> > > > whatever) and the value of the variable will be the session object> > is> > > > now available in the data bindings window.
> > > >
> > > > Just so we're clear, this all means that your form is going to havefield> > > > list/menu item that drops down the names of the products, a textprice> > Submit> > > > where
> > > > the user selects the price he wants to charge and a submit botton.> > > > it to a success page or whatever you like.
> > > >
> > > > In the insert record behavior, you will bind the dropdown value to
> > > > ProductID, the session variable to UserID, the Price to whatever>> > you> > insert.> > > > had in the text box and the Price ID will be autocreated when you> >> > > >
> > > > Batta .. bing.
> > > >
> > > >
> > > > --
> > > > Nancy Gill
> > > > Team Macromedia Volunteer for Dreamweaver MX/UltraDev
> > > > [url]http://www.macromedia.com/go/team/[/url]
> > > > Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003)
> > > > Technical Editor: DMX 2004: The Complete Reference, DMX 2004: A
> > > > Beginner's
> > > > Guide, Mastering Macromedia Contribute
> > > > Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web
> > > > Development
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
>
Nancy Gill Guest
-
Nancy Gill #8
Re: FAO namcy Gill
> Looks like it's nearly there, but why is it only inserting one product for
> the new retailer?
You didn't loop it? i.e. repeat region?
Nancy
Nancy Gill Guest
-
Paul Whitham TMM #9
Re: FAO namcy Gill
Post me the code as it is now, because as Nancy has says it is not looping
the recordset.
--
Regards
Paul Whitham
Macromedia Certified Professional for Dreamweaver MX2004
Valleybiz Internet Design
[url]www.valleybiz.net[/url]
Team Macromedia Volunteer for Ultradev/Dreamweaver MX
[url]www.macromedia.com/support/forums/team_macromedia[/url]
"Andy" <AndyjhughesNOSPAM@ntlworld.com> wrote in message
news:d57i8r$1em$1@forums.macromedia.com...Paul's> Hi Nancy - Paul
> I've now got Paul's code to partly work.
> After inserting the new retailer the page redirects to the page withsome> code in it.
> One product is also inserted but not all of them.
>
> Looks like it's nearly there, but why is it only inserting one product for
> the new retailer?
>
> Thanks
> Andy ( I know I'm a pain)
>
>
>
>
>
> "Paul Whitham TMM" <paul@valleybiz.net> wrote in message
> news:d544fe$62m$1@forums.macromedia.com...> > Nancy
> >
> > What he is trying to do is create a new record for each product in the
> > prices table for the new client that he has added. He needs to read the
> > recordset of products and loop an insert statement in it. I sent himthen> > code but he was not able to use it.
> >
> >
> >
> > --
> > Regards
> >
> > Paul Whitham
> > Macromedia Certified Professional for Dreamweaver MX2004
> > Valleybiz Internet Design
> > [url]www.valleybiz.net[/url]
> >
> > Team Macromedia Volunteer for Ultradev/Dreamweaver MX
> > [url]www.macromedia.com/support/forums/team_macromedia[/url]
> >
> > "Nancy Gill" <nancy@webwish.com> wrote in message
> > news:d53r8h$p51$1@forums.macromedia.com...> >> something like Select * FROM Products WHERE userid = MMcolParam andit> >> set MMcolParam to match the session variable? Sure .. but that would
> >> require the userID to be associated with the products table. You havedays> >> associated with the prices table .. so you could do a join on ProductID
> >> (I
> >> think that was common to both tables .. it's been a couple of hecticdown?> > Beginner's> >> since I looked at this. :)
> >>
> >>
> >> --
> >> Nancy Gill
> >> Team Macromedia Volunteer for Dreamweaver MX/UltraDev
> >> [url]http://www.macromedia.com/go/team/[/url]
> >> Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003)
> >> Technical Editor: DMX 2004: The Complete Reference, DMX 2004: A> > Development> >> Guide, Mastering Macromedia Contribute
> >> Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web> > the> >>
> >> "Andy" <AndyjhughesNOSPAM@ntlworld.com> wrote in message
> >> news:d4tfbv$fnu$1@forums.macromedia.com...
> >> > Hi Nancy
> >> > Thank you for taking the time to help!
> >> >
> >> > This method would work fine, the problem is that i need to assign all
> >> > of
> >> the
> >> > products to the user in one go.
> >> > There are over 500 products that the user need assigning to, so using> > from> >> > dropdown menu method, i would have to select each individual product> >> > the lsit and then insert it.
> >> >
> >> > Would there be a way of having a 'select all' option in the dropcreate> > session> >> >
> >> > Thanks again
> >> > Andy
> >> >
> >> >
> >> > "Nancy Gill" <nancy@webwish.com> wrote in message
> >> > news:d4r4ee$4n6$1@forums.macromedia.com...
> >> > > Okay .. I assume you will have some method for having created a> >> > > variable for the userID on a prior page. On the form page ..insert.> > the> >> > > a
> >> > > Session object in the Data Bindings window and use the same name as> >> > > session variable you created so it will be available for thea> > the> >> > >
> >> > > Now in creating the form, you will need a recordset to populate the
> >> > > dropdown
> >> > > menu.
> >> > >
> >> > > SELECT ProductID, Product_title
> >> > > FROM Products
> >> > >
> >> > > and use the form list/menu item where you have the Product_title as> > set> >> > > lable and ProductID as the value for the dropdown items. That will
> >> allow
> >> > > the user to select an item by its name in the dropdown, but insert
> >> > > the
> >> > > ProductID into your table. The rest of the items going into the
> >> > > Price
> >> > > table
> >> > > (price appears to be all you have) would be inserted via a text box> > (or> >> to
> >> > > price. Create a hidden variable within the insert form called user> > that> >> > > whatever) and the value of the variable will be the session object> >> is
> >> > > now available in the data bindings window.
> >> > >
> >> > > Just so we're clear, this all means that your form is going to have>> >> >> > > list/menu item that drops down the names of the products, a text
> >> > > field
> >> > > where
> >> > > the user selects the price he wants to charge and a submit botton.
> >> Submit
> >> > > it to a success page or whatever you like.
> >> > >
> >> > > In the insert record behavior, you will bind the dropdown value to
> >> > > ProductID, the session variable to UserID, the Price to whatever
> >> > > price
> >> you
> >> > > had in the text box and the Price ID will be autocreated when you
> >> insert.
> >> > >
> >> > > Batta .. bing.
> >> > >
> >> > >
> >> > > --
> >> > > Nancy Gill
> >> > > Team Macromedia Volunteer for Dreamweaver MX/UltraDev
> >> > > [url]http://www.macromedia.com/go/team/[/url]
> >> > > Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003)
> >> > > Technical Editor: DMX 2004: The Complete Reference, DMX 2004: A
> >> > > Beginner's
> >> > > Guide, Mastering Macromedia Contribute
> >> > > Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web
> >> > > Development
> >> > >
> >> > >
> >> > >
> >> > >
> >> >
> >> >
> >> >
> >>
> >>
> >
> >
>
>
Paul Whitham TMM Guest



Reply With Quote

