Allow alphanumeric and backslash only in Data Field

Discussion forum about all things Gupta, OpenText and the community.
Viswanadha
India
Posts: 26
Joined: 12 Jul 2018, 10:24
Location: Chennai, India

Allow alphanumeric and backslash only in Data Field

Post by Viswanadha » 28 Jan 2021, 09:22

Hello Everybody,

I want to allow the user to enter alpha numeric values and one time backslash in the user id data field.

I tried using the input mask as nnn\nnnnn in the data field property it is automatically adding \ after three alpha numeric characters.

For example: APAC\viswa. I want to restrict to enter other characters apart from alphanumeric and slash.

Thanks in Advance

thomas.uttendorfer
Site Admin
Site Admin
Germany
Posts: 243
Joined: 05 Mar 2017, 17:19
Location: Munich Germany

Re: Allow alphanumeric and backslash only in Data Field

Post by thomas.uttendorfer » 28 Jan 2021, 13:21

Hi Viswanadha,

I think in this case you have to do everything on your own:
Catch the Message On SAM_AnyEdit
and analyse the content of the edit field.
If you detect a second backslash then remove it from the edit field.

Regards Thomas
Thomas Uttendorfer
[ frevel & fey ] Software-System GmbH
https://thomasuttendorfer.wordpress.com/

Return to “General Discussion”

Who is online

Users browsing this forum: [Ccbot] and 0 guests