cancel
Showing results for 
Search instead for 
Did you mean: 

How to avoid the label text compression in mobile device?

former_member197782
Participant
0 Kudos

Hi experts,

      I have tested my application in ATE there the label text is displaying completely but when I tested in iphone that text is compressing in detail screen fields

and the images which I kept for buttons also not coming.

       What is the solution to solve these problems.

Thanks in advance,

Swaroopa.

Accepted Solutions (1)

Accepted Solutions (1)

jason_latko
Advisor
Advisor
0 Kudos

Swaroopa,

To correct the label truncation on iPhone, you need to provide more label space on the detail fields themselves.  Adjust the "Label Width" property on the Field Definition tab for each field to make this larger as needed.  You could also apply a "Label" Style for the fields on the Field Styles tab to make the label text font smaller, allowing more label to fit in a smaller space.

Even better is a new feature that was added with SMP 3.0 Agentry that allows labels to be placed above the field text, rather than to the left.  We are using this feature in our newest prodcuts moving forward to allow more label and field text to be displayed at one time.  Notice the blue labels on top on this iPhone screen:

Jason Latko - Senior Product Developer at SAP

former_member197782
Participant
0 Kudos

Hi Jason,

    Thanks for the reply. I have solved this through by defining a style for the label and I mapped that style to the label at field level. Now it looks fine.

Thanks,

Swaroopa.

agentry_src
Active Contributor
0 Kudos

Hi Swaroopa,

Thanks for posting your solution for others' benefit.  I am sure there will be some who you will save a lot of headaches by doing so.

Cheers, Mike

SAP Rapid Innovation Group - RIG

Answers (1)

Answers (1)

midhun_vp
Active Contributor
0 Kudos

What type of app you have developed? is it a hybrid app or native app?

I am assuming that you are talking about HWC apps. Since you know that the text field is going to be large for a field in the detail screen increase the number of lines of that editbox. Click on editbox of details screen>properties>click on advanced tab>increase the number of lines.

Hope that helps.

- Midhun VP