One Star

[resolved] tMap Reset Var. variable based on input row field changing

I'm trying to set a variable to count records and reset the counter when an input field changes.
If my input Work_order Variable changes reset Var.Count1 

 

 
    

My logic is not working as the Var.count1 is not initialized.  I count not find another post that fit my situation. 

 

OS: Win 8.1 Pro
Talend : Version: 5.6.1
1 ACCEPTED SOLUTION

Accepted Solutions
One Star

Re: [resolved] tMap Reset Var. variable based on input row field changing

tJavaFlex worked for this problem.  It would be nice to access Start Code and Main Code within a Tmap.......
Thanks @shong
2 REPLIES
Community Manager

Re: [resolved] tMap Reset Var. variable based on input row field changing

It is a compilation error, Var.count is not defined before you use it, you can use tJavaFlex to implement it, take a look at the component documentation and learn tJavaFlex component. 
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: [resolved] tMap Reset Var. variable based on input row field changing

tJavaFlex worked for this problem.  It would be nice to access Start Code and Main Code within a Tmap.......
Thanks @shong