Jump to content
Server Maintenance This Week. ×

Validate text to previous records


This topic is 7253 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I have a string of text ("AAA1000project1", "AAA1001project2", etc.) that is used as an identifier for projects. This field is a text field. I need to write a script that checks the triple letters and the number but drops the rest of the text in the field and compares the new entry (which is done manually) to the existing records so that the number is not duplicated. I do not want to create more fields and break this one field up, unless there is no other way to do so.

Link to comment
Share on other sites

If you create one extra calculation text field equal to Left( field, Position( field, "project", 1, 1 ) - 1 ) and a self-relationship from this field to itself, then your script can Exit Record/Request and test If [ Count( selfrel::id ) > 1 ], in which case there are duplicates.

Link to comment
Share on other sites

This topic is 7253 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.