dehnert
Posts: 13
|
| Posted: 03/30/2010, 8:59 AM |
|
Hello I do need a tool / technique for codecharge - studio!
Here my "challenge"
1. I have a process where a user can order from different sellers via a webform.
2. There are many different sellers with different order forms
3. programming a orderform of its own for every seller is not really an option for me.
-> is there a way (i.e by creating a builder?) , to build an order form, which is based on definitions in a table:
the table might look like this:
primarykey
itemname
itemvalue (i.e int, text, varchar....)
itemtype (i.e. textbox, listbox, checkbox, .....)
itemtype_corresponding_table (i.e. if type = listbox, ....)
itemtype_corresponding_table_bound_column
itemtype_corresponding_table_text_column
Is this a challenge for You or one of Your collegues?
A quick answer would be great!
Achim
_________________
Achim Dehnert |
 |
 |
vandalen
Posts: 58
|
| Posted: 03/30/2010, 12:45 PM |
|
Achim,
How different are the forms? and do they share most of the same fields?
If yes, how about hide/unhide depending on vendor?
|
 |
 |
dehnert
Posts: 13
|
| Posted: 03/30/2010, 1:24 PM |
|
I would prefer the proposed solution.....
any idea?
_________________
Achim Dehnert |
 |
 |
joejac
Posts: 242
|
| Posted: 04/01/2010, 12:57 PM |
|
Hello dehnert
If you have a seller table and assign to each seller a product_categories table with its products table tied to the seller_id and you standardized all with listboxes only, probably you can simplify your design and do a single step or a multistep form if the purchase process is complex, using Ajax and changing dynamically your seller and then the seller product_category and then the corresponding products, with the nice CCS Ajax dependent listboxes features.
1.- Please study this example, and adapt to your needs: http://examples.codecharge.com/Ajax/DependentListBox3.php
2.- In case you need a multistep form please see this interesting link: http://forums.yessoftware.com/posts.php?post_id=102912
Hope this can help to give you an idea, it can be done with CCS.
Best regards
joejac
|
 |
 |
Waspman
Posts: 948
|
| Posted: 04/02/2010, 1:13 AM |
|
First off, there is no quick answer you are gona have to to put some time and thought into this.
I do a similar thing for a training system where every course has different events (all set by individual users) and each of the events requires different elements to show. Add to that the elements show options dependent on the course and the user. So kind like what you want?
Essentially the elements that are part of the events are determined by the user as a series of check boxes in the event setup. These values are then passed at the point of delivery to the form on page and in this case shows the appropriate tabs and form elements. It is, if you like a builder.
I use both tabs and panels and hide and show them accordingly. Works really well.
I would put all the custom elements in panels and possibly show them all by default. Or you could have total customisation or have specific levels. So when a seller has an "A" requirement panels 1,3 and 7 show or if they were a "B" seller they would show 2,4 and 8.
Loads of fun [LOL]
T
_________________
http://www.waspmedia.co.uk |
 |
 |
|