Conditions-Field-Type: Length Problem (40 Character Limit)

ipt_Phil
Giga Contributor

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?

1 ACCEPTED SOLUTION

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!


View solution in original post

5 REPLIES 5

Kalaiarasan Pus
Giga Sage

Check the max length would be my advise. Conditions would be 4000 and Condition string would be 40



Condition.png


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!


Philemon,


Thanks for sharing your workaround - it worked for me!



Ryan


max_danielewicz
Giga Expert

Hi Phil,

I am trying to create a conditions type field.

the problem i am having is that i cannot make appear TABLE in the "dependant field" tab.

how do i do that?

 

regards,

max