I want to validate imported filename. I have written script which validate the filename, but i am not able to call this script on import button click, so that it will give alert on invalid filename. I have read other post also, but all says we need to custom the OOTB import functionality. Is there anyother way ?Is it possible ?Ts 6.7.1Win 2003.Thanks...
You have exactly two options here, customize OOTB Import or build your own.
Or third option - add an onSaveValid event handler and validate the field there. It's not quite as nice as immediate feedback, but it is an option.
Thanks all for you response.@ghoti - You are saying for the field validation, where we are going to browse the imported files. Instead of validation on the import, i need to do validation on the browse of imported file.Thanks...
If you need to do validation at the time of browsing or importing - then yes, Boris is right - you only have two options. The third option I presented was to perform validation of the imported item (post-import) before saving the DCR.
I have this Browse button<>browser size="40" maxlength="80" extns=".gif,.jpg" />When i will click on this button, i will open with dialog box, now when file is selected, how can i call IWItem.setRegex( RegX ) for validation of filename after Ok button click. Or is there any other way for validation like this ?
Firstly, TS Browser has nothing whatever to do to TS Import, that's two different concepts.My previous comments were about customizing Import.Secondly, do not bother with validation regex. Although TS Developers' Guide and FormAPI Guideare somewhat inconsistent on the topic, <browser> Item ignores validation regex (unless ofcourse 7.2 differs in that respect as well)