<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Macro message in text object in Archived Groups</title>
    <link>https://community.qlik.com/t5/Archived-Groups/Macro-message-in-text-object/m-p/1248811#M3608</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good afternoon, I would like to know if you can get the macro messages and display them in a text field. For example, I would like to show how many records have been updated for a particular company. I currently have a macro script that does an update. But in Qlik Server I can not use msgbox. Is there any way to show these messages to the user? Would you like to upload a loading image? I hope you can help me. Thank you for now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jul 2025 14:48:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2025-07-23T14:48:52Z</dc:date>
    <item>
      <title>Macro message in text object</title>
      <link>https://community.qlik.com/t5/Archived-Groups/Macro-message-in-text-object/m-p/1248811#M3608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good afternoon, I would like to know if you can get the macro messages and display them in a text field. For example, I would like to show how many records have been updated for a particular company. I currently have a macro script that does an update. But in Qlik Server I can not use msgbox. Is there any way to show these messages to the user? Would you like to upload a loading image? I hope you can help me. Thank you for now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2025 14:48:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/Macro-message-in-text-object/m-p/1248811#M3608</guid>
      <dc:creator />
      <dc:date>2025-07-23T14:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Macro message in text object</title>
      <link>https://community.qlik.com/t5/Archived-Groups/Macro-message-in-text-object/m-p/1248812#M3609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you need to show the users any results from the script processing, you can do a few things:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. You can use TRACE to add messages to the Script Execution Progress text (and the log).&lt;/P&gt;&lt;P&gt;2. You can store variables with all the necessary information and then show the variables on the screen with the relevant explanation.&lt;/P&gt;&lt;P&gt;3. If variables are not enough, you could create aggregated tables and show them on the screen. For example a table with the fields Company and [Number of updated records].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;Upgrade Your Qlik Skills at the &lt;A href="http://masterssummit.com/"&gt;Masters Summit for Qlik&lt;/A&gt; - coming soon to Munich, Germany!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 17:17:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/Macro-message-in-text-object/m-p/1248812#M3609</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2017-01-27T17:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Macro message in text object</title>
      <link>https://community.qlik.com/t5/Archived-Groups/Macro-message-in-text-object/m-p/1248813#M3610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the feedback, what I'm trying to do is, I have this macro that does update in a database table. For the desktop after after the execution I get a msgbox on the screen with the message that I inform, but this does not work on the qview server. Would there be any way to display a message to the user on the qlik server? Type show a update message completed successfully, and show how many records have been updated. I'm also having trouble creating an if, with the Select variable, in it I can option S or N. Thanks for now. Below the macro I'm using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function GetAgentConnection&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim oConection&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim SLXServerName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim SLXDataBaseName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim SLXUserPassword&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim SLXUserName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim sConnectionString&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; sConnectionString = "Provider=MSDASQL.1;Persist Security Info=True;User ID=root;Data Source=GHAN_BI;Extended Properties=DSN=GHAN_BI;UID=root;Initial Catalog=ghan_bi] (XPassword is JHLDSJVMYbbMCbEHRRMGDAC)"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set oConection = CreateObject ("ADODB.Connection")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oConection.ConnectionString = sConnectionString&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oConection.Open&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set GetAgentConnection = oConection&lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Salva na tabela Vendas Diario&lt;/P&gt;&lt;P&gt;Sub QV2SQL &lt;/P&gt;&lt;P&gt;&amp;nbsp; SET Conexao = GetAgentConnection() &lt;/P&gt;&lt;P&gt;&amp;nbsp; dim uSQL&lt;/P&gt;&lt;P&gt;&amp;nbsp; dim RegAfectados&lt;/P&gt;&lt;P&gt;&amp;nbsp; dim importe&lt;/P&gt;&lt;P&gt;&amp;nbsp; RegAfectados = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set val1=ActiveDocument.Fields("DATAFORMATOBD").GetSelectedValues&lt;/P&gt;&lt;P&gt;&amp;nbsp; set val2=ActiveDocument.Fields("SELECIONA").GetSelectedValues&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; for i=0 to val1.Count-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Conexao.Execute "UPDATE&amp;nbsp; bi_agencia_stur_vendas_diario SET conferido='"+val2.Item(i).Text+"' WHERE data_emissao = '"+val1.Item(i).Text+"'"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; next&lt;/P&gt;&lt;P&gt;&amp;nbsp; Msgbox("Registros atualizados com sucesso!")&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;'Salva na tabela Lançamento, utilizada para o fechamento do BI.&lt;/P&gt;&lt;P&gt;Sub QV2SQL2 &lt;/P&gt;&lt;P&gt;&amp;nbsp; SET Conexao = GetAgentConnection() &lt;/P&gt;&lt;P&gt;&amp;nbsp; dim uSQL&lt;/P&gt;&lt;P&gt;&amp;nbsp; dim RegAfectados&lt;/P&gt;&lt;P&gt;&amp;nbsp; dim importe&lt;/P&gt;&lt;P&gt;&amp;nbsp; RegAfectados = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set val1=ActiveDocument.Fields("CalendarioCompleto").GetSelectedValues&lt;/P&gt;&lt;P&gt;&amp;nbsp; set val2=ActiveDocument.Fields("Seleciona").GetSelectedValues&lt;/P&gt;&lt;P&gt;&amp;nbsp; set val3=ActiveDocument.Fields("ID_EMPRESA").GetSelectedValues&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; for i=0 to val1.Count-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Conexao.Execute "UPDATE&amp;nbsp; bi_nivel_4_lancamento SET fechado='"+val2.Item(i).Text+"' WHERE data_emissao_dre = '"+val1.Item(i).Text+"' and&amp;nbsp;&amp;nbsp; data_cadastro = '"+val3.Item(i).Text+"'"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; next&lt;/P&gt;&lt;P&gt;&amp;nbsp; Msgbox("Registros atualizados com sucesso!")&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 17:29:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/Macro-message-in-text-object/m-p/1248813#M3610</guid>
      <dc:creator />
      <dc:date>2017-01-27T17:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Macro message in text object</title>
      <link>https://community.qlik.com/t5/Archived-Groups/Macro-message-in-text-object/m-p/1248814#M3611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd go for modifying a value of a variable and have the variable displayed on the screen. I'm not sure what else would work on a QlikView server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd also recommend to look at the extension called Kildins that allows writing data back to SQL server, and it's very robust and doesn't require tinkering with Macros:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.klik-ins.com/" style="font-size: 10pt;" title="http://www.klik-ins.com/"&gt;Klikins&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 18:52:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/Macro-message-in-text-object/m-p/1248814#M3611</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2017-01-27T18:52:42Z</dc:date>
    </item>
  </channel>
</rss>

