0

Html text

Hi I want to create an html text block to export to SQL with paragraphs combined form various text fields. I used an array solution from another example in the forum:

let myArr := [ 'Note Open Export' , 'Note Open Export', 'Note Battery Export' , 'Note Battery Pack Export'];

let htmlString := "";

htmlString := htmlString + for i in range(0, count(myArr)) do

item(myArr, i) + "<br>"

end;

html(htmlString)

It work in some cases but in others, it tells me all components of an array must be of the same type, although they are all the same text type fields. My solution required is how to combine these boxes in an HTML with line breaks between, but firstly not all boxes might have text in them always so a yes no field such as 'note Open' will say if there is text that needs to be included. SO if yes include in HTML otherwise not. Help would be greatly appreciated thanks.

2 replies

null
    • Ninox partner
    • RoSoft_Steven.1
    • 4 yrs ago
    • Reported - view

    Wynand,

    Maybe this helps a little (Pictures say more than words...)

     

    Steven

    • wynand
    • 4 yrs ago
    • Reported - view

    Thanks Steven, you pointed me in the right direction, the solution worked.

Content aside

  • 4 yrs agoLast active
  • 2Replies
  • 1016Views