Skip to content

Commit 76ee9a2

Browse files
author
Open Lowcode SAS
committed
Addition to #246
1 parent 9f19b20 commit 76ee9a2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/org/openlowcode/design/data/DataObjectDefinitionCreatePageToFile.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,10 @@ public void generateToFile(SourceGenerator sg, Module module) throws IOException
255255
sg.wl(" protected SPageNode getContent() {");
256256
sg.wl(" ");
257257
sg.wl(" SComponentBand mainband = new SComponentBand(SComponentBand.DIRECTION_DOWN,this);");
258+
sg.wl(" SPageText title = new SPageText(\"Enter data for new " + (companion!=null?companion.getLabel():dataobject.getLabel())
259+
+ "\",SPageText.TYPE_TITLE,this);");
258260

261+
sg.wl(" mainband.addElement(title);");
259262
sg.wl(" AtgStandardcreate" + pagename + "Action.ActionRef create" + pagename
260263
+ "actionref = AtgStandardcreate" + pagename + "Action.get().getActionRef();");
261264
if (subobject != null) {
@@ -328,10 +331,7 @@ public void generateToFile(SourceGenerator sg, Module module) throws IOException
328331
}
329332

330333
}
331-
sg.wl(" SPageText title = new SPageText(\"Enter data for new " + (companion!=null?companion.getLabel():dataobject.getLabel())
332-
+ "\",SPageText.TYPE_TITLE,this);");
333334

334-
sg.wl(" mainband.addElement(title);");
335335
for (int i = 0; i < dataobject.propertylist.getSize(); i++) {
336336
Property<?> thisproperty = dataobject.propertylist.get(i);
337337
for (int j = 0; j < thisproperty.getDataInputSize(); j++) {

0 commit comments

Comments
 (0)