A paragraph of static text in an app?

I’d like something like a “label” in app studio, but one that could hold like a paragraph of info.

I mean something that I, the creator of the app, put in and the user cannot edit it. Again, like a label. Just bigger, with word wrap.

Does that exist?

The hackiest solution I could think of would be to query a UD table and store every box’s text in it, then display that in my app as a read-only “text area” which references the query result.

But there’s a better way, right?

Is there a specific reason you don’t want to use a label? I’ve put paragraphs of info in a label and just set the alignment as left instead of right justified after making it big enough to hold the info.

lblLegend.Appearance.TextHAlign = Infragistics.Win.HAlign.Left;

App Studio… go try there. You’ll reach for the whiskey very quickly.

1 Like

Completely overlooked the App Studio part. I knew there was a reason I avoided App Studio…

Use either an erp-rich-text-editor or erp-text-area with the Read Only state set.

Bind this to a field in your TransView:

Create an event like this:

You can set the value to any json escaped string (You can use this site to escape it for you Free Online JSON Escape / Unescape Tool - FreeFormatter.com). If you are using the rich text editor, you can give it HTML.

ex

"<p><strong>Dashboard:</strong><br />\r\nInsertTitleHere</p>\r\n\r\n<p><strong><span style=\"font-size:14px\">Notes:</span></strong></p>\r\n\r\n<ul>\r\n\t<li>&nbsp;</li>\r\n</ul>"

Hook it up to your Window_OnLoad event
image

Voila

Here’s an idea you can vote on. Hopefully this will be easier to do in the future!

2 Likes

That’s excellent.

I was maybe 50% there in my thinking - I was thinking an event bound to TransView.MyMadeUpColumn. But I didn’t know how to write to it.

Row-update. I thought that didn’t actually do anything. But glad it does!

And thank you for the HTML/JSON tip. That’s nice.

Voted!

1 Like

So, before the reply, I got impatient and started down the UD table path.

I plan to have a lot of text boxes on these apps, so the UD table should be faster.

The event idea is better - it keeps it all in the layer and there is the formatting option. I may use it for bigger things like a work instruction or something. Or when I don’t need so many text boxes in one app.

image