Skip to content

Commit 0e46525

Browse files
author
Open Lowcode SAS
committed
Close #46
1 parent 225fede commit 0e46525

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,13 +780,17 @@ public void generateToFile(SourceGenerator sg, Module module) throws IOException
780780
if (parentlink != null) {
781781
String parentname = parentlink.getParentObjectForLink().getName().toLowerCase();
782782
String linkname = parentlink.getName().toLowerCase();
783+
String parentextralabel = parentlink.getDisplayname();
784+
boolean hasextralabel=false;
785+
if (parentextralabel!=null) if (parentextralabel.trim().length()>0) hasextralabel=true;
786+
if (!hasextralabel) parentextralabel = parentlink.getParentObjectForLink().getLabel();
783787
sg.wl(" if (hasparent) {");
784788
sg.wl(" AtgShow" + parentname + "Action.ActionRef showparent" + parentname + " = AtgShow"
785789
+ parentname + "Action.get().getActionRef();");
786790
sg.wl(" showparent" + parentname + ".setId(objectdisplaydefinition.getAttributeInput("
787791
+ objectclass + ".get" + StringFormatter.formatForJavaClass(linkname) + "idMarker()));");
788792
sg.wl(" SActionButton gotoparent" + parentname + " = new SActionButton(\"parent "
789-
+ parentlink.getDisplayname() + "\",\"opens the parent "
793+
+ parentextralabel + "\",\"opens the parent "
790794
+ parentlink.parent.getName().toLowerCase() + " for this " + objectclass + "\",showparent"
791795
+ parentname + ",this);");
792796
sg.wl(" objectbuttonband.addElement(gotoparent" + parentname + ");");

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ public void generateWidgetCode(SourceGenerator sg, Module module, String locatio
391391
+ linknameshortname + "button);");
392392
sg.wl(" SPopupButton exportchildrenfor" + linknameshortname
393393
+ "popupbutton = new SPopupButton(this, exportchildrenfor" + linknameshortname
394-
+ "popup, \"Export children to File\", \"\");");
394+
+ "popup, \"Export Loadable File\", \"\");");
395395
sg.wl(" childrenactionbandfor" + childclassattribute + ".addElement(exportchildrenfor" + linknameshortname
396396
+ "popupbutton); ");
397397

0 commit comments

Comments
 (0)