Skip to content

Commit f0cc0ae

Browse files
author
Open Lowcode SAS
committed
Close #110
1 parent 8db425f commit f0cc0ae

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

src/org/openlowcode/design/data/properties/basic/FileContent.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public void generateWidgetCode(SourceGenerator sg, Module module, String locatio
9090
+ ".addElement(new SPageText(\"Attachment Files\",SPageText.TYPE_TITLE,this));");
9191
sg.wl(" SObjectArray attachmentsarray = new SObjectArray(\"ATTACHMENTS\", this.getAttachments(),Objattachment.getDefinition(),this);");
9292
sg.wl(" attachmentsarray.forceRowHeight(1);");
93-
sg.wl(" " + locationname + ".addElement(attachmentsarray); ");
93+
9494

9595
sg.wl(" SComponentBand addattachmentpopup = new SComponentBand(SComponentBand.DIRECTION_DOWN,this);");
9696
sg.wl(" SFileChooser addattachmentfilechooser = new SFileChooser(this,\"ADDATTACHMENT\",\"Select file to attach\");");
@@ -135,6 +135,7 @@ public void generateWidgetCode(SourceGenerator sg, Module module, String locatio
135135
sg.wl(" SActionButton deleteattachmentbutton = new SActionButton(\"Delete\", deleteattachmentref, this);");
136136
sg.wl(" attachmentbuttonband.addElement(deleteattachmentbutton);");
137137
sg.wl(" " + locationname + ".addElement(attachmentbuttonband);");
138+
sg.wl(" " + locationname + ".addElement(attachmentsarray); ");
138139
sg.wl(" // --------------- end display attachment -------------");
139140

140141
}

src/org/openlowcode/design/data/properties/basic/LeftForLink.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ public void generateWidgetCode(SourceGenerator sg, Module module, String locatio
362362
sg.wl(" this);");
363363
sg.wl(" left" + linkobjectvariable + "s.addDisplayProfile(" + linkobjectclass + "Definition.get"
364364
+ linkobjectclass + "Definition().getDisplayProfileHideleftobjectfields());");
365-
sg.wl(" " + locationname + ".addElement(left" + linkobjectvariable + "s);");
365+
366366
sg.wl(" left" + linkobjectvariable + "s.setWarningForUnsavedEdition();");
367367
sg.wl(" AtgMassupdate" + linkobjectvariable + "andshowleftAction.ActionRef updateleft"
368368
+ linkobjectvariable + "s = AtgMassupdate" + linkobjectvariable
@@ -477,7 +477,7 @@ public void generateWidgetCode(SourceGenerator sg, Module module, String locatio
477477
sg.wl(" left" + linkobjectvariable + "buttonbar.addElement(deleteoneofleft" + linkobjectvariable
478478
+ "button);");
479479
sg.wl(" " + locationname + ".addElement(left" + linkobjectvariable + "buttonbar);");
480-
480+
sg.wl(" " + locationname + ".addElement(left" + linkobjectvariable + "s);");
481481
} else {
482482
// -------------------------------------------------------------------------------------------------
483483
// show link as field array

src/org/openlowcode/design/data/properties/basic/LinkedFromChildren.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public void generateWidgetCode(SourceGenerator sg, Module module, String locatio
193193
sg.wl(" this.get" + linknameclass + "(),");
194194
sg.wl(" " + childclassname + ".getDefinition(),");
195195
sg.wl(" this);");
196-
sg.wl(" " + locationname + ".addElement(arrayfor" + linknameattribute + ");");
196+
197197
sg.w(" arrayfor" + linknameattribute + ".setWarningForUnsavedEdition();");
198198
sg.wl("");
199199

@@ -433,6 +433,7 @@ public void generateWidgetCode(SourceGenerator sg, Module module, String locatio
433433
+ childclassattribute + "andshow" + linkedtoparentnickname + "actionbutton);");
434434

435435
sg.wl(" " + locationname + ".addElement(childrenactionbandfor" + childclassattribute + ");");
436+
sg.wl(" " + locationname + ".addElement(arrayfor" + linknameattribute + ");");
436437
} else {
437438
// show children objects as an object Band, not object array
438439

src/org/openlowcode/design/data/properties/basic/RightForLink.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ public void generateWidgetCode(SourceGenerator sg, Module module, String locatio
327327
sg.wl(" right" + linkobjectvariable + "s.addDisplayProfile(" + linkobjectclass + "Definition.get"
328328
+ linkobjectclass + "Definition().getDisplayProfileHiderightobjectfields());");
329329

330-
sg.wl(" " + locationname + ".addElement(right" + linkobjectvariable + "s);");
330+
331331
sg.wl(" ");
332332
sg.wl(" AtgShow" + leftobjectvariable + "Action.ActionRef showleft" + leftobjectvariable + "for"
333333
+ linkobjectvariable + "action = AtgShow" + leftobjectvariable + "Action.get().getActionRef();");
@@ -423,7 +423,7 @@ public void generateWidgetCode(SourceGenerator sg, Module module, String locatio
423423
sg.wl(" right" + linkobjectvariable + "buttonbar.addElement(deleteoneofright" + linkobjectvariable
424424
+ "button);");
425425
sg.wl(" " + locationname + ".addElement(right" + linkobjectvariable + "buttonbar);");
426-
426+
sg.wl(" " + locationname + ".addElement(right" + linkobjectvariable + "s);");
427427
}
428428

429429
@Override

0 commit comments

Comments
 (0)