1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| Quintiq file version 2.0
| #parent: #root
| StaticMethod CreateEditAllowed (String description, Boolean isimage, output String feedback_o) remote as Boolean
| {
| TextBody:
| [*
| result := true;
|
| if( isimage
| and ( description.FindString( " ", 0 ) >= 0
| or not description.StartsWith( "/" )
| or description.Length() = 1
| or description.FindString( "//", 0 ) >= 0
| or description.FindString( String::NewLine(), 0 ) >= 0 ) )
| {
| result := false;
| feedback_o := "Only the path to the image can be inserted in Description or the description path does not follow the correct format. Check out the following link for more information: https://support.quintiq.com/doc/des/dynamic_images";
| }
|
| return result;
| *]
| }
|
|