Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
paulyeo11
Master
Master

Partial reload create new table , any way how to aviod create new table ?

Hi All

Below is the script working fine :-

temp1:

load  kode_reject,

ApplyMap('SegmentMap', subfield(trim(kode_reject),' ',1), 'Other') AS DESC_REJECT2

resident record_reject_detail_plc;

My issue is after partial reload , it create extra table temp1. may i know how to modify the script , so that  the DESC_REJECT2 field will merge into Table = record_reject_detail_plc

As after recode create new table , it will make table view messy.

3 Replies
ali_hijazi
Partner - Master II
Partner - Master II

you need first to add an ADD before the load so that this table is loaded in partial reload

to avoid re-creation of the table use the following:

if isPartialReload() then

     drop table temp1;

temp1:

add load.....

end if

I can walk on water when it freezes
paulyeo11
Master
Master
Author

Hi Sir

Thank you for your advise , i try to create the script as below :-

if isPartialReload() then

     drop table temp1;

temp1:

add load kode_reject,

ApplyMap('SegmentMap', subfield(trim(kode_reject),' ',1), 'Other') AS DESC_REJECT2

resident record_reject_detail_plc;

end if

But it does not create the DESC_REJECT2 field

PAul

ali_hijazi
Partner - Master II
Partner - Master II

you need to assign ADD before load for the mapping load of SegmentMap

I can walk on water when it freezes