Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
devel:documentation:application_configuration:dev:dynamic-forms [2019/09/25 07:29]
tomiskar
devel:documentation:application_configuration:dev:dynamic-forms [2020/08/05 08:59]
tomiskar
Line 6: Line 6:
  
 <note> <note>
-**''FormService'' service for working with the extended attributes on the back-end.** **''FormInstance''** utility is useful on BE - contains value transformation to maps by attributes etc..+**''FormService'' service for working with the extended attributes on the back-end.** **''FormInstance''** utility is useful on BE - contains value transformation to maps by attributes etc.. Use this service in your custom module, benefits: 
 +  * single autowired service for work with definitions, attributes and values 
 +  * cache ''core:form-definition-cache'' for loading form definitions (with attributes) is effective here.
 </note> </note>
 <note> <note>
Line 13: Line 15:
  
 <note important>Saving form values for the form definition work as **PATCH**. When attribute value has to be deleted, then form value with **null** has to be given (use it even for multi valued attributes).</note> <note important>Saving form values for the form definition work as **PATCH**. When attribute value has to be deleted, then form value with **null** has to be given (use it even for multi valued attributes).</note>
 +
 +<note>If single attribute is saved (''FormService#saveAttribute''), then event ''EAV\_SAVE'' is not published. Save all attributes (''FormService#saveValues''), if publishing event ''EAV_SAVE'' for owner is needed.</note>
  
 Dynamic form attribute supports data types (''persistentType''): Dynamic form attribute supports data types (''persistentType''):
  • by tomiskar