This topic is locked
[SOLVED]

 How to break down many products into Form choices

4/8/2014 9:23:42 AM
PHPRunner General questions
A
Anapolis author

I have run into a new form problem regarding long tables of products that are the first, but not only options needed in a form.
The User logs in and must complete a form that must allow them to first choose from over 100 products --- as MANY PRODUCTS as apply to their reporting situation.
They may have sold say, 7 different categories of products, or 8 or 35, etc. etc. of these separate products and must now report for each product 3 different field values -- Total units sold, How many to Existing Customers, How many to New Customers.
When the User finally hits the Submit button it must produce multiple Rows that match the number of Products reported on ..
"Insert into table 'productreport' VALUES 'null','etc, etc and then a ; semi-colon

followed by another INSERT into table 'productreport' VALUES 'NULL', etc.etc. until the Form submission has produced 7 auto-numbered rows for 7 Products with different values in the quantity fields. Or, for instance, 3 Selected Products to Report On, produce 3 separate rows in the master productreport table.
What I cannot figure out is HOW TO CREATE the Form DYNAMICALLY.
I can not reasonably create a super long form with well over a hundred rows of product fields that must contain a row for every single Product Item with 3 more accompanying fields for quantity reports.
The view below represents the data the Form itself would contain if just the First 8 of (over a HUNDRED products) were Selected to Report On,
The "Bought, Existing Customers, New Customers" columns would be filled with Numbers. The Price column value is read-only.[/b]


[size="4"]

With PHPRunner I know I can create a product reference table with just the fields: (product id, product key description field, unit price field) and choose that in the Lookup Wizard setup but this only produces one field's information.[/size]
[size="4"]Can this Form be programmed to be Dynamically assembled by the User Choices from the Product Reference Table?[/size]
[size="4"]In other words, is there a way to have the User select from 3 products or 6 or 99 products and then have JUST those products appear on separate form rows with matching input fields for Units sold, Number to Existing Customers, Number to New Customers?
So that the form is never longer than the number of Products the User selects to make a Report about?[/size]

A
Anapolis author 4/9/2014

I am going to try to solve this one outside of PHPRunner.

G
gonzalosb 4/17/2014

hi Maveric,
what you can do is create different add new Pages by product type such as hypoallergenic, sun blocker, treatment lotions, etc. so it will be easier for the user to choose.

you can make the row hide if no information is added to an specific product
the table can be storage by date of submission and the extra info edit as NUMBERS.
i know how to do it on ASP, i'm not a PHP fan... but it can be done.
let me know if i can help.
you can found a lot of help on http://xlinesoft.com/phprunner/docs/

A
Anapolis author 4/19/2014



hi Maveric,
what you can do is create different add new Pages by product type such as hypoallergenic, sun blocker, treatment lotions, etc. so it will be easier for the user to choose.

you can make the row hide if no information is added to an specific product
the table can be storage by date of submission and the extra info edit as NUMBERS.
i know how to do it on ASP, i'm not a PHP fan... but it can be done.
let me know if i can help.
you can found a lot of help on http://xlinesoft.com/phprunner/docs/


Thank you for your offer gonzalosb. I am deep into a project today but I will come back and investigate your suggestion in the next few days. Thanks again.