cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Whats an efficient way to design huge forms with grid like structure

Ashikkasim
10-Marble

Whats an efficient way to design huge forms with grid like structure

The forms which i am trying to design are grid like structure(horizontal and vertical mixed) with multiple columns and rows, inside the cell have to put textbox to get user input. Currently am using divider to create the required cells which is not an efficient way considering time and effort. it would be good, if it have any other way to design these kind of structure.

ACCEPTED SOLUTION

Accepted Solutions
wposner-2
14-Alexandrite
(To:Ashikkasim)

Try the collection widget.  Use a data table to store your form structure.  The collection widget can then read the rows in your data table and automatically generate your form.  You're underlying datashape should define what each cell of the form looks like:

 

fieldName -- the attribute name

displayName -- so you can set the label

dataType -- so you can do any business logic casting when you process your user input.

inputType -- so you can show or hide different widgets depending on how you'd like to collect the data:  text input, vs value display, vs list, vs checkbox, etc.  You could also use this field for the MashupName parameter in the collection widget--you'd just create a unique mashup for each user input type you want to use.

View solution in original post

2 REPLIES 2
wposner-2
14-Alexandrite
(To:Ashikkasim)

Try the collection widget.  Use a data table to store your form structure.  The collection widget can then read the rows in your data table and automatically generate your form.  You're underlying datashape should define what each cell of the form looks like:

 

fieldName -- the attribute name

displayName -- so you can set the label

dataType -- so you can do any business logic casting when you process your user input.

inputType -- so you can show or hide different widgets depending on how you'd like to collect the data:  text input, vs value display, vs list, vs checkbox, etc.  You could also use this field for the MashupName parameter in the collection widget--you'd just create a unique mashup for each user input type you want to use.

slangley
23-Emerald II
(To:Ashikkasim)

Hi @Ashikkasim.

 

If you feel the previous response answered your question, please mark it as the Accepted Solution for the benefit of others with the same question.

 

Thank you for your participation in our community!

 

Regards.

 

--Sharon

Announcements


Top Tags