Re: [QGIS-Developer] parameterAsEnumStrings always return default value

2023-04-02 Thread Andrea Giudiceandrea via QGIS-Developer
Hi Nicolas, it seems to me this https://github.com/qgis/QGIS/pull/52143 PR (which is awaiting for reviews) may be related to your questions. Best regards. Andrea Giudiceandrea ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info:

Re: [QGIS-Developer] parameterAsEnumStrings always return default value

2023-02-24 Thread Nicolas Godet via QGIS-Developer
fill an issue as the doc should should be more explicit or behavior fixed. De : QGIS-Developer de la part de Andrea Giudiceandrea via QGIS-Developer Envoyé : vendredi 24 février 2023 17:50 À : qgis-developer@lists.osgeo.org Objet : Re: [QGIS-Developer] para

Re: [QGIS-Developer] parameterAsEnumStrings always return default value

2023-02-24 Thread Andrea Giudiceandrea via QGIS-Developer
Il 24/02/2023 17:37, Andrea Giudiceandrea ha scritto: |In addition, the parameter defaultValue should be set to a single value and not to a list if ||allowMultiple is set to False.| |... and it should be populated with the index number (|allowMultiple=False) |or a list of index numbers

Re: [QGIS-Developer] parameterAsEnumStrings always return default value

2023-02-24 Thread Andrea Giudiceandrea via QGIS-Developer
Hi Nicolas, I don't know if it is the intended behaviour, anyway it seems to me parameterAsEnumString and parameterAsEnumStrings return the correct value when |usesStaticStrings is set to True, while parameterAsEnum and parameterAsEnums when ||usesStaticStrings is set to False. In addition,

Re: [QGIS-Developer] parameterAsEnumStrings always return default value

2023-02-24 Thread Nicolas Godet via QGIS-Developer
always return default value Dear devs, I noticed in a custom alg that `parameterAsEnumStrings` always return the default value set in QgsProcessingParameterEnum. Below a example alg to reproduce. i prefere to start with an email before raising an issue as I could miss something In alg window

[QGIS-Developer] parameterAsEnumStrings always return default value

2023-02-24 Thread Nicolas Godet via QGIS-Developer
Dear devs, I noticed in a custom alg that `parameterAsEnumStrings` always return the default value set in QgsProcessingParameterEnum. Below a example alg to reproduce. i prefere to start with an email before raising an issue as I could miss something In alg window select any value different