HTML Area not Displaying?

Discuss all problems you have with Servoy here. It might help to mention the Servoy version and Operating System version you are using

HTML Area not Displaying?

Postby john1598360627 » Sat Dec 11, 2021 1:47 am

PROBLEM

HTML Area element is not appearing data provider under certain situations.

EXAMPLE
I have a dataprovider that showcases html. This dataprovider shows up in the NG Grid columns for example.

Now, when I try and showcase this dataprovider within an HTML Area it just appears blank. Only the toolbar of the HTML Area is there... Sometimes. Other dataproviders will appear just fine. Other's won't.

VERSION
Version: 2021.3.0.3642

COMMENTS
I have no idea why it's working for some dataproviders and not others.

My only guesstimate is that some of the data may actually have Rich Text instead of HTML, would that cause any conflicts with the HTML Area?
john1598360627
 
Posts: 169
Joined: Tue Aug 25, 2020 3:03 pm

Re: HTML Area not Displaying?

Postby ROCLASI » Mon Dec 13, 2021 5:50 pm

Hi John,
john1598360627 wrote:My only guesstimate is that some of the data may actually have Rich Text instead of HTML, would that cause any conflicts with the HTML Area?


Yes, Rich Text will not render in a HTML Area. For that you have the RTF_AREA display type.

Hope this helps.
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: HTML Area not Displaying?

Postby john1598360627 » Thu Dec 16, 2021 2:19 am

So I looked up the database data. I can confirm that the text is just text with some newline breaks every so often.

I did something though, I switched the dataprovider for the html area that is working with one that isn't work and... the dataprovider works ONLY on one HTML Area. Even stranger is that the text appears if I do attach it to a textbox.

1st - Textbox displaying the dataprovider.
2nd - HTML Area not displaying the same dataprovider
Screenshot 2021-12-15 141252.png
Screenshot 2021-12-15 141252.png (3.32 KiB) Viewed 3222 times


The final HTML Area on the page, displaying the same dataprovider as the previous elements. However, shows up ONLY in this last HTML Area. It it setup the exact same way as the other HTML Area mind you.
Screenshot 2021-12-15 141232.png
Screenshot 2021-12-15 141232.png (3.25 KiB) Viewed 3222 times



... What is going on? Is only one HTML Area allowed on a page at a single time? Why does only one HTML Area work at a time?
john1598360627
 
Posts: 169
Joined: Tue Aug 25, 2020 3:03 pm

Re: HTML Area not Displaying?

Postby john1598360627 » Wed Jan 12, 2022 2:38 am

I'm still curious as to why only 1 HTML Area can be shown on a page at a time!
john1598360627
 
Posts: 169
Joined: Tue Aug 25, 2020 3:03 pm

Re: HTML Area not Displaying?

Postby jcompagner » Wed Jan 12, 2022 2:45 pm

i did a quick test and it works fine for
2 html area's both the same dataprovider and it is showing fine and i can adjust one or the other.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8828
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: HTML Area not Displaying?

Postby john1598360627 » Thu Jan 13, 2022 1:37 am

jcompagner wrote:i did a quick test and it works fine for
2 html area's both the same dataprovider and it is showing fine and i can adjust one or the other.

I'm using multiple different dataproviders per HTML area. 3 different HTML Areas, 3 different dataproviders. Is only 1 dataprovider allowed for HTML areas per form?
john1598360627
 
Posts: 169
Joined: Tue Aug 25, 2020 3:03 pm

Re: HTML Area not Displaying?

Postby jcompagner » Thu Jan 13, 2022 10:18 am

no that shoudn't matter at all, then they don't have any relation or notion of each other..
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8828
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to Discuss possible Issues and Bugs

Who is online

Users browsing this forum: No registered users and 7 guests