Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Returning Row Count and Dynamic Filename to WebService

Hi,
I have all the data I needed in tFileOutputDelimited that might contains thousand of rows. The tFileOutputDelimited has a dynamic filename and the final output file will be compressed as zip file. The schema for tFileOutputDelimited has 5 columns.
My next step is to send the row count and the filename into a WebService (tBufferOutput), but I can't figure it out. For the tBufferOutput, I only need ROW_COUNT and FILENAME in the schema, and 1 row.
This is what I have now,
tFileOutputDelimited ----> tMap -----> tBufferOutput
My problems with what I have now are:
1. tBufferOutput will have multiple rows instead of a single row
2. I cannot get the final row count from tFileOutputDelimited. I am trying to use the tFileOutputDelimited.NB_LINE.
Can anybody help?
Thanks,
Donny
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi mailforvijaym,
Thank you for your help. Storing those parameters in context and using tFixedFlowInput works.
Regards,
Donny

View solution in original post

2 Replies
_AnonymousUser
Specialist III
Specialist III

Hi Donny
Sore the row count and dynamic file name in context variable and with the help of tFixedFlowInput --> tBufferOutput with the context variable
to find & sore the row cont in context variable after each insert of row in tFileOutputDelimited increase the context variable by 1 (context variable to be integer) tFileOutputDelimited --> tJavaRow (Main row) tJavaRow should contain context.<NAME> = context.<NAME>+1;
to sore the file name in context variable. it depends how u have given the file name in tFileOutputDelimited.
please feel to ask any clarification on this
Anonymous
Not applicable
Author

Hi mailforvijaym,
Thank you for your help. Storing those parameters in context and using tFixedFlowInput works.
Regards,
Donny