html without expression

html without expression

  

Hello,

Is it possible to use html without expression. Probably in a screen action or a preparation?

Thanks and regards,

Samuel Stephen R

Hi,


I don't understand your question and furthermore what is it what you want to achieve?


Hello,

I want to create html tabs dynamically based on the count of my entity. looping would not be possible on the screen so I'm trying it on the preparation if possible.

Thanks and regards,

Samuel Stephen

ok, but why would an expression be a problem then?


SyntaxEditor Code Snippet

"<%  var i;
            for i in '"+GetChildren.Count+"'{ %>

<button class='tablink' onclick='openPage('home', this, 'red')'>'"+first+"'</button>
<div id='Home' class='tabcontent'>
  <h3>'"+first+"'</h3>
  <p>Home is where the heart is..</p>
</div>
}%>"

I'm trying this and the loop isn't working.

Err,


I am not sure where to begin.

where do you expect the for-loop to be running?

that said, your code-snippet looks like it's asp.net, even though outsystems is based on c#/asp.net you cannot use asp.net directly!

I suggest to (re)visit the online courses to understand better how outsystems works.


Hi Samuel,

Why can't you use the List records control?


Pass expression inside it and dynamic values from table and make them look like tab and provide links to that tab.

Thanks and Regards,

Suraj Borade