Skip to Content
author's profile photo Former Member
Former Member

How to set number of characters in input field ?

I am creating an input field dynamically (via CL_WD_INPUT_FIELD).

I am binding the value (via BIND_VALUE) to an attribute with type CHAR30.

I want to give the possibility to enter a number with 4 digits (0 - 9999).

Is it possible to restrict the number of characters that can be entered to 4 (although the BIND_VALUE attribute has a type CHAR30, that allows 30)?

I have tried it via set_length, bind_length but it seems that the length of the BIND_VALUE attribute overrules the length information...

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2008 at 04:38 PM

    Hi Moritz,

    AFAIk you have no other option as using a NUM4 here.

    Set Length just sets the lengths of the inputfield according to the current character set ... count of charcters but does not limit the value you may enter

    Cheers

    Sascha

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.