Auto inserting data from another table

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
PeterSmit
User
Posts: 2

Auto inserting data from another table

Post by PeterSmit »

I am very pleased to say that this software is fantastic, I have been testing the features some weeks now, thanks also for the auto backup.
I do have one problem that I am unable to solve at this time.
I have two fields with data, one products (name, quantity, type, and price).
And the other table for a customer to select one of the product.
If the client select a product name using the lookup table.
I need the selected product values auto inserted into the customer table (from all the product fields).
I am only able to insert the product (name) and not (quantity, type, and price).
Please help.
The greatest PHP code generator I have seen.


mobhar
User
Posts: 11721

Post by mobhar »

Please post your tables schema for more discussion.


arbei
User
Posts: 9382

Post by arbei »

Read help file topic: "Project Setup" -> "Lookup Table" -> "Auto Fill" and see if it is the feature you are looking for.


PeterSmit
User
Posts: 2

Post by PeterSmit »

Ok, thanks for the reply, I am learning day by day.
Here are the product table fields: productname, unitprice etc.
The same exist in the client table, I need the values from the selected product using ‘user look table’ auto insert into client fields when selected.
Can some provide an event example or what should I select.


arbei
User
Posts: 9382

Post by arbei »

Have you read the help file? It seems "Auto-Fill" feature is exactly what you need.

Read help file topic: "Project Setup" -> "Lookup Table".


Post Reply