Creating a Rest API or display data using HTML code
Application Type
Reactive

Hi Everyone,
I have a Html code of a website, could you please confirm if i can create a rest api to get and post the data dynamically into my Outsystems app

HTML Code-
<iframe src="https://sslecal2.investing.com?columns=exc_flags,exc_currency,exc_importance,exc_actual,exc_forecast,exc_previous&category=_employment,_economicActivity,_inflation,_credit,_centralBanks,_confidenceIndex,_balance,_Bonds&importance=1,2,3&features=datepicker,timezone,timeselector,filters&countries=14,5&calType=week&timeZone=23&lang=1" width="650" height="467" frameborder="0" allowtransparency="true" marginwidth="0" marginheight="0"></iframe><div class="poweredBy" style="font-family: Arial, Helvetica, sans-serif;"><span style="font-size: 11px;color: #333333;text-decoration: none;">Real Time Economic Calendar provided by <a href="https://www.investing.com/" rel="nofollow" target="_blank" style="font-size: 11px;color: #06529D; font-weight: bold;" class="underline_link">Investing.com</a>.</span></div>


I am attaching the response i got of the html code using postman. Please find attachment below -


Regards,

Saif

Hello Saif, 

You can try to use the "HTLM Element" from Outsystems


Set it as an "I-frame" and feed it the code you receive from your API 

Hope it helps! 

Paulo Rosário

I suggest different way

1. Add html element 

2. Enter name is htmlpage and Tag is "div"

You can add  below javascript in button click

setTimeout(function() {
var x = document.getElementById('htmlpage');
x.innerHTML = $parameters.HtmlCode;

}, 1000);



Regards,

Shahaji


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.