Re: Use beforeSave() for validation and display error message

Chris Kent <[email protected]>
Newsgroups gmane.comp.cms.farcry.devel
Message-ID <[email protected]>
You would probably be better off using a validate method inside your 
content type. you can set these to validate individual properties. Default 
is to name the function "ftValidate+propertyname", e.g. ftValidateUserID

Look at ftValidateUserID in /core/packages/types/farUser.cfc for an example 
to check for unique userID.

Chris

On Monday, 19 August 2013 09:02:46 UTC+1, Xiaofeng Liu wrote:
>
> Hi,
>
> Within webtop on a custom type, if I'd like to use beforeSave() to check, 
> for example the uniqueness of username before my type record gets saved, 
> how do I bring back that validation message to display on the farcry 
> scaffolded list view or maybe the add/edit view?
>
> -- 
> Best regards,
>
> Xiaofeng
>

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcry-dev-/[email protected]
To unsubscribe, email: farcry-dev+unsubscribe-/[email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
--- 
You received this message because you are subscribed to the Google Groups "farcry-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to farcry-dev+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
For more options, visit https://groups.google.com/groups/opt_out.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.