============================ getValueFrom ============================ For interoperability with other systems it is interesting to have the possibility to use dynamic values in the xml configuration file. For example: One system is used to create a new feature with passes an attibute proprety in the url. To allow this kind of interoperability it is possible to replace a fixed value in some xml nodes with a special tag that allows to get a value from any php variable table. Use ---- .. code-block:: xml Implementation --------------- The values set in getValueFrom tag are put into a string and are evaluated with the 'eval' php function. Php code can then be used to return the desired value dynamically. **P.S :** All widgets that use nodes loaded with *getObjectFromNode* are automatically compatible with *getValueFrom* (e.g. featurepanel_form fields) Sample -------- * Use 'getValueFrom' with the stylemap option of the `map <./list/Map.html#layer-options>`_ widget to colorize features with a attribute value equal to that passed along in the url. .. code-block:: xml default * Use 'getValueFrom' with the 'editfeature_create' and 'featurepanel_form' widgets to add features with an attribute value obtained from the url. .. code-block:: xml CreateDumpingSite Polygon FeaturePanel1 FeaturePanel1 true 100 <en_US>Dumping Site</en_US> <fr_CA>Site de déversement</fr_CA> false 100 dumpingid displayfield $_REQUEST[id]