Qlik Community
Collaborate with over 60,000 Qlik technologists and members around the world to get answers to your questions, and maximize success.
Join Us| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | // create a variable for the QVD name as it will be reusedlet allTweets = 'SearchResults.qvd';// We check the size of the QVDlet size = filesize('$(allTweets)');// If the size is greater than zero then we already have (historical) data stored in it// and so we should load it to the TwitterConnector_Search table// After the first time this script is executed, this should always runif not isnull(size) then TwitterConnector_Search: LOAD * FROM '$(allTweets)' (qvd);end if// We now make the call to QVSource and get the latest data// Notice at the end that we're only adding Search_id's to the table that aren't already in it by using the 'where not exist'TwitterConnector_Search:LOAD from_user_id_str as Search_from_user_id_str, ... id as Search_id, ... entity_source as Search_entity_sourceFROM[http://localhost:5555/Web/TwitterConnector/?table=Search&searchTerm=qlikview](txt, utf8, embedded labels, delimiter is '\t', msq)where not exists ('Search_id', id);// At this point the table includes both historical and the latest data// We can now store it to the QVD, ready to be reloaded next time the script is runSTORE TwitterConnector_Search INTO '$(allTweets)'; |
Collaborate with over 60,000 Qlik technologists and members around the world to get answers to your questions, and maximize success.
Join UsSearch Qlik's Support Knowledge database or request assisted support for highly complex issues.
Submit a caseExperiencing a serious issue, please contact us by phone. For Data Integration related issues please refer to your onboarding documentation for current phone number.
Call Us