You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As data editor, i need to select a value from a list calculated by by an other field value, to select a correct relational value (dependent on another).
This contribution could enhance featureEditor rules.
I see 2 solutions.
First, from dropDown, allow to request an API to get a list of values according :
{
"name": "FeatureEditor",
"cfg": {
"maxZoom": 21,
"customEditorsOptions": {
"rules": [{
"regex": {
"attribute": "NAME_OF_THE_ATTRIBUTE",
"url": "regex to match a specific url",
"typeName": "layerName"
},
"editor": "DropDownEditor",
"editorProps": {
"values": ["Opt1", "Opt2"], => default
"api": {
"url": "http://test.fr/", => allow to just keep values returns by entire url API
"field": "region" => optional => Allow to use another field value as requestParam
}
}
}]
}
}
}
Second, use a complex dropDown config to specify many options according to another value.
Description
As data editor, i need to select a value from a list calculated by by an other field value, to select a correct relational value (dependent on another).
This contribution could enhance featureEditor rules.
I see 2 solutions.
First, from dropDown, allow to request an API to get a list of values according :
Second, use a complex dropDown config to specify many options according to another value.
This second option could use a config like :
I guess that many solutions are possible...
What kind of improvement you want to add? (check one with "x", remove the others)
Other useful information
The text was updated successfully, but these errors were encountered: