Restrict input length of Tabular Form columns

One problem with Tabular Form Column is that they don’t have a “Maximum Width” property as Page Items do. APEX automatically generates a maxlength=2000 for all columns. What is the result? The user gets a


when he enters a too long value. Not really nice, isn’t it? And now he has to start counting so that he knows where to cut of…

That’s why I have added the new ApexLib hint $APEXLIB_MAX_LENGTH=length$ eg. $APEXLIB_MAX_LENGTH=40$ to restrict the enterable input length. The ApexLib Framework will automatically generate the necessary HTML attributes and also verify the length when the page is submitted.

This hint has to be set in the “Link Attributes” property of the Tabular Form column, as the other Tabular Form hints like $APEXLIB_REQUIRED$, …

You can test this feature on the ApexLib Feature Demonstration site.