Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Dynamic doc type Is it possible? View modes: 
User avatar
Certified Developer 12
Certified Developer 12
chetan2309-gmail - 11/14/2013 7:10:50 PM
   
Dynamic doc type Is it possible?
Hello All,

I wish to achieve something like this. My document will have fields like


Category Label Growth Label Product Label

TextField TextField TextField

+Add Another row


Category Label, Growth Label and Product Label are Field labels. These fields are of of type text .

What I want to achieve is to have "Add Another Row" kind of functionality in my form view which when clicked will add another row of same attributes to the form dynamically.

Firstly, is this possible out of the box in Kentico and best way to access it in a transformation. If not, is there any alternative to this?

If not, can we achieve this functionality some other way around? Or should I do it statically?

Thanks,
Chetan

User avatar
Certified Developer 10
Certified Developer 10
josha-bpstudios - 11/16/2013 5:41:07 PM
   
RE:Dynamic doc type Is it possible?
Sounds like you can create multiple items and then just control their visibility through Jquery or through the form control has depending fields and visible property. If this doesn't work, you could create a custom table that has a row for the formid or name and then insert the items through there. This option will be more scalable and allow more entries without getting too complicated.

User avatar
Certified Developer 12
Certified Developer 12
chetan2309-gmail - 11/17/2013 4:44:01 PM
   
RE:Dynamic doc type Is it possible?
Hi Josha,


Would you point me to some example if you know any? I not able to make out much from this.

Thanks

User avatar
Kentico Consulting
Kentico Consulting
Kentico_RichardS - 11/19/2013 8:37:51 AM
   
RE:Dynamic doc type Is it possible?
Hi,

We are not aware of your goal but you might be able to make use of creating depending fields so that some fields are displayed based on another one. You can see some examples of that at http://devnet.kentico.com/Knowledge-Base/BizForms/Using-dependency-fields-in-forms.aspx The article is for forms, but its a good example and you can use it exactly the same in the document types.

Kind regards,
Richard Sustek