Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Select field by JS

Hi,

I'm new to creating Qlikview extensions AND this forum, so if I break any rule of both of them I'm sorry in advance.

I have a problem with a simple extension, the goal of this one, is to clear all the selections and to select one field each time the app is reloaded.

I want to do it with an extension, in javascript code for professional constraints and personal developpement.

Here is the code of my Document Extension :

var cApath = Qva.Remote + "?public=only&type=Document&name=Extensions/clear/";

Qva.AddDocumentExtension('clear', function() {

    var _this = this;

    var cleared = false;

    function clearing() {

        if (!cleared) {

            _this.Document.Clear();

            cleared = true;

        }

    }

    var myDoc = _this.Document;

    _this.Document.SetOnUpdateComplete(clearing);

});

Currently this thing works, only I tried a LOT of things to get to select a field, to add after the clearing document lign, but there is nothing to do, I don't manage to get it to work.

Could someone tell me what is this mysterious lign that I must add, and which parameters I have to put in. I have access to the qlik application obviously, and am administrator of qlikview and the server.

I'm using Qlikview 12.0.2 64 bit edition.

I use the AJAX client obviously

Thanks in advance for your help.

0 Replies