Copying fields from one table to another? |
2/26/2009 8:25:59 PM |
PHPRunner General questions | |
![]() Hello, |
|
R
|
rgfischerjr 2/26/2009 |
By adding the VendorName to the Product that links the vendor to that particular product, but how do I automatically assign the appropriate Vendor ID without having to type it in? So basically what I want to do is, when adding a new product, I select the Vendor from a dropdown Menu and I want it to automatically add the VendorID too. Hopefully this makes sense. Thanks in advance for any suggestions.
|
![]() |
greggk author 2/27/2009 |
If you include VendorID in the fields and (in Visual Editor) set the properties to use the Lookup Wizard you can display the Vendor to the user and select the VendorID behind the scenes. See Lookup Wizard in the help file.
|
![]() |
Sergey Kornilov admin 2/27/2009 |
Hard to tell hat might be wrong without seeing your files. |
![]() |
greggk author 2/27/2009 |
Hard to tell hat might be wrong without seeing your files. There is one thing I can suggest. According to good database design rules you don't need both VerndorID and VendorName in Products table. Having a single VendorID field is more than enough. Setup lookup wizard for this field, use VendorID as a link field and VendorName as a display field. This is it.
|
![]() |
Sergey Kornilov admin 2/27/2009 |
Do I understand it right it doesn't work on Add though works on Edit? |
![]() |
greggk author 2/27/2009 |
Do I understand it right it doesn't work on Add though works on Edit? If yes, you can post your application to 'Demo Account' (last screen in PHPRunner) and open a ticket at http://support.xlinesoft.com sending your application URL.
|
![]() |
Sergey Kornilov admin 2/28/2009 |
Greggk, |