Skip to content

Commit 6a29535

Browse files
author
unknown
committed
Made a not-null checkbox mandatory checked if a column is a PK
1 parent 2bd759f commit 6a29535

File tree

1 file changed

+42
-16
lines changed

1 file changed

+42
-16
lines changed

properties_pane/field_level/fieldLevelConfig.json

Lines changed: 42 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
* Copyright © 2016-2017 by IntegrIT S.A. dba Hackolade. All rights reserved.
33
*
44
* The copyright to the computer software herein is the property of IntegrIT S.A.
5-
* The software may be used and/or copied only with the written permission of
6-
* IntegrIT S.A. or in accordance with the terms and conditions stipulated in
7-
* the agreement/contract under which the software has been supplied.
5+
* The software may be used and/or copied only with the written permission of
6+
* IntegrIT S.A. or in accordance with the terms and conditions stipulated in
7+
* the agreement/contract under which the software has been supplied.
88

99

1010
In order to define custom properties for any object's properties pane, you may copy/paste from the following,
@@ -71,8 +71,8 @@ making sure that you maintain a proper JSON format.
7171
]
7272
},
7373
// “groupInput” can have the following states - 0 items, 1 item, and many items.
74-
// “blockInput” has only 2 states - 0 items or 1 item.
75-
// This gives us an easy way to represent it as an object and not as an array internally which is beneficial for processing
74+
// “blockInput” has only 2 states - 0 items or 1 item.
75+
// This gives us an easy way to represent it as an object and not as an array internally which is beneficial for processing
7676
// and forward-engineering in particular.
7777
{
7878
"propertyName": "Block",
@@ -100,7 +100,7 @@ making sure that you maintain a proper JSON format.
100100
"propertyKeyword": "keyList",
101101
"propertyType": "fieldList",
102102
"template": "orderedList"
103-
},
103+
},
104104
{
105105
"propertyName": "List with attribute",
106106
"propertyKeyword": "keyListOrder",
@@ -193,7 +193,33 @@ making sure that you maintain a proper JSON format.
193193
"propertyName": "Not null",
194194
"propertyKeyword": "required",
195195
"enableForReference": true,
196-
"propertyType": "checkbox"
196+
"propertyType": "checkbox",
197+
"dependency": {
198+
"key": "primaryKey",
199+
"value": true
200+
},
201+
"disabled": true,
202+
"defaultValue": true
203+
},
204+
{
205+
"propertyName": "Not null",
206+
"propertyKeyword": "required",
207+
"enableForReference": true,
208+
"propertyType": "checkbox",
209+
"dependency": {
210+
"type": "or",
211+
"values": [
212+
{
213+
"key": "primaryKey",
214+
"value": false
215+
},
216+
{
217+
"key": "primaryKey",
218+
"exists": false
219+
}
220+
]
221+
},
222+
"defaultValue": false
197223
},
198224
"default",
199225
{
@@ -214,7 +240,7 @@ making sure that you maintain a proper JSON format.
214240
"tooltip": "This column is part of the table composite primary key definition. Please refer to this definition if you want more information or to update the Primary Key definition",
215241
"dependency": {
216242
"key": "compositePrimaryKey",
217-
"value": true
243+
"value": true
218244
}
219245
},
220246
{
@@ -1123,7 +1149,7 @@ making sure that you maintain a proper JSON format.
11231149
"tooltip": "This column is part of the table composite primary key definition. Please refer to this definition if you want more information or to update the Primary Key definition",
11241150
"dependency": {
11251151
"key": "compositePrimaryKey",
1126-
"value": true
1152+
"value": true
11271153
}
11281154
},
11291155
{
@@ -1608,7 +1634,7 @@ making sure that you maintain a proper JSON format.
16081634
"tooltip": "This column is part of the table composite primary key definition. Please refer to this definition if you want more information or to update the Primary Key definition",
16091635
"dependency": {
16101636
"key": "compositePrimaryKey",
1611-
"value": true
1637+
"value": true
16121638
}
16131639
},
16141640
{
@@ -2082,7 +2108,7 @@ making sure that you maintain a proper JSON format.
20822108
"tooltip": "This column is part of the table composite primary key definition. Please refer to this definition if you want more information or to update the Primary Key definition",
20832109
"dependency": {
20842110
"key": "compositePrimaryKey",
2085-
"value": true
2111+
"value": true
20862112
}
20872113
},
20882114
{
@@ -2518,7 +2544,7 @@ making sure that you maintain a proper JSON format.
25182544
"tooltip": "This column is part of the table composite primary key definition. Please refer to this definition if you want more information or to update the Primary Key definition",
25192545
"dependency": {
25202546
"key": "compositePrimaryKey",
2521-
"value": true
2547+
"value": true
25222548
}
25232549
},
25242550
{
@@ -3059,7 +3085,7 @@ making sure that you maintain a proper JSON format.
30593085
"tooltip": "This column is part of the table composite primary key definition. Please refer to this definition if you want more information or to update the Primary Key definition",
30603086
"dependency": {
30613087
"key": "compositePrimaryKey",
3062-
"value": true
3088+
"value": true
30633089
}
30643090
},
30653091
{
@@ -3475,7 +3501,7 @@ making sure that you maintain a proper JSON format.
34753501
"tooltip": "This column is part of the table composite primary key definition. Please refer to this definition if you want more information or to update the Primary Key definition",
34763502
"dependency": {
34773503
"key": "compositePrimaryKey",
3478-
"value": true
3504+
"value": true
34793505
}
34803506
},
34813507
{
@@ -3912,7 +3938,7 @@ making sure that you maintain a proper JSON format.
39123938
"tooltip": "This column is part of the table composite primary key definition. Please refer to this definition if you want more information or to update the Primary Key definition",
39133939
"dependency": {
39143940
"key": "compositePrimaryKey",
3915-
"value": true
3941+
"value": true
39163942
}
39173943
},
39183944
{
@@ -4771,4 +4797,4 @@ making sure that you maintain a proper JSON format.
47714797
}
47724798
]
47734799
}
4774-
}
4800+
}

0 commit comments

Comments
 (0)