<?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 AJAX with OnOpen macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/AJAX-with-OnOpen-macro/m-p/188873#M1281170</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used the same trigger on the same environment and it worked for me. Can you send us a small sample where you can get this error?&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Apr 2011 06:39:57 GMT</pubDate>
    <dc:creator>erichshiino</dc:creator>
    <dc:date>2011-04-22T06:39:57Z</dc:date>
    <item>
      <title>AJAX with OnOpen macro</title>
      <link>https://community.qlik.com/t5/QlikView/AJAX-with-OnOpen-macro/m-p/188872#M1281168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have problem with OnOpen macros triggering selections and locking them, default preselection.&lt;/P&gt;&lt;P&gt;When I open it in IE-plugin it just select and lock normally, in QV developer works great too, but not in AJAX client. In AJAX it looks like it reduce the data based on selection. (e.g. I have filter 'Yes', 'No' and in AJAX there is only one possible[not selected, even not locked] value 'No').&lt;/P&gt;&lt;P&gt;It's not working in QVS 10 SR1, but in QVS 9 SR4 it works normally. Is there some special settings somewhere to force it running?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AJAX-with-OnOpen-macro/m-p/188872#M1281168</guid>
      <dc:creator />
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>AJAX with OnOpen macro</title>
      <link>https://community.qlik.com/t5/QlikView/AJAX-with-OnOpen-macro/m-p/188873#M1281170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used the same trigger on the same environment and it worked for me. Can you send us a small sample where you can get this error?&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2011 06:39:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AJAX-with-OnOpen-macro/m-p/188873#M1281170</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-04-22T06:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: AJAX with OnOpen macro</title>
      <link>https://community.qlik.com/t5/QlikView/AJAX-with-OnOpen-macro/m-p/188874#M1281173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you resolve this? i have the same problema with QV11&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 15:45:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AJAX-with-OnOpen-macro/m-p/188874#M1281173</guid>
      <dc:creator>doplear01</dc:creator>
      <dc:date>2013-04-16T15:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: AJAX with OnOpen macro</title>
      <link>https://community.qlik.com/t5/QlikView/AJAX-with-OnOpen-macro/m-p/188875#M1281175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the below. I know it is long but it will answer your question. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the appropriate section is 30.7 Document Properties: Triggers&lt;/P&gt;&lt;P&gt;On the Triggers tab, it is possible to set actions (including macro actions) to be invoked on document&lt;BR /&gt;events, variable events and field events. For more information on macros, see the Edit Module (page 885).&lt;BR /&gt;Not all actions can be invoked from the following event triggers. Read more about the different actions&lt;BR /&gt;under Add Action Dialog (page 541).&lt;/P&gt;&lt;P&gt;Note!&lt;BR /&gt;There are limitations as to the behavior of certain macro triggers when working with documents on Qlik-&lt;BR /&gt;View Server. Please study the section Using Macros in QV Documents on the QV-Server (page 893) before&lt;BR /&gt;designing server documents with macro triggers.&lt;/P&gt;&lt;P&gt;Document Event Triggers:&lt;BR /&gt;In this group actions are set to trigger on selected events in the document. An&lt;BR /&gt;event has to be selected in the list before it is possible to assign actions or macros&lt;BR /&gt;to it.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;OnAnySelect&lt;BR /&gt;Select this event to assign an action to be executed each time a selection has&lt;BR /&gt;been made in any field of the QlikView document.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;OnOpen&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;Select this event to assign an action to be executed each time the QlikView&lt;BR /&gt;document is opened. &lt;SPAN style="color: #ff0000;"&gt;This event is not supported when running in the AJAX&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;client.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;OnPostReduceData&lt;BR /&gt;Select this event to assign an action to be executed after each time the Reduce&lt;BR /&gt;Data command has been executed.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;OnPostReload&lt;BR /&gt;Select this event to assign an action to be executed each time the script has&lt;BR /&gt;been re-executed.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Add Action(s)&lt;BR /&gt;This button opens the Actions (page 540) page. On this page it is possible to&lt;BR /&gt;add an action to the trigger. Choose the action macro to assign an existing&lt;BR /&gt;macro name or type any name for which a macro can be created later in the&lt;BR /&gt;Edit Module (page 885) dialog.&lt;BR /&gt;The action will be executed each time the selected document event occurs.&lt;BR /&gt;When an action has been assigned to the event, the button changes to Edit&lt;BR /&gt;Action and it is possible to change the action for the event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field Event Triggers:&lt;BR /&gt;In this group actions are set to trigger on changes in the logical state of a specified&lt;BR /&gt;field in the document. Select a field in the list and press one of the buttons&lt;BR /&gt;to assign an action to in it. The buttons open the Actions (page 540)&lt;BR /&gt;page. Here it is possible to assign an action, including an existing macro&lt;BR /&gt;name, or type any name for which a macro can be created later in the Edit&lt;BR /&gt;Module (page 885) dialog. For more information about adding actions, see&lt;BR /&gt;Actions (page 540).&lt;BR /&gt;When an action has been assigned to the field, the button changes to Edit&lt;BR /&gt;Action. The following Field Event Triggers exist:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;OnSelect&lt;BR /&gt;The action will be executed each time a selection has been made in the specified&lt;BR /&gt;field.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;OnLock&lt;BR /&gt;The action will be executed each time the field is locked.&lt;/P&gt;&lt;P&gt;OnChange&lt;BR /&gt;The action will be executed each time a selection has been made in any field&lt;BR /&gt;which is logically associated with the specified field.&lt;/P&gt;&lt;P&gt;OnUnlock&lt;BR /&gt;The action will be executed each time the field is unlocked&lt;/P&gt;&lt;P&gt;Variable Event Triggers:&lt;BR /&gt;In this group you can set actions to trigger on changes in the contents of a&lt;BR /&gt;specified variable in the document.&lt;BR /&gt;Select a variable in the list and press one of the buttons to assign an action to&lt;BR /&gt;it. The buttons open the Actions (page 540) page. On this page you can add&lt;BR /&gt;an action to the trigger. Choose the action macro to assign an existing macro&lt;BR /&gt;name or type any name for which you later can create a macro in the Edit&lt;BR /&gt;Module dialog. For more information about adding actions, see Actions (page&lt;BR /&gt;540).&lt;BR /&gt;When an action has been assigned to the variable, the button changes to Edit&lt;BR /&gt;Action and you can change the action for the event. The following Variable&lt;BR /&gt;Event Triggers exist:&lt;/P&gt;&lt;P&gt;OnInput&lt;BR /&gt;The action will be executed each time a new value is directly entered in the&lt;BR /&gt;selected variable.&lt;/P&gt;&lt;P&gt;OnChange&lt;BR /&gt;The action will be executed each time the value of the selected variable&lt;BR /&gt;changes as a result of changes in other variables or the logical state of the document.&lt;BR /&gt;This typically applies when the variable contains a formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note!&lt;BR /&gt;For backward compatibility to earlier versions of QlikView, the action must consist of a macro action. An&lt;BR /&gt;action that consists of only one macro action is translated back to old string format on save.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note!&lt;BR /&gt;Actions that trigger other actions, so called cascading actions, may cause unforeseen consequences and are&lt;BR /&gt;not supported!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Section 39.3 Actions:&lt;BR /&gt;On this page actions can be set for certain objects:&lt;BR /&gt;• buttons&lt;BR /&gt;• text objects&lt;BR /&gt;• gauges&lt;BR /&gt;• line/arrow objects&lt;BR /&gt;Actions include launching an external application or exporting data from QlikView.&lt;BR /&gt;Add Opens the Add Action Dialog (page 541) where the actions for the object are&lt;BR /&gt;chosen. Choose the type of action in the lists. Depending on the action, different&lt;BR /&gt;parameters for the action will appear on the Actions page. The actions&lt;BR /&gt;will be executed in the order in which they appear in the list.&lt;BR /&gt;Delete Removes the action from the object.&lt;BR /&gt;Promote Moves the selected action up in the list of actions.&lt;BR /&gt;Alternate State Sets the state that the action refers to. This setting is only relevant for actions&lt;BR /&gt;related to selections or bookmarks.&lt;/P&gt;&lt;P&gt;Selection&lt;BR /&gt;Select in Field Selects the values and fields that are specified. In the Search String you can&lt;BR /&gt;specify a search mask, e.g. (A|B) will select both A and B.&lt;BR /&gt;Select Excluded Selects the excluded values in the specified field.&lt;BR /&gt;Select Possible Selects the possible values in the specified field.&lt;BR /&gt;Toggle Select Toggles between the current selection and the specified Field and Search&lt;BR /&gt;String. In the Search String you can specify a search mask, e.g. (A|B) will&lt;BR /&gt;select both A and B.&lt;BR /&gt;Forward Goes one step forward in the list of selections.&lt;BR /&gt;Back Goes back one step in the list of selections.&lt;BR /&gt;Pareto Select Makes a pareto selection in the specified field based on an expression and percentage.&lt;BR /&gt;This type of selection is used to select the top contributors to a measure,&lt;BR /&gt;typically in line of a general 80/20 rule. For example, to find the top&lt;BR /&gt;customers that contribute to 80% of the turnover, Customer should be used as&lt;BR /&gt;field, sum(Turnover) should be used as expression and 80 should be used as&lt;BR /&gt;percentage.&lt;BR /&gt;Lock Field Locks the selections in the specified field.&lt;BR /&gt;Lock All Locks all values in all fields.&lt;BR /&gt;Unlock Field Unlocks the selections in the specified field.&lt;BR /&gt;Unlock All Unlocks all values in all fields.&lt;BR /&gt;Unlock and Clear All Unlocks all values and clears all selections in all fields.&lt;BR /&gt;Clear Other Fields Clears all related fields except the one specified.&lt;BR /&gt;Clear All Clears all selections except locked ones.&lt;BR /&gt;Clear Field Clears a specific field.&lt;BR /&gt;Copy State Contents Copies the selection from the Source State to the Target State. Only available&lt;BR /&gt;when alternate states have been defined.&lt;BR /&gt;Swap State Contents Swaps the selections between State 1 and State 2. Only available when alternate&lt;BR /&gt;states have been defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Layout&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Activate Object&lt;/SPAN&gt; Activates the object specified by Object ID. This &lt;SPAN style="color: #ff0000;"&gt;function does not work in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Ajax client.&lt;/SPAN&gt;&lt;BR /&gt;Activate Sheet Activates the sheet specified by Sheet ID.&lt;BR /&gt;Activate Next Sheet Opens the next sheet in the document.&lt;BR /&gt;Activate Previous&lt;BR /&gt;Sheet&lt;BR /&gt;Opens the previous sheet in the document.&lt;BR /&gt;Minimize Object Minimizes the object specified by Object ID.&lt;BR /&gt;Maximize Object Maximizes the object specified by Object ID.&lt;BR /&gt;Restore Object Restores the object specified by Object ID.&lt;BR /&gt;Set State Name Applies the specified State to the object specified by Object ID. Only available&lt;BR /&gt;when having defined alternate states.&lt;/P&gt;&lt;P&gt;Bookmark&lt;BR /&gt;Apply Bookmark Applies a bookmark specified by Bookmark ID. If two bookmarks have the&lt;BR /&gt;same ID, the document bookmark is applied. To apply the server bookmark&lt;BR /&gt;specify Server\bookmarkID.&lt;BR /&gt;Create Bookmark Creates a bookmark from the current selection. Specify Bookmark ID and&lt;BR /&gt;Bookmark Name. Select Hidden to create a hidden bookmark.&lt;BR /&gt;Replace Bookmark Replaces the bookmark specified by Bookmark ID with the current selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Print&lt;BR /&gt;Print Object Prints the object specified by Object ID. Specify the Printer name if the&lt;BR /&gt;object should be sent to another printer than the default printer. (Not available&lt;BR /&gt;as document and sheet trigger.)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Print Sheet &lt;/SPAN&gt;Prints the sheet specified by Sheet ID. (Not available as document and sheet&lt;BR /&gt;trigger.) &lt;SPAN style="color: #ff0000;"&gt;This function does not work in AJAX client&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Print Report Prints the report specified by Report ID. Specify the Printer name if the&lt;BR /&gt;report should be sent to another printer than the default printer. Mark the&lt;BR /&gt;check box Show Print Dialog if you want the Windows print dialog to be&lt;BR /&gt;shown. (Not available as document and sheet trigger.)&lt;/P&gt;&lt;P&gt;External&lt;BR /&gt;Export Exports a table containing a specific set of fields, but only those records that&lt;BR /&gt;are applicable according to the made selection are exported. Click on the&lt;BR /&gt;Setup button on the Actions page to open the Export Action Settings dialog.&lt;BR /&gt;(not available as document and sheet trigger)&lt;BR /&gt;Launch Launches an external program. The following settings can be configured in the&lt;BR /&gt;Actions dialog:&lt;BR /&gt;Application&lt;BR /&gt;Click on Browse... to find the application that should be launched. (Not available&lt;BR /&gt;as document and sheet trigger.)&lt;BR /&gt;Filename&lt;BR /&gt;Enter the path to the file that should be opened with the application specified&lt;BR /&gt;above. (Not available as document and sheet trigger.)&lt;BR /&gt;Parameters&lt;BR /&gt;Specify parameters for the command line from which the application is started.&lt;BR /&gt;(Not available as document and sheet trigger.)&lt;BR /&gt;Working Directory&lt;BR /&gt;Sets the working directory for the application to be launched. (Not available&lt;BR /&gt;as document and sheet trigger.)&lt;BR /&gt;Exit application when QlikView is closed&lt;BR /&gt;Forces the application to be closed when QlikView is exited. (Not available as&lt;BR /&gt;document and sheet trigger.)&lt;BR /&gt;This function does not work in AJAX client.&lt;BR /&gt;Open URL Opens the URL in the default web browser. (Not available as document and&lt;BR /&gt;sheet trigger.)&lt;BR /&gt;Open QlikView Document&lt;BR /&gt;Opens the specified document. The file extension must be included. (Not available&lt;BR /&gt;as document and sheet trigger.)&lt;BR /&gt;Mark the check box Transfer State to transfer the selections from the original&lt;BR /&gt;document to the one you wish to open. The opened document will first be&lt;BR /&gt;cleared of selections.&lt;BR /&gt;Mark Apply state on top of current to retain the second document’s selections&lt;BR /&gt;and apply the original document’s selections on top of them.&lt;BR /&gt;Open in same Window opens the new document in the same browser tab&lt;BR /&gt;when using the AJAX ZFC client.&lt;BR /&gt;Run Macro Enter the path and name of the macro to be run. Type any name for which it is&lt;BR /&gt;possible to later create a macro in the Edit Module dialog, or a calculated&lt;BR /&gt;expression for dynamic update.&lt;BR /&gt;Set Variable Assigns a value to the specified variable.&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Show Information&lt;/SPAN&gt; Shows the associated information, such as a text file or an image for the field&lt;BR /&gt;specified by Field. &lt;SPAN style="color: #ff0000;"&gt;This function does not work in AJAX client&lt;/SPAN&gt;.&lt;BR /&gt;Close This Document Closes the active QlikView document.&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Reload &lt;/SPAN&gt;Performs a reload on the current document. &lt;SPAN style="color: #ff0000;"&gt;This function does not work in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;AJAX client.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dynamic Update Performs a dynamic update of the data in the currently loaded document. The statement for&lt;BR /&gt;the dynamic update is to be entered in the Statement field.&lt;BR /&gt;The intended usage of Dynamic Update allows a QlikView Administrator to feed limited&lt;BR /&gt;amounts of data in to a QlikView document from a single source without running a reload of&lt;BR /&gt;the document. Analysis can then be performed by multiple clients connecting to the Qlik-&lt;BR /&gt;View Server.&lt;BR /&gt;Note! The uploaded information is stored in RAM only so any data added or updated using&lt;BR /&gt;Dynamic Update will be lost if a reload of the document is performed.&lt;BR /&gt;The following grammar describes the possible statements and their components that can be&lt;BR /&gt;used with the Dynamic Update feature:&lt;BR /&gt;l statements ::= statement { “;” statement }&lt;BR /&gt;l statement ::= insert_statement | update_statement | delete_statement | begin_transaction_&lt;BR /&gt;statement | commit_transaction_statement&lt;BR /&gt;l insert_statement ::= "INSERT" "INTO" ("*" | table_name) field_list "VALUES"&lt;BR /&gt;value_list {"," value_list} ["KEY" ["AUTO" | (" (" field_list ")")] ["REPLACE"&lt;BR /&gt;(["WITH" "ONE"] | "EACH") ]]&lt;BR /&gt;l update_statement ::= "UPDATE" ("*" | table_name) set_clause {"," | set_clause}&lt;BR /&gt;"WHERE" condition ["AUTO" "INSERT"]&lt;BR /&gt;l delete_statement ::= "DELETE" "FROM" ("*" | table_name] "WHERE" condition&lt;BR /&gt;l begin_transaction_statement ::= "BEGIN" ("TRANSACTION" | "TRAN") [trans_&lt;BR /&gt;name]&lt;BR /&gt;l commit_transaction_statement ::= "COMMIT" ["TRANSACTION" | "TRAN"]&lt;BR /&gt;[trans_name]&lt;BR /&gt;l table_name ::= identifier | quoted_name&lt;BR /&gt;l field_list ::= "(" field_name {"," field_name} ")"&lt;BR /&gt;l value_list ::= "("value {"," value} ")"&lt;BR /&gt;l set_clause ::= "SET" field_name "=" any_valid_non_aggregated_qlikview_expression&lt;BR /&gt;l field_name ::= identifier | quoted string&lt;BR /&gt;l value ::= identifier | any_qlikview_number | quoted string&lt;BR /&gt;l condition ::= any_valid_non_aggregated_qlikview_expression&lt;BR /&gt;l identifier ::= any_qlikview_identifier&lt;BR /&gt;l quoted_string ::= "[" [^]]+ "]"&lt;BR /&gt;Example:&lt;BR /&gt;UPDATE AbcTable SET Discount = 123 WHERE AbcField=1&lt;BR /&gt;Note! To use this feature, Dynamic Update must be allowed both on the Document and on&lt;BR /&gt;the Server.&lt;/P&gt;&lt;P&gt;Note!&lt;BR /&gt;Actions that trigger other actions, so called cascading actions, may cause unforeseen consequences and are&lt;BR /&gt;not supported!&lt;/P&gt;&lt;P&gt;Note!&lt;BR /&gt;There are limitations as to the behavior of certain macro triggers when working with documents on Qlik-&lt;BR /&gt;View Server. Please study the section Using Macros in QV Documents on the QV-Server (page 893) before&lt;BR /&gt;designing server documents with macro triggers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 16:27:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AJAX-with-OnOpen-macro/m-p/188875#M1281175</guid>
      <dc:creator>Bill_Britt</dc:creator>
      <dc:date>2013-04-16T16:27:37Z</dc:date>
    </item>
  </channel>
</rss>

