- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-14-2022 05:45 AM
I have scripts which I want to write on the map. Like we have on before and on after scripts on the Transform map where can we code.
I tried using the below :
- OnBefore script on the data source I tried to script. I am not able to access the values:
for(var i=0;i<input.length;i++){
gs.info("payload is"+input[i].payload); ///This returns undefined
if(checkModel(input[i].payload)){
input[i].status='SKIPPED';
}
}
function checkModel(payload){
for(var i=0;i>payload.items.length;i++){
gs.info('Payload Model'+payload.items[i].values.u_model); //This is undefined
}
}
Can someone help me with this.
Regards
Abish R
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-19-2022 07:19 AM
I sorted it out.
Below is the answer :
I understood that the before script block on the data source of the map runs after the transition has happened from the Import set table to Temp table but before the data is passed to IRE for processing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-19-2022 07:19 AM
I sorted it out.
Below is the answer :
I understood that the before script block on the data source of the map runs after the transition has happened from the Import set table to Temp table but before the data is passed to IRE for processing.