laptop and a wrench

Erro

The 'target ='_blank'' HTML tag is ignored in geoprocessing services when embedding in web applications created in ArcGIS Online.

Última Publicação: December 15, 2021 ArcGIS Online
Número de ID do Erro BUG-000140757
EnviadoJune 16, 2021
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS Online
Versão encontrada9.1
Sistema OperacionalWindows OS
Versão do Sistema Operacional10.0 64 Bit
StatusWill Not Be Addressed

Informações Adicionais

This issue is by-design for security issues.

Solução Provisória

  • The output of the geoprocessing tool is of type GPString and the tool generates an HTML element <a> directly.
  • To keep out the malicious code, string content is sanitized before displaying on the page and the target=‘_blank’ is removed.
  • Open a new tab to show the output PDF file, change the output type of the geoprocessing tool from GPString to GPDataFile.
  • Thus, ArcGIS Web AppBuilder will generate an HTML element <a target=“_blank”>.
  • If the output type is GPDataFile, the users do not need to generate the URL parameter.
  • Set the output file path as the value of GPDataFile. The geoprocessing service will create a URL for it. The print service is a good example, refer to the following link, http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task for more information.

Etapas para Reproduzir

ID do Erro: BUG-000140757

Software:

  • ArcGIS Online

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download