How to break a field

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
sohashi
Posts: 24
Joined: Thu Dec 01, 2016 1:21 pm

How to break a field

Post by sohashi »

Hi,

Display it in a browser using LANSA for the Web.
Is it possible to start a new line after entering characters in the field?
Please tell me who knows how.

Best Regards,
Shumpei Ohashi
User avatar
Dino
Posts: 472
Joined: Fri Jul 19, 2019 7:49 am
Location: Robbinsville, NC
Contact:

Re: How to break a field

Post by Dino »

If you check the example in the home page of Visual LANSA IDE, under
"Explore Material Design Controls" (xmdmain web page), go to text fields,
you will see an example using what it calls variable height field box:

Image

Opening the web page, following the link to the view xMdTextFields
You can see the fields for the screen are defined like this, note the Multiline(True):

Code: Select all

Define_Com Class(#PRIM_MD.Edit) Name(#Edit9) Displayposition(2) Caption('Label') Left(20) Parent(#Panel8) Tabposition(2) Top(127) Width(288) Appearance(TextFieldAreaBox) Multiline(True) Height(58) Helperposition(None)

Define_Com Class(#PRIM_MD.Edit) Name(#Edit15) Displayposition(3) Caption('Label') Left(20) Parent(#Panel8) Tabposition(3) Top(195) Width(288) Appearance(TextFieldAreaBox) Multiline(True) Height(58) Helperposition(None)
adale
Posts: 210
Joined: Wed Apr 08, 2020 9:18 pm
Location: Poplarville, MS

Re: How to break a field

Post by adale »

Not sure if this will help or if it is what you are asking for, but when I want my text (text in a field, or a caption for a label) to be with a line break, below is what I have done. the + (10).asUnicodeString is the line break.

* Two line caption label. Need to adjust caption row sizing.
* #TextContactUs := "Contact Us" + (10).asUnicodeString + "Now you fool."

This will now have the Text field #TextContactUs show as:

Contact Us
Now you fool.
Arlyn Dale
Servias LLC
Post Reply