How can I add character length in a field on Informix 4GL. I have a description column, and I want to enforce a minimum length 10 characters in this field; if the entered string is less than 10 characters, send the user back to re-enter the data.
Enforcing a minimum character length on a form field in I4GL
403 views Asked by MJJ3 At
1
There are 1 answers
Related Questions in INFORMIX
- Informix Golang client package
- How to resolve this error when using OpenQuery in SQL Server to extract data from an Informix database
- Trigger/Stored Procedure causing sql error 127 Informix 12.10.FC10
- Update a huge number of rows without lock entire table in Informix
- Informix ODBC Driver][Informix]A character to numeric conversion process
- Update rows in an Informix database by incrementing serial numbers
- Informix - get DB Server Name / Alias for connected Session
- How can get full name from INFO TABLES at Informix DB
- Is there a way to get the sql statement about the creation of the row type?
- How to connect to informix DB using data direct informix driver and python on Linux
- IBM VS.NET SE Integration & Extensions package did not load correctly
- IBM Informix Error "-556 Cannot create, drop or modify an object that is external to the current Database"
- Find opaque types in the Informix database
- Informix: SQL does not accept double quote to surround a string
- Update a table in informix (an entire field)
Related Questions in 4GL
- How to pass date parameter to query in temporary (work) table?
- Find differences between list and column
- Change cell color in a dynamic browse
- How to create calculator for hexadecimal to binary in Progress 4GL
- How to calculate sum of values per column except one column to have total values per each column in PROC SQL / SAS Enterprise Guide?
- How to select duplicates rows with duplicates in each column in SAS Enterprise Guide?
- How to select only these rows where values in all column all the same in SAS Enterprise Guide?
- How to remove characters after defined character in PROC SQL in SAS Enterprise Guide?
- How to calculate mean values per values in other column in one PROC SQL query in SAS Enterprise Guide?
- How to create 2 new columns with appropriate prefix based on values in columns with same prefix in SAS Enterprise Guide / PROC SQL?
- How to create new columns with names of columns with values in descending order in SAS Enterprise Guide / PROC SQL?
- How to create column with name of column with the highest value per each ID in SAS Enterprise Guide / PROC SQL?
- How to aggregate number of occure each value per column in table in SAS Enterprise Guide?
- How to aggretage col1 per ID and val1 per ID and values in col1 in SAS Enterprise Gude or PROC SQL?
- How to fill missing values in numeric columns by using 0 in one table base on existing these columns in other tables in SAS Enterprise Guide?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
To enforce that constraint, you would need to use an AFTER FIELD clause, check the length of the entered data, and send the user back if it is not long enough:
I'm assuming it is a field that does not allow nulls; if it does allow nulls, you need to allow for that in the testing.
Incidentally, you can seriously expect to have to deal with descriptions like 'Aaaaaaaaaa' and 'asdfasdfasdf' if you put this requirement on users. They may also get more creative; you can fit a couple of 4-letter words and an exclamation mark into a 10-character limit.