CaptionPosition - LEFT

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
pravin0457432
Posts: 6
Joined: Tue Apr 01, 2025 12:02 am
Location: Raleigh, NC

CaptionPosition - LEFT

Post by pravin0457432 »

Hi All,

Is it possible to change the caption position of a control, from TOP to the LEFT? At the moment we only have TOP or NONE. I have a design layout that looks like this:
Image

One of the way that I can think of to achieve this is to set the field caption to none and then create separate label for the field:
Image

There are quite a few controls on this page so having double the controls seems like a lot of duplication. Is there a better way to achieve this?
davidbalansa
Posts: 92
Joined: Mon Feb 01, 2016 10:08 am

Re: CaptionPosition - LEFT

Post by davidbalansa »

If you are referring to repository fields on a web page, you could use the pre material design rendering.

Change the Define_com statement of the fields:

Define_Com Class(#STD_TEXT.EditField) ...

To

Define_Com Class(#STD_TEXT.Visual) ...

Hope this helps.
pravin0457432
Posts: 6
Joined: Tue Apr 01, 2025 12:02 am
Location: Raleigh, NC

Re: CaptionPosition - LEFT

Post by pravin0457432 »

Thank you!
This was exactly what I was looking for. 8-)
adale
Posts: 210
Joined: Wed Apr 08, 2020 9:18 pm
Location: Poplarville, MS

Re: CaptionPosition - LEFT

Post by adale »

Another idea to consider (for different uses of the field in your application), is you can define different Visualizations for the field in your repository.
Then when you need to include the field in a view/dialog/etc. if you click the arrow to expand the field you can select which visualization to drag to the editor. I have used this for certain numeric fields where I want the MD date or spin edit to show for general use, but I will just use the simple visual edit in my "backend/admin" application.

VL field visualization.png
VL field visualization.png (65.71 KiB) Viewed 52657 times
Arlyn Dale
Servias LLC
Post Reply