- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-06-2016 12:53 AM
I put a field of type "Conditions" of one of my custom tables with the default length of 4'000 characters. I did make it dependend on a field with the appropriate table name and it does work as expected. However, every condition longer than 40 characters just gets trimmed to 40 characters, even though the length of the conditions-field is 4'000 characters (this is the default that gets set when creating the field). I checked other conditions-fields on existing tables (for example sys_script) and I can't see any difference to my setup. Just to make sure, I also did the same setup in a clean table without any business rules or anything that could interfere and had the same problem. Anyone has an idea how I can solve this problem or is this a bug that has to be fixed first?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-06-2016 02:59 AM
I found the solution, you have to actually type in a length when creating the field of type "Conditions". If you don't, the field will get the length 4000 but somehow in the background the length is still only 40. So be sure to actually type in the 4000 yourself when creating the field, because even changing the length manually after adding the field will not change the fact that the condition will get cut off after 40 characters!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2018 12:32 AM
You will have to create a second field on your table that stores the tablename you want to check the condition on. So basically add a string field with a default value "<yourtablename>" and then use this field as the dependent field in your condition field. So you do not chose the table in the dependant field, but you chose the field that contains the table name. Please note that I think you also have to add this string field to the form to make it work correctly. However, you can hide it with a UI policy.