Question

Limit text entry size

  • 14 April 2022
  • 5 replies
  • 159 views

Userlevel 3
Badge +6

Is there a lightweight method to limit a text box entry length on the client in apps 10 (similar to adding a max length attribute to an html tag)?

 

I would like to to this without creating a validation event. We have an external system that requires a smaller field size than what IFS allows.


5 replies

Userlevel 7
Badge +20

Hi @mdeanton ,

 

You can use the oracle LENGTH() function for the condition in a event like below:

BEGIN

IF (<some_condition>) THEN

IFSAPP.ERROR_SYS.Record_General('<LogicalUnit>','The value you have entered in the custom field does not exist in the LOV. Please enter a correct value and save.');

END IF;

END;

Source: Validation of field | IFS Community

 

Thanks,

Kasun

Userlevel 3
Badge +6

Thanks but I asking if there was a way to accomplish this without having to use a plsql event.

Userlevel 5
Badge +10

Hi @mdeanton,

If your company is using APP10 Aurena client, then you can change the Maxlength of any field via the page designer.
 

 

Userlevel 3
Badge +6

Sorry the questions was for Apps 10, not using aurena.

Userlevel 7
Badge +21

Although the question was for IFS10, I still want to make the remark of a nice Aurena feature: showing the number of available positions:

So 8 positions out of the possible 10 used. I have no idea on what type of field this works or any key field?

Reply