Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Olá pessoal,
Gostaria de saber se alguém possui uma sugestão para no script testar se uma tabela existe antes de realizar o LOAD e evitar a mensagem de erro ao carregar. Pois estou importando um QVW via Binary e a tabela em questão pode ou não existir proveniente deste QVW externo.
Abraço e obrigado desde já.
Olá Marcio,
Você pode fazer uma verificação utilizando as funções de tabela do QlikView.
FOR a=0 TO (NoOfTables())
LET vTabela = TableName($(a));
If vTabela <> 'TABELAS' then
TABELAS:
LOAD
'$(vTabela)' AS NomeTabela
AutoGenerate(1);
ENDIF
NEXT
If NoOfRows('Tabela') > 0 then
// Faça algo
Endif