Skip to main content
Question

Limit text entry size

  • April 14, 2022
  • 5 replies
  • 239 views

Forum|alt.badge.img+7

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

Kasun Balasooriya
Superhero (Employee)
Forum|alt.badge.img+20
  • Superhero (Employee)
  • 347 replies
  • April 14, 2022

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


Forum|alt.badge.img+7
  • Author
  • Do Gooder (Customer)
  • 18 replies
  • April 14, 2022

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


Shani Fernando
Hero (Employee)
Forum|alt.badge.img+11
  • Hero (Employee)
  • 87 replies
  • April 14, 2022

Hi @mdeanton,

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

 


Forum|alt.badge.img+7
  • Author
  • Do Gooder (Customer)
  • 18 replies
  • April 15, 2022

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


eqbstal
Superhero (Partner)
Forum|alt.badge.img+21
  • Superhero (Partner)
  • 701 replies
  • June 28, 2022

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?