cancel
Showing results for 
Search instead for 
Did you mean: 

how to fix textEdit UI rows

Former Member
0 Kudos

Dear all,

we have a requirement where we have a textedit UI and we want it to accept only 4 rows from the user.

But there is no attribute to enforce that.

1. i have used rows property of textedit (set it to 4) but after 4th line a scrollbar comes and let user enter more lines.

2. binded the context with string type local dic attribute and specified its length to 100 . so if each row contains 25 chars, the total lines should be 4. but problem is if user enters 1 char per line , it allows 100 lines to be added..

kinldy let me know any work around

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

i have decided not to go for this now as no way seems possible.

Former Member
0 Kudos

A workaround would be using four InputFields below each other.

Armin

Former Member
0 Kudos

Dear Archana,

Your link does not open up... Kindly check..

No i dont want to use the four input fields thanks...

Former Member
0 Kudos

HI,

http://help.sap.com/saphelp_nw70/helpdata/EN/43/f546ebd54a025de10000000a1553f7/frameset.htm

Can refer this info.

Hope its helpful to u.

Thanks n Regards,

Archana

Former Member
0 Kudos

Hi,

This link http://help.sap.com/saphelp_nw70/helpdata/EN/43/f546ebd54a025de10000000a1553f7/frameset.htm

will gives u the description of TextEdit UI element.

Write a code for validating the user to enter only 4 row values with the number of characters.No other option

Thanks,

Divya

Edited by: Divya Devi on Dec 1, 2008 5:55 AM

Former Member
0 Kudos

Hi Ankur,

U can refer the following link for ur problem.

http://127.0.0.1:3197/help/index.jsp?topic=/com.sap.devmanual.doc.user/29/9587677837be4ebab175ede373...

Hope it helps u.

Regards,

Archana

yogesh_galphade
Contributor
0 Kudos

Hi

There is only one option ;you have to write a code for all validations.