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.

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.
Labels: APEX, ApexLib, Oracle, tabular form, UI improvement, validation







2 Comments:
Hello,
I tried to use this hint in my apllication and it doesnt work.
I have installed Apexlib framework and im using it in Tabform page in process updating changed rows.
I would like to limit the lenght of one columnfield in tabform. I Use the hint in Link atribute in updatable report and add reference to apexlib javascript files in page template(I use the 'One Level Tabs' template). When checked code of generated page there are references to apexlib javascript files, but generated javascript, where is atribute adding is missing. I searching for two days but dont know where im wrong. Can you help me identify where the error is?
J.M.
By
Anonymous, at 18 April, 2008 09:47
J.M,
best is to write me a mail, but have a look at the comment section of ApexLib Framework - How to Integrate and search for
apexlib is not defined
Maybe that's your problem.
Patrick
By
Patrick Wolf, at 18 April, 2008 10:45
Post a Comment
<< Home