validate extender attachment

1
0
-1

Hello, I need to validate that an attachment is a form xls. In version 5. * Existed the regex validator, at 6. * As I can do?

thanks

regards

Comments

Submitted by ale.ghirardi on Fri, 04/25/2014 - 15:26

Thank you very much!! Now as I assign the attachment to a process variable, I have read that a document is created in the pool, but when I do the assignment in the option data widget shows me the following error: "expression document type is not supported"

2 answers

1
+1
-1

Hi, I think it's better to use the endsWith method.

field_File1.getFileName().endsWith(".xls")

Regards

1
0
-1

Hello,

It has been replaced by a groovy validator that is easier to work with. See following example.

if your widget is named file1, the groovy validor should take into parameter :

field_File1.getFileName().contains(".xls")

Thanks

Notifications