How to save entered by user data

1
Hi all, I have created custom widget with three properties: <properties> <property key="name" type="string"> <caption>Form name</caption> <category>Common</category> <description>GroupDocs form name</description> </property> <property key="guid" type="string" defaultValue="" required="false"> <caption>File GUID</caption> <category>Common</category> <description>GroupDocs file GUID.</description> </property> <property key="login" type="string" defaultValue=""> <caption>Login</caption> <category>Common</category> <description>GroupDocs login.</description> </property> <property key="pass" type="string" defaultValue=""> <caption>Password</caption> <category>Common</category> <description>GroupDocs password.</description> </property> On page were user put widget he will enter some String so how can I save this string? For example how to save it to defaultValue of "guid" propertie or if exist any ither way please help
asked
3 answers
1

Take a look at other widgets to get directions.

Mainly two ways: if it is a presentation widget, bound to an attribute you can use the built in _getValueAttr and _setValueAttr functions.

if it is more complex:

  1. Create or change an object
  2. Pass it to an event microflow

The event microflow must be defined in the xml. Commit the objec in the microflow.

answered
0

@Chris de Gelder many thnx

answered
0

@Chris de Gelder sorry but can you show example in code how to use second way with microflow and object

answered