|
51 | 51 | import org.openlowcode.design.data.properties.basic.RightForLink; |
52 | 52 | import org.openlowcode.design.data.properties.basic.Schedule; |
53 | 53 | import org.openlowcode.design.data.properties.basic.SimpleTaskWorkflow; |
| 54 | +import org.openlowcode.design.data.properties.basic.StoredObject; |
54 | 55 | import org.openlowcode.design.data.properties.basic.SubObject; |
55 | 56 | import org.openlowcode.design.data.properties.basic.TargetDate; |
56 | 57 | import org.openlowcode.design.data.properties.basic.TimeSlot; |
@@ -1913,6 +1914,7 @@ public void generateAutomaticPagesAndActions(Module module) { |
1913 | 1914 | if (((linkobject == null) && (autolinkobject == null)) || (this.isShowActionAutomaticallyGenerated())) { |
1914 | 1915 | module.addAction(this.generatePrepareStandardCreateAction()); |
1915 | 1916 | module.addAction(this.generateStandardCreateAction()); |
| 1917 | + |
1916 | 1918 | this.addActionOnObjectPage(this.generateSaveAsAction()); |
1917 | 1919 | module.AddPage(this.generateStandardCreatePage()); |
1918 | 1920 | } |
@@ -2098,8 +2100,8 @@ private DynamicActionDefinition generateSaveAsAction() { |
2098 | 2100 | true); |
2099 | 2101 | saveasaction.addInputArgument(new ObjectIdArgument("ORIGINID", this)); |
2100 | 2102 | saveasaction.addOutputArgument(new ObjectArgument("COPYOBJECT", this)); |
2101 | | - saveasaction.setButtonlabel("Save as"); |
2102 | | - this.addActionToCreateNewGroup(saveasaction); |
| 2103 | + saveasaction.setButtonlabel("Duplicate"); |
| 2104 | + if (this.isSaveAsInCreateNewGroup()) this.addActionToCreateNewGroup(saveasaction); |
2103 | 2105 |
|
2104 | 2106 | return saveasaction; |
2105 | 2107 | } |
@@ -2318,6 +2320,12 @@ public boolean isStoredobject() { |
2318 | 2320 | return true; |
2319 | 2321 | } |
2320 | 2322 |
|
| 2323 | + public boolean isSaveAsInCreateNewGroup() { |
| 2324 | + StoredObject storedobject = (StoredObject) this.getPropertyByName("STOREDOBJECT"); |
| 2325 | + if (storedobject!=null) return storedobject.isSaveAsInCreateNewGroup(); |
| 2326 | + return false; |
| 2327 | + } |
| 2328 | + |
2321 | 2329 | /** |
2322 | 2330 | * @return true if the data object has the property Iterated |
2323 | 2331 | */ |
|
0 commit comments