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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Dynamic Creation of Objects

Hello everybody

I'm working on a project of multi-model framework creation

and i need to know if it is possible how to create or to add an object to  my job (ex: tlogrow or tinputdelimitedfile) without drag and drop

I mean with java code using tjavarow

please help

thank you very much

Labels (3)
1 Solution

Accepted Solutions
TRF
Champion II
Champion II

Here is an example

0683p000009LtCa.png

tFifixedFlowInput with its schema to get the current filepath

0683p000009Lshz.png

 

What else?

 

View solution in original post

13 Replies
TRF
Champion II
Champion II

I don't think so (in fact I'm quite sure you cannot).
When you drag&drop components you "generate" Java source code which is compiled later when you build the job (or run in the studio).
How do you expect to change the byte code at run time?

Anonymous
Not applicable
Author

Hi TRF

thank you very much for your response

i will try to find another process to do my task

vharcq
Contributor III
Contributor III

You could have your two components and filter the input to one or the other using a Context variable

 

Anonymous
Not applicable
Author

The problem is that i dont have a fixed number of inputfiles 

it will be changing from day to another that's why i want to find to add components in a dynamic way

vharcq
Contributor III
Contributor III

Then  you should consider tFileList

Anonymous
Not applicable
Author

the problem is that all i know about filelist can only work with a fixed number of created file 

here i want to create a list  with a non fixed number of file the time of receiving the data flow and than make the mapping

i mean i want to create a job that for example :

at 9:30 it can create ten file and receive the data flow

at 11:30 , it can create 20 file

Anonymous
Not applicable
Author

 the required number of file will be fixed with from admin interface

TRF
Champion II
Champion II

tFileList is the solution for iterating over a list of files with give filename mask(s).

If you want to break the process after a number of iterations (varying for each run), you must use tFileList to get the full list of filenames corresponding to the mask.

After that, iterate (tLoop) to proceed with each file n times where n can be fixed for each run using a context variable (with a different value at each time if you want).

 

Not sure that's what you are looking for as your use case come one piece at a time and is not very clear.

 

 

Anonymous
Not applicable
Author

HI TRF

what i want if it exists a way to change the the number of file to be createfd with a tfilelist manually with java code ,