Numéro d’ID de bogue |
BUG-000157936 |
Envoi | April 28, 2023 |
Dernière modification | March 12, 2024 |
S’applique à | Portal for ArcGIS |
Version trouvée | N/A |
Système d’exploitation | N/A |
Version du système d’exploitation | N/A |
Statut | In Product Plan
Le problème a été ajouté à la file d’attente de l’équipe de développement. L’objectif est de résoudre les problèmes portant ce statut dans une version à court terme (la prochaine version ou la suivante). En attendant la résolution complète du problème, retrouvez des informations utiles dans la section Informations supplémentaires ou Solution alternative correspondante.
|
Informations supplémentaires
This is as designed. The sddraft.choiceLists property is not used to set up a choice list for a string data type input. For the string type input parameter, the correct way to display the choice list is to add the values to the value list values in the script tool. Publish it with a Python script without using the sddraft.choiceLists property to get the choice list in the published web tool.
The sddraft.choiceLists property of the GeoprocessingSharingDraft class is actually for the layer input data type, which becomes a string when running in the script.
For more information, refer to https://pro.arcgis.com/en/pro-app/latest/arcpy/sharing/geoprocessingsharingdraft-class.htm in the 'Overwrite a web tool to ArcGIS Enterprise' section.
This issue is to be exported, and the explanation of the sddraft.choicelists property in the help documentation is to be improved.
Étapes pour reproduire
ID de bogue: BUG-000157936
Logiciel: