BPM to validate email address format in UD Fields

Give this a shot
http://www.developerfusion.com/tools/convert/csharp-to-vb/

<http://www.developerfusion.com/tools/convert/csharp-to-vb/>Works pretty
well for the most part!

Sincerely
Jose C Gomez

http://www.josecgomez.com


On Fri, Aug 13, 2010 at 3:44 AM, Mark <teaglem@...> wrote:

>
>
> Hi Jose
> I had another look at this and realised that in your Video you are using C#
> it appears that Version 8 doesn't support it and I don't know the .net
> equivalent.
>
> I will have to look at another way to do this or wait until we move to
> version 9.
>
> Many thanks for all your help
>
> Mark Lawrence
>
>
> --- In vantage@yahoogroups.com <vantage%40yahoogroups.com>, Jose Gomez
> <jose@...> wrote:
> >
> > You should be able to use the same code on AfterFieldChange under Form
> > Wizard. (Again if you have that option in 8)
> >
> > Sincerely
> > Jose C Gomez
> >
> > http://www.josecgomez.com
> >
> >
> > On Mon, Aug 9, 2010 at 7:44 AM, Jose Gomez <jose@...> wrote:
> >
> > > Yeah that's what I was afraid of, we moved out of 8 a while back and
> > > couldn't remember if it was possible :(
> > >
> > > Sincerely
> > > Jose C Gomez
> > >
> > > http://www.josecgomez.com
> > >
> > >
> > > On Mon, Aug 9, 2010 at 3:22 AM, Mark <teaglem@...> wrote:
> > >
> > >>
> > >>
> > >> Hi Jose
> > >> Great video, unfortunatly I am on 8 so the custom rule options are not
> > >> available, I will however see if I can copy the code you used into the
> form
> > >> and try that.
> > >>
> > >>
> > >> Many thanks
> > >>
> > >> Mark Lawrence
> > >> Teagle Machinery Ltd
> > >>
> > >> --- In vantage@yahoogroups.com <vantage%40yahoogroups.com> <vantage%
> 40yahoogroups.com>, Jose Gomez
> > >> <jose@> wrote:
> > >> >
> > >> > I am on 9 so I am not 100% sure if the steps are the same but here
> is a
> > >> > screen cap of how I am doing it, hope it helps.
> > >> >
> > >> > http://www.youtube.com/watch?v=Fdq1CZvmQ-U
> > >> > <http://www.youtube.com/watch?v=Fdq1CZvmQ-U>
> > >> > Sincerely
> > >> > Jose C Gomez
> > >> >
> > >> > http://www.josecgomez.com
> > >> >
> > >> >
> > >> > On Thu, Aug 5, 2010 at 10:06 AM, Mark <teaglem@> wrote:
> > >> >
> > >> > >
> > >> > >
> > >> > > Hi Jose
> > >> > >
> > >> > > Many thanks for your help, I am having a problem applying it as
> rule
> > >> in
> > >> > > form customization, is there a specific method for doing this?
> > >> > >
> > >> > > Mark
> > >> > >
> > >> > >
> > >> > > --- In vantage@yahoogroups.com <vantage%40yahoogroups.com><vantage%
> 40yahoogroups.com> <vantage%
>
> > >> 40yahoogroups.com>, Jose Gomez
> > >>
> > >> > > <jose@> wrote:
> > >> > > >
> > >> > > > I would do a customization on the form, create a rule on
> ShortChar01
> > >> > > or
> > >> > > > whatever your ShortChar is
> > >> > > >
> > >> > > > Set the rule to validate using this function
> > >> > > >
> > >> > > > public static bool isValidEmail(string inputEmail)
> > >> > > > {
> > >> > > > string strRegex = @"^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}" +
> > >> > > > @"\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\" +
> > >> > > > @".)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$";
> > >> > > > Regex re = new Regex(strRegex);
> > >> > > > if (re.IsMatch(inputEmail))
> > >> > > > return (true);
> > >> > > > else
> > >> > > > return (false);
> > >> > > > }
> > >> > > >
> > >> > > > And the action to error
> > >> > > >
> > >> > > > Hope this helps!
> > >> > > >
> > >> > > >
> > >> > > > Sincerely
> > >> > > > Jose C Gomez
> > >> > > >
> > >> > > > http://www.josecgomez.com
> > >> > > >
> > >> > > > mana
> > >> > > > On Thu, Aug 5, 2010 at 5:51 AM, Mark teaglem@ wrote:
> > >> > > >
> > >> > > > >
> > >> > > > >
> > >> > > > > Hi
> > >> > > > >
> > >> > > > > I have some ShortChar UD fields in the Customer Entry form for
> > >> > > additional
> > >> > > > > e-mail addresses, unfortunately some users have added other
> > >> > > information into
> > >> > > > > them.
> > >> > > > >
> > >> > > > > My question is this, with a BPM is there a way to raise an
> > >> exception
> > >> > > > > message if the field doesn't contain the "@" symbol, my hopes
> are
> > >> > > that this
> > >> > > > > will force people to use these fields for e-mail addresses
> only!
> > >> > > > >
> > >> > > > > My 4GL knowledge is very limited so any help would be greatly
> > >> > > appreciated.
> > >> > > > >
> > >> > > > > Vantage 8.03.405a Progress
> > >> > > > >
> > >> > > > > Many thanks
> > >> > > > >
> > >> > > > > Mark Lawrence
> > >> > > > > Teagle Machinery Ltd
> > >> > > > >
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > > >
> > >> > > > [Non-text portions of this message have been removed]
> > >> > > >
> > >> > >
> > >> > >
> > >> > >
> > >> >
> > >> >
> > >> > [Non-text portions of this message have been removed]
> > >> >
> > >>
> > >>
> > >>
> > >
> > >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>


[Non-text portions of this message have been removed]
Hi

I have some ShortChar UD fields in the Customer Entry form for additional e-mail addresses, unfortunately some users have added other information into them.

My question is this, with a BPM is there a way to raise an exception message if the field doesn't contain the "@" symbol, my hopes are that this will force people to use these fields for e-mail addresses only!

My 4GL knowledge is very limited so any help would be greatly appreciated.

Vantage 8.03.405a Progress

Many thanks

Mark Lawrence
Teagle Machinery Ltd
I would do a customization on the form, create a rule on ShortChar01 or
whatever your ShortChar is

Set the rule to validate using this function

public static bool isValidEmail(string inputEmail)
{
string strRegex = @"^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}" +
@"\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\" +
@".)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$";
Regex re = new Regex(strRegex);
if (re.IsMatch(inputEmail))
return (true);
else
return (false);
}

And the action to error

Hope this helps!


Sincerely
Jose C Gomez

http://www.josecgomez.com

mana
On Thu, Aug 5, 2010 at 5:51 AM, Mark <teaglem@...> wrote:

>
>
> Hi
>
> I have some ShortChar UD fields in the Customer Entry form for additional
> e-mail addresses, unfortunately some users have added other information into
> them.
>
> My question is this, with a BPM is there a way to raise an exception
> message if the field doesn't contain the "@" symbol, my hopes are that this
> will force people to use these fields for e-mail addresses only!
>
> My 4GL knowledge is very limited so any help would be greatly appreciated.
>
> Vantage 8.03.405a Progress
>
> Many thanks
>
> Mark Lawrence
> Teagle Machinery Ltd
>
>
>


[Non-text portions of this message have been removed]
Hi Jose

Many thanks for your help, I am having a problem applying it as rule in
form customization, is there a specific method for doing this?

Mark


--- In vantage@yahoogroups.com, Jose Gomez <jose@...> wrote:
>
> I would do a customization on the form, create a rule on ShortChar01
or
> whatever your ShortChar is
>
> Set the rule to validate using this function
>
> public static bool isValidEmail(string inputEmail)
> {
> string strRegex = @"^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}" +
> @"\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\" +
> @".)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$";
> Regex re = new Regex(strRegex);
> if (re.IsMatch(inputEmail))
> return (true);
> else
> return (false);
> }
>
> And the action to error
>
> Hope this helps!
>
>
> Sincerely
> Jose C Gomez
>
> http://www.josecgomez.com
>
> mana
> On Thu, Aug 5, 2010 at 5:51 AM, Mark teaglem@... wrote:
>
> >
> >
> > Hi
> >
> > I have some ShortChar UD fields in the Customer Entry form for
additional
> > e-mail addresses, unfortunately some users have added other
information into
> > them.
> >
> > My question is this, with a BPM is there a way to raise an exception
> > message if the field doesn't contain the "@" symbol, my hopes are
that this
> > will force people to use these fields for e-mail addresses only!
> >
> > My 4GL knowledge is very limited so any help would be greatly
appreciated.
> >
> > Vantage 8.03.405a Progress
> >
> > Many thanks
> >
> > Mark Lawrence
> > Teagle Machinery Ltd
> >
> >
> >
>
>
> [Non-text portions of this message have been removed]
>
I am on 9 so I am not 100% sure if the steps are the same but here is a
screen cap of how I am doing it, hope it helps.

http://www.youtube.com/watch?v=Fdq1CZvmQ-U
<http://www.youtube.com/watch?v=Fdq1CZvmQ-U>
Sincerely
Jose C Gomez

http://www.josecgomez.com


On Thu, Aug 5, 2010 at 10:06 AM, Mark <teaglem@...> wrote:

>
>
> Hi Jose
>
> Many thanks for your help, I am having a problem applying it as rule in
> form customization, is there a specific method for doing this?
>
> Mark
>
>
> --- In vantage@yahoogroups.com <vantage%40yahoogroups.com>, Jose Gomez
> <jose@...> wrote:
> >
> > I would do a customization on the form, create a rule on ShortChar01
> or
> > whatever your ShortChar is
> >
> > Set the rule to validate using this function
> >
> > public static bool isValidEmail(string inputEmail)
> > {
> > string strRegex = @"^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}" +
> > @"\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\" +
> > @".)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$";
> > Regex re = new Regex(strRegex);
> > if (re.IsMatch(inputEmail))
> > return (true);
> > else
> > return (false);
> > }
> >
> > And the action to error
> >
> > Hope this helps!
> >
> >
> > Sincerely
> > Jose C Gomez
> >
> > http://www.josecgomez.com
> >
> > mana
> > On Thu, Aug 5, 2010 at 5:51 AM, Mark teaglem@... wrote:
> >
> > >
> > >
> > > Hi
> > >
> > > I have some ShortChar UD fields in the Customer Entry form for
> additional
> > > e-mail addresses, unfortunately some users have added other
> information into
> > > them.
> > >
> > > My question is this, with a BPM is there a way to raise an exception
> > > message if the field doesn't contain the "@" symbol, my hopes are
> that this
> > > will force people to use these fields for e-mail addresses only!
> > >
> > > My 4GL knowledge is very limited so any help would be greatly
> appreciated.
> > >
> > > Vantage 8.03.405a Progress
> > >
> > > Many thanks
> > >
> > > Mark Lawrence
> > > Teagle Machinery Ltd
> > >
> > >
> > >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>


[Non-text portions of this message have been removed]
Hi Jose
Great video, unfortunatly I am on 8 so the custom rule options are not available, I will however see if I can copy the code you used into the form and try that.

Many thanks

Mark Lawrence
Teagle Machinery Ltd

--- In vantage@yahoogroups.com, Jose Gomez <jose@...> wrote:
>
> I am on 9 so I am not 100% sure if the steps are the same but here is a
> screen cap of how I am doing it, hope it helps.
>
> http://www.youtube.com/watch?v=Fdq1CZvmQ-U
> <http://www.youtube.com/watch?v=Fdq1CZvmQ-U>
> Sincerely
> Jose C Gomez
>
> http://www.josecgomez.com
>
>
> On Thu, Aug 5, 2010 at 10:06 AM, Mark <teaglem@...> wrote:
>
> >
> >
> > Hi Jose
> >
> > Many thanks for your help, I am having a problem applying it as rule in
> > form customization, is there a specific method for doing this?
> >
> > Mark
> >
> >
> > --- In vantage@yahoogroups.com <vantage%40yahoogroups.com>, Jose Gomez
> > <jose@> wrote:
> > >
> > > I would do a customization on the form, create a rule on ShortChar01
> > or
> > > whatever your ShortChar is
> > >
> > > Set the rule to validate using this function
> > >
> > > public static bool isValidEmail(string inputEmail)
> > > {
> > > string strRegex = @"^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}" +
> > > @"\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\" +
> > > @".)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$";
> > > Regex re = new Regex(strRegex);
> > > if (re.IsMatch(inputEmail))
> > > return (true);
> > > else
> > > return (false);
> > > }
> > >
> > > And the action to error
> > >
> > > Hope this helps!
> > >
> > >
> > > Sincerely
> > > Jose C Gomez
> > >
> > > http://www.josecgomez.com
> > >
> > > mana
> > > On Thu, Aug 5, 2010 at 5:51 AM, Mark teaglem@ wrote:
> > >
> > > >
> > > >
> > > > Hi
> > > >
> > > > I have some ShortChar UD fields in the Customer Entry form for
> > additional
> > > > e-mail addresses, unfortunately some users have added other
> > information into
> > > > them.
> > > >
> > > > My question is this, with a BPM is there a way to raise an exception
> > > > message if the field doesn't contain the "@" symbol, my hopes are
> > that this
> > > > will force people to use these fields for e-mail addresses only!
> > > >
> > > > My 4GL knowledge is very limited so any help would be greatly
> > appreciated.
> > > >
> > > > Vantage 8.03.405a Progress
> > > >
> > > > Many thanks
> > > >
> > > > Mark Lawrence
> > > > Teagle Machinery Ltd
> > > >
> > > >
> > > >
> > >
> > >
> > > [Non-text portions of this message have been removed]
> > >
> >
> >
> >
>
>
> [Non-text portions of this message have been removed]
>
Yeah that's what I was afraid of, we moved out of 8 a while back and
couldn't remember if it was possible :(

Sincerely
Jose C Gomez

http://www.josecgomez.com


On Mon, Aug 9, 2010 at 3:22 AM, Mark <teaglem@...> wrote:

>
>
> Hi Jose
> Great video, unfortunatly I am on 8 so the custom rule options are not
> available, I will however see if I can copy the code you used into the form
> and try that.
>
>
> Many thanks
>
> Mark Lawrence
> Teagle Machinery Ltd
>
> --- In vantage@yahoogroups.com <vantage%40yahoogroups.com>, Jose Gomez
> <jose@...> wrote:
> >
> > I am on 9 so I am not 100% sure if the steps are the same but here is a
> > screen cap of how I am doing it, hope it helps.
> >
> > http://www.youtube.com/watch?v=Fdq1CZvmQ-U
> > <http://www.youtube.com/watch?v=Fdq1CZvmQ-U>
> > Sincerely
> > Jose C Gomez
> >
> > http://www.josecgomez.com
> >
> >
> > On Thu, Aug 5, 2010 at 10:06 AM, Mark <teaglem@...> wrote:
> >
> > >
> > >
> > > Hi Jose
> > >
> > > Many thanks for your help, I am having a problem applying it as rule in
> > > form customization, is there a specific method for doing this?
> > >
> > > Mark
> > >
> > >
> > > --- In vantage@yahoogroups.com <vantage%40yahoogroups.com> <vantage%
> 40yahoogroups.com>, Jose Gomez
>
> > > <jose@> wrote:
> > > >
> > > > I would do a customization on the form, create a rule on ShortChar01
> > > or
> > > > whatever your ShortChar is
> > > >
> > > > Set the rule to validate using this function
> > > >
> > > > public static bool isValidEmail(string inputEmail)
> > > > {
> > > > string strRegex = @"^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}" +
> > > > @"\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\" +
> > > > @".)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$";
> > > > Regex re = new Regex(strRegex);
> > > > if (re.IsMatch(inputEmail))
> > > > return (true);
> > > > else
> > > > return (false);
> > > > }
> > > >
> > > > And the action to error
> > > >
> > > > Hope this helps!
> > > >
> > > >
> > > > Sincerely
> > > > Jose C Gomez
> > > >
> > > > http://www.josecgomez.com
> > > >
> > > > mana
> > > > On Thu, Aug 5, 2010 at 5:51 AM, Mark teaglem@ wrote:
> > > >
> > > > >
> > > > >
> > > > > Hi
> > > > >
> > > > > I have some ShortChar UD fields in the Customer Entry form for
> > > additional
> > > > > e-mail addresses, unfortunately some users have added other
> > > information into
> > > > > them.
> > > > >
> > > > > My question is this, with a BPM is there a way to raise an
> exception
> > > > > message if the field doesn't contain the "@" symbol, my hopes are
> > > that this
> > > > > will force people to use these fields for e-mail addresses only!
> > > > >
> > > > > My 4GL knowledge is very limited so any help would be greatly
> > > appreciated.
> > > > >
> > > > > Vantage 8.03.405a Progress
> > > > >
> > > > > Many thanks
> > > > >
> > > > > Mark Lawrence
> > > > > Teagle Machinery Ltd
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > > [Non-text portions of this message have been removed]
> > > >
> > >
> > >
> > >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>


[Non-text portions of this message have been removed]
You should be able to use the same code on AfterFieldChange under Form
Wizard. (Again if you have that option in 8)

Sincerely
Jose C Gomez

http://www.josecgomez.com


On Mon, Aug 9, 2010 at 7:44 AM, Jose Gomez <jose@...> wrote:

> Yeah that's what I was afraid of, we moved out of 8 a while back and
> couldn't remember if it was possible :(
>
> Sincerely
> Jose C Gomez
>
> http://www.josecgomez.com
>
>
> On Mon, Aug 9, 2010 at 3:22 AM, Mark <teaglem@...> wrote:
>
>>
>>
>> Hi Jose
>> Great video, unfortunatly I am on 8 so the custom rule options are not
>> available, I will however see if I can copy the code you used into the form
>> and try that.
>>
>>
>> Many thanks
>>
>> Mark Lawrence
>> Teagle Machinery Ltd
>>
>> --- In vantage@yahoogroups.com <vantage%40yahoogroups.com>, Jose Gomez
>> <jose@...> wrote:
>> >
>> > I am on 9 so I am not 100% sure if the steps are the same but here is a
>> > screen cap of how I am doing it, hope it helps.
>> >
>> > http://www.youtube.com/watch?v=Fdq1CZvmQ-U
>> > <http://www.youtube.com/watch?v=Fdq1CZvmQ-U>
>> > Sincerely
>> > Jose C Gomez
>> >
>> > http://www.josecgomez.com
>> >
>> >
>> > On Thu, Aug 5, 2010 at 10:06 AM, Mark <teaglem@...> wrote:
>> >
>> > >
>> > >
>> > > Hi Jose
>> > >
>> > > Many thanks for your help, I am having a problem applying it as rule
>> in
>> > > form customization, is there a specific method for doing this?
>> > >
>> > > Mark
>> > >
>> > >
>> > > --- In vantage@yahoogroups.com <vantage%40yahoogroups.com> <vantage%
>> 40yahoogroups.com>, Jose Gomez
>>
>> > > <jose@> wrote:
>> > > >
>> > > > I would do a customization on the form, create a rule on ShortChar01
>> > > or
>> > > > whatever your ShortChar is
>> > > >
>> > > > Set the rule to validate using this function
>> > > >
>> > > > public static bool isValidEmail(string inputEmail)
>> > > > {
>> > > > string strRegex = @"^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}" +
>> > > > @"\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\" +
>> > > > @".)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$";
>> > > > Regex re = new Regex(strRegex);
>> > > > if (re.IsMatch(inputEmail))
>> > > > return (true);
>> > > > else
>> > > > return (false);
>> > > > }
>> > > >
>> > > > And the action to error
>> > > >
>> > > > Hope this helps!
>> > > >
>> > > >
>> > > > Sincerely
>> > > > Jose C Gomez
>> > > >
>> > > > http://www.josecgomez.com
>> > > >
>> > > > mana
>> > > > On Thu, Aug 5, 2010 at 5:51 AM, Mark teaglem@ wrote:
>> > > >
>> > > > >
>> > > > >
>> > > > > Hi
>> > > > >
>> > > > > I have some ShortChar UD fields in the Customer Entry form for
>> > > additional
>> > > > > e-mail addresses, unfortunately some users have added other
>> > > information into
>> > > > > them.
>> > > > >
>> > > > > My question is this, with a BPM is there a way to raise an
>> exception
>> > > > > message if the field doesn't contain the "@" symbol, my hopes are
>> > > that this
>> > > > > will force people to use these fields for e-mail addresses only!
>> > > > >
>> > > > > My 4GL knowledge is very limited so any help would be greatly
>> > > appreciated.
>> > > > >
>> > > > > Vantage 8.03.405a Progress
>> > > > >
>> > > > > Many thanks
>> > > > >
>> > > > > Mark Lawrence
>> > > > > Teagle Machinery Ltd
>> > > > >
>> > > > >
>> > > > >
>> > > >
>> > > >
>> > > > [Non-text portions of this message have been removed]
>> > > >
>> > >
>> > >
>> > >
>> >
>> >
>> > [Non-text portions of this message have been removed]
>> >
>>
>>
>>
>
>


[Non-text portions of this message have been removed]
Yes that option is available, I wil try it and let you know

Thanks

Mark

--- In vantage@yahoogroups.com, Jose Gomez <jose@...> wrote:
>
> You should be able to use the same code on AfterFieldChange under Form
> Wizard. (Again if you have that option in 8)
>
> Sincerely
> Jose C Gomez
>
> http://www.josecgomez.com
>
>
> On Mon, Aug 9, 2010 at 7:44 AM, Jose Gomez <jose@...> wrote:
>
> > Yeah that's what I was afraid of, we moved out of 8 a while back and
> > couldn't remember if it was possible :(
> >
> > Sincerely
> > Jose C Gomez
> >
> > http://www.josecgomez.com
> >
> >
> > On Mon, Aug 9, 2010 at 3:22 AM, Mark <teaglem@...> wrote:
> >
> >>
> >>
> >> Hi Jose
> >> Great video, unfortunatly I am on 8 so the custom rule options are not
> >> available, I will however see if I can copy the code you used into the form
> >> and try that.
> >>
> >>
> >> Many thanks
> >>
> >> Mark Lawrence
> >> Teagle Machinery Ltd
> >>
> >> --- In vantage@yahoogroups.com <vantage%40yahoogroups.com>, Jose Gomez
> >> <jose@> wrote:
> >> >
> >> > I am on 9 so I am not 100% sure if the steps are the same but here is a
> >> > screen cap of how I am doing it, hope it helps.
> >> >
> >> > http://www.youtube.com/watch?v=Fdq1CZvmQ-U
> >> > <http://www.youtube.com/watch?v=Fdq1CZvmQ-U>
> >> > Sincerely
> >> > Jose C Gomez
> >> >
> >> > http://www.josecgomez.com
> >> >
> >> >
> >> > On Thu, Aug 5, 2010 at 10:06 AM, Mark <teaglem@> wrote:
> >> >
> >> > >
> >> > >
> >> > > Hi Jose
> >> > >
> >> > > Many thanks for your help, I am having a problem applying it as rule
> >> in
> >> > > form customization, is there a specific method for doing this?
> >> > >
> >> > > Mark
> >> > >
> >> > >
> >> > > --- In vantage@yahoogroups.com <vantage%40yahoogroups.com> <vantage%
> >> 40yahoogroups.com>, Jose Gomez
> >>
> >> > > <jose@> wrote:
> >> > > >
> >> > > > I would do a customization on the form, create a rule on ShortChar01
> >> > > or
> >> > > > whatever your ShortChar is
> >> > > >
> >> > > > Set the rule to validate using this function
> >> > > >
> >> > > > public static bool isValidEmail(string inputEmail)
> >> > > > {
> >> > > > string strRegex = @"^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}" +
> >> > > > @"\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\" +
> >> > > > @".)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$";
> >> > > > Regex re = new Regex(strRegex);
> >> > > > if (re.IsMatch(inputEmail))
> >> > > > return (true);
> >> > > > else
> >> > > > return (false);
> >> > > > }
> >> > > >
> >> > > > And the action to error
> >> > > >
> >> > > > Hope this helps!
> >> > > >
> >> > > >
> >> > > > Sincerely
> >> > > > Jose C Gomez
> >> > > >
> >> > > > http://www.josecgomez.com
> >> > > >
> >> > > > mana
> >> > > > On Thu, Aug 5, 2010 at 5:51 AM, Mark teaglem@ wrote:
> >> > > >
> >> > > > >
> >> > > > >
> >> > > > > Hi
> >> > > > >
> >> > > > > I have some ShortChar UD fields in the Customer Entry form for
> >> > > additional
> >> > > > > e-mail addresses, unfortunately some users have added other
> >> > > information into
> >> > > > > them.
> >> > > > >
> >> > > > > My question is this, with a BPM is there a way to raise an
> >> exception
> >> > > > > message if the field doesn't contain the "@" symbol, my hopes are
> >> > > that this
> >> > > > > will force people to use these fields for e-mail addresses only!
> >> > > > >
> >> > > > > My 4GL knowledge is very limited so any help would be greatly
> >> > > appreciated.
> >> > > > >
> >> > > > > Vantage 8.03.405a Progress
> >> > > > >
> >> > > > > Many thanks
> >> > > > >
> >> > > > > Mark Lawrence
> >> > > > > Teagle Machinery Ltd
> >> > > > >
> >> > > > >
> >> > > > >
> >> > > >
> >> > > >
> >> > > > [Non-text portions of this message have been removed]
> >> > > >
> >> > >
> >> > >
> >> > >
> >> >
> >> >
> >> > [Non-text portions of this message have been removed]
> >> >
> >>
> >>
> >>
> >
> >
>
>
> [Non-text portions of this message have been removed]
>
Hi Jose
I had another look at this and realised that in your Video you are using C# it appears that Version 8 doesn't support it and I don't know the .net equivalent.

I will have to look at another way to do this or wait until we move to version 9.

Many thanks for all your help

Mark Lawrence

--- In vantage@yahoogroups.com, Jose Gomez <jose@...> wrote:
>
> You should be able to use the same code on AfterFieldChange under Form
> Wizard. (Again if you have that option in 8)
>
> Sincerely
> Jose C Gomez
>
> http://www.josecgomez.com
>
>
> On Mon, Aug 9, 2010 at 7:44 AM, Jose Gomez <jose@...> wrote:
>
> > Yeah that's what I was afraid of, we moved out of 8 a while back and
> > couldn't remember if it was possible :(
> >
> > Sincerely
> > Jose C Gomez
> >
> > http://www.josecgomez.com
> >
> >
> > On Mon, Aug 9, 2010 at 3:22 AM, Mark <teaglem@...> wrote:
> >
> >>
> >>
> >> Hi Jose
> >> Great video, unfortunatly I am on 8 so the custom rule options are not
> >> available, I will however see if I can copy the code you used into the form
> >> and try that.
> >>
> >>
> >> Many thanks
> >>
> >> Mark Lawrence
> >> Teagle Machinery Ltd
> >>
> >> --- In vantage@yahoogroups.com <vantage%40yahoogroups.com>, Jose Gomez
> >> <jose@> wrote:
> >> >
> >> > I am on 9 so I am not 100% sure if the steps are the same but here is a
> >> > screen cap of how I am doing it, hope it helps.
> >> >
> >> > http://www.youtube.com/watch?v=Fdq1CZvmQ-U
> >> > <http://www.youtube.com/watch?v=Fdq1CZvmQ-U>
> >> > Sincerely
> >> > Jose C Gomez
> >> >
> >> > http://www.josecgomez.com
> >> >
> >> >
> >> > On Thu, Aug 5, 2010 at 10:06 AM, Mark <teaglem@> wrote:
> >> >
> >> > >
> >> > >
> >> > > Hi Jose
> >> > >
> >> > > Many thanks for your help, I am having a problem applying it as rule
> >> in
> >> > > form customization, is there a specific method for doing this?
> >> > >
> >> > > Mark
> >> > >
> >> > >
> >> > > --- In vantage@yahoogroups.com <vantage%40yahoogroups.com> <vantage%
> >> 40yahoogroups.com>, Jose Gomez
> >>
> >> > > <jose@> wrote:
> >> > > >
> >> > > > I would do a customization on the form, create a rule on ShortChar01
> >> > > or
> >> > > > whatever your ShortChar is
> >> > > >
> >> > > > Set the rule to validate using this function
> >> > > >
> >> > > > public static bool isValidEmail(string inputEmail)
> >> > > > {
> >> > > > string strRegex = @"^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}" +
> >> > > > @"\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\" +
> >> > > > @".)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$";
> >> > > > Regex re = new Regex(strRegex);
> >> > > > if (re.IsMatch(inputEmail))
> >> > > > return (true);
> >> > > > else
> >> > > > return (false);
> >> > > > }
> >> > > >
> >> > > > And the action to error
> >> > > >
> >> > > > Hope this helps!
> >> > > >
> >> > > >
> >> > > > Sincerely
> >> > > > Jose C Gomez
> >> > > >
> >> > > > http://www.josecgomez.com
> >> > > >
> >> > > > mana
> >> > > > On Thu, Aug 5, 2010 at 5:51 AM, Mark teaglem@ wrote:
> >> > > >
> >> > > > >
> >> > > > >
> >> > > > > Hi
> >> > > > >
> >> > > > > I have some ShortChar UD fields in the Customer Entry form for
> >> > > additional
> >> > > > > e-mail addresses, unfortunately some users have added other
> >> > > information into
> >> > > > > them.
> >> > > > >
> >> > > > > My question is this, with a BPM is there a way to raise an
> >> exception
> >> > > > > message if the field doesn't contain the "@" symbol, my hopes are
> >> > > that this
> >> > > > > will force people to use these fields for e-mail addresses only!
> >> > > > >
> >> > > > > My 4GL knowledge is very limited so any help would be greatly
> >> > > appreciated.
> >> > > > >
> >> > > > > Vantage 8.03.405a Progress
> >> > > > >
> >> > > > > Many thanks
> >> > > > >
> >> > > > > Mark Lawrence
> >> > > > > Teagle Machinery Ltd
> >> > > > >
> >> > > > >
> >> > > > >
> >> > > >
> >> > > >
> >> > > > [Non-text portions of this message have been removed]
> >> > > >
> >> > >
> >> > >
> >> > >
> >> >
> >> >
> >> > [Non-text portions of this message have been removed]
> >> >
> >>
> >>
> >>
> >
> >
>
>
> [Non-text portions of this message have been removed]
>