Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
satyaprakash
Partner - Contributor III
Partner - Contributor III

qlik field api getData bind issue in mashup

Hi All,

Using qlik field getData api.

var abc = app.field('some_field).getData();

abc.OnData.bind(function(){

     console.log(abc.rows.length) // here sometimes length is coming as zero

     abc.rows.forEach(function(row){

             // here is some condition

}

});

I am using this script in mashup. In qlik extension it has always worked but in mashup sometimes rows is having values and sometimes it won't. Here, field name is same always.


https://help.qlik.com/en-US/sense-developer/September2018/Subsystems/APIs/Content/Sense_ClientAPIs/C...

Any help?


Satya

5 Replies
ajaykakkar93
Specialist III
Specialist III

hi i'll look into it if i am able to make an example ill share it here you can refer it and apply it on your end.

Please mark the correct replies as Solution. Regards, ARK
Profile| GitHub|YouTube|Extension|Mashup|Qlik API|Qlik NPrinting

vikraant
Creator
Creator

Hi Satya,

Can you share a demo .qvf application so that I can test the code?

ajaykakkar93
Specialist III
Specialist III

Hi,

     Can you tell me about your case what exactly you are trying to achieve?

     what is your goal?

     what should be your end result?

Please mark the correct replies as Solution. Regards, ARK
Profile| GitHub|YouTube|Extension|Mashup|Qlik API|Qlik NPrinting

satyaprakash
Partner - Contributor III
Partner - Contributor III
Author

Hi Vikraant/Ajay,

We have to apply default date selection while opening an app based on some condition. Earlier just after opening an app i was reading get Data from field. So, sometimes data was coming and sometimes it won't. Now, i have moved code to last. (all things will be done and then using this api operation).


It is working now.


Thanks.

ajaykakkar93
Specialist III
Specialist III

Try this extension for qlik sense sheets

https://developer.qlik.com/garden/5b5d47b90f5758001d378640

Please mark the correct replies as Solution. Regards, ARK
Profile| GitHub|YouTube|Extension|Mashup|Qlik API|Qlik NPrinting