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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to manually Insert Data into Table?

Hey all,

in the script editor, while loading I want to add lines to a (inlined) table.

At the moment I'm doing this via the concatenate command like this:

sub LogDb (pMessage)

  let vLogDate = timestamp(now(), 'DD.MM.YYYY hh:mm:ss.ff');

  Concatenate(LogTable)

  Load * inline [

      MessageDate, Message

      $(vLogDate), $(pMessage)

  ];

end sub;

This seems pretty clunky. I wondered if there is something like an INSERT or APPEND command, but couldn't find any in the documentation nor any apropriate discussion here in the community.

So my question: Is this the way you do it, or is there a different (better) way to achieve that?

Kind regards

Sebastian

Edit: clearified scope

3 Replies
Digvijay_Singh

Do you need something like below in Insert menu of script editor?

Insert-->Load Statement-->Load Inline

Not applicable
Author

Hey,

no, not really, I'm just asking, if there is a more viable way then creating a new inline table and concatenating it with the existing one. Something like a "INSERT" command in SQL.

Thanks for your answer though.

cheers

sebastian

Digvijay_Singh

don't think so AFAIK for the data created in script. Let us hear from other experts though!