Skip to Content
avatar image
Former Member

how to fix textEdit UI rows

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Nov 24, 2008 at 09:39 AM

    Hi

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 24, 2008 at 10:18 AM

    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/9587677837be4ebab175ede37364a2/content.htm

    Hope it helps u.

    Regards,

    Archana

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 24, 2008 at 01:39 PM

    A workaround would be using four InputFields below each other.

    Armin

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 01, 2008 at 05:01 AM

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

    Add comment
    10|10000 characters needed characters exceeded