Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Writing text from a line as an html file

Hello,

I would like to download from the selected row/rows (by user) the value from the field (html code) and then save it to a file and after that open it as a web page.

I know that I need to write a macro but I can not do this.

Ahtml codesave
A<code>A piece of computer code</code>save
B<code>A piece of computer code 2 </code>save

Regards

7 Replies
hector_munoz
Specialist
Specialist

Hi Paula,

Try something the following:

T1:

LOAD * INLINE [

A, html code, save

A, <code>A piece of computer code</code>, save

B, <code>A piece of computer code 2 </code>, save

];

T2:

LOAD [html code] AS '<!DOCTYPE html>'

RESIDENT T1;

STORE T2 INTO .\html.html (txt);

After this, open the HTML file created.

Regards,
H

Not applicable
Author

Hi,

Thank you for your answer.

Unfortunately, not exactly what I meant.

When I click on 'save', I just want to save the code and then display it on the screen.

hector_munoz
Specialist
Specialist

Hi Paula,

Do you mean you want to extract data forma an HTML format?

Regards,

H

Not applicable
Author

Hi Hector,

I want to save the code <html> from the line as a .html file and then open it on the website.

Regards

hector_munoz
Specialist
Specialist

OK,

Then I would look for in the Qlik Community for pieces of macros that:

Regards,

H

Not applicable
Author

Thank You all for your help.

In Qlikview there are two built-in macros, 'Export' and 'Open URL', they were enough to solve my problem.