@sapui5/sap.fe.templates 1.96.0 → 1.97.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -3
- package/src/sap/fe/templates/.library +1 -1
- package/src/sap/fe/templates/ListReport/ListReport.view.xml +2 -2
- package/src/sap/fe/templates/ListReport/ListReportController.controller.js +91 -60
- package/src/sap/fe/templates/ListReport/overrides/ViewState.js +31 -5
- package/src/sap/fe/templates/ObjectPage/AnnotationHelper.js +2 -2
- package/src/sap/fe/templates/ObjectPage/Component.js +18 -1
- package/src/sap/fe/templates/ObjectPage/ObjectPageController.controller.js +114 -85
- package/src/sap/fe/templates/ObjectPage/controls/StashableHBox.js +8 -0
- package/src/sap/fe/templates/ObjectPage/overrides/ViewState.js +23 -3
- package/src/sap/fe/templates/ObjectPage/templating/ObjectPageTemplating.js +6 -5
- package/src/sap/fe/templates/ObjectPage/templating/ObjectPageTemplating.ts +6 -4
- package/src/sap/fe/templates/ObjectPage/view/fragments/HeaderDataPointTitle.fragment.xml +26 -16
- package/src/sap/fe/templates/ObjectPage/view/fragments/ObjectPageHeaderForm.fragment.xml +5 -5
- package/src/sap/fe/templates/RootContainer/controller/Fcl.controller.js +63 -9
- package/src/sap/fe/templates/RootContainer/controller/NavContainer.controller.js +54 -32
- package/src/sap/fe/templates/RootContainer/controller/RootContainerBaseController.js +24 -21
- package/src/sap/fe/templates/RootContainer/view/Fcl.view.xml +2 -1
- package/src/sap/fe/templates/RootContainer/view/NavContainer.view.xml +1 -1
- package/src/sap/fe/templates/controls/Table.fragment.xml +2 -0
- package/src/sap/fe/templates/library.js +1 -1
- package/src/sap/fe/templates/controls/OverflowToolbarButtonHover.js +0 -25
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sapui5/sap.fe.templates",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.97.0",
|
|
4
4
|
"description": "SAPUI5 Library sap.fe.templates",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"author": "SAP SE (https://www.sap.com)",
|
|
@@ -8,14 +8,17 @@
|
|
|
8
8
|
"scripts": {
|
|
9
9
|
"build": "tsc -v && tsc --project tsconfig-build.json",
|
|
10
10
|
"prepare-npm-sources": "babel target/npm-sources/src --out-dir target/npm-sources/src --extensions \".ts\" --config-file ../../.babelrc",
|
|
11
|
-
"test": "
|
|
11
|
+
"test": "jest",
|
|
12
|
+
"test-refs": "jest --config jest.config-refs.js",
|
|
13
|
+
"test-updateSnapshots": "jest -u"
|
|
12
14
|
},
|
|
13
15
|
"keywords": [
|
|
14
16
|
"sapui5",
|
|
15
17
|
"ui5"
|
|
16
18
|
],
|
|
17
19
|
"devDependencies": {
|
|
20
|
+
"ts-node": "^9.1.1",
|
|
18
21
|
"@babel/cli": "^7.14.8",
|
|
19
|
-
"@ui5/cli": "^2.
|
|
22
|
+
"@ui5/cli": "^2.14.0"
|
|
20
23
|
}
|
|
21
24
|
}
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
<v:VariantManagement
|
|
65
65
|
id="{= ID.generate([ ${converterContext>filterBarId}, 'VariantManagement']) }"
|
|
66
66
|
unittest:id="listReportVMControlTest"
|
|
67
|
-
for="{converterContext>
|
|
67
|
+
for="{converterContext>variantManagement/targetControlIds}"
|
|
68
68
|
showSetAsDefault="true"
|
|
69
69
|
select=".handlers.onVariantSelected"
|
|
70
70
|
save=".handlers.onVariantSaved"
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
<v:VariantManagement
|
|
102
102
|
id="{= ID.generate([ ${converterContext>filterBarId}, 'VariantManagement']) }"
|
|
103
103
|
unittest:id="listReportVMControlTest"
|
|
104
|
-
for="{converterContext>
|
|
104
|
+
for="{converterContext>variantManagement/targetControlIds}"
|
|
105
105
|
showSetAsDefault="true"
|
|
106
106
|
select=".handlers.onVariantSelected"
|
|
107
107
|
save=".handlers.onVariantSaved"
|
|
@@ -34,7 +34,8 @@ sap.ui.define(
|
|
|
34
34
|
"sap/fe/macros/CommonHelper",
|
|
35
35
|
"sap/fe/core/controllerextensions/KPIManagement",
|
|
36
36
|
"sap/fe/templates/TableScroller",
|
|
37
|
-
"sap/fe/core/controllerextensions/Placeholder"
|
|
37
|
+
"sap/fe/core/controllerextensions/Placeholder",
|
|
38
|
+
"sap/ui/fl/write/api/ControlPersonalizationWriteAPI"
|
|
38
39
|
],
|
|
39
40
|
function(
|
|
40
41
|
PageController,
|
|
@@ -66,7 +67,8 @@ sap.ui.define(
|
|
|
66
67
|
CommonHelper,
|
|
67
68
|
KPIManagement,
|
|
68
69
|
TableScroller,
|
|
69
|
-
Placeholder
|
|
70
|
+
Placeholder,
|
|
71
|
+
ControlPersonalizationWriteAPI
|
|
70
72
|
) {
|
|
71
73
|
"use strict";
|
|
72
74
|
var TemplateContentView = CoreLibrary.TemplateContentView,
|
|
@@ -141,7 +143,13 @@ sap.ui.define(
|
|
|
141
143
|
CommonUtils.addEventToBindingInfo(oControl, "dataRequested", oUpdateCounts);
|
|
142
144
|
});
|
|
143
145
|
}
|
|
146
|
+
//TODO: This is only a temporary approach and will be removed once app state behaviour is finalized.
|
|
144
147
|
|
|
148
|
+
var oUrlParser = sap.ushell && sap.ushell.Container.getService("URLParsing");
|
|
149
|
+
var oUrlParams = oUrlParser && oUrlParser.parseParameters(window.location.search);
|
|
150
|
+
if (oUrlParams && oUrlParams["sap-fe-test-appState"]) {
|
|
151
|
+
this.bTestAppState = true;
|
|
152
|
+
}
|
|
145
153
|
oInternalModelContext.setProperty("hasPendingFilters", true);
|
|
146
154
|
oInternalModelContext.setProperty("appliedFilters", "");
|
|
147
155
|
oInternalModelContext.setProperty("hideDraftInfo", false);
|
|
@@ -245,21 +253,14 @@ sap.ui.define(
|
|
|
245
253
|
});
|
|
246
254
|
},
|
|
247
255
|
onPageReady: function(mParameters) {
|
|
248
|
-
var oLastFocusedControl = mParameters.lastFocusedControl;
|
|
249
|
-
var oView = this.getView();
|
|
250
|
-
// set the focus to the first action button, or to the first editable input if in editable mode
|
|
251
|
-
if (oLastFocusedControl && oLastFocusedControl.controlId && oLastFocusedControl.focusInfo) {
|
|
252
|
-
var oFocusControl = oView.byId(oLastFocusedControl.controlId);
|
|
253
|
-
if (oFocusControl) {
|
|
254
|
-
oFocusControl.applyFocusInfo(oLastFocusedControl.focusInfo);
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
|
|
258
256
|
// Enabling mandatory filter fields message dialog and focusing on them
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
oFilterBar.
|
|
257
|
+
if (mParameters.forceFocus) {
|
|
258
|
+
var oFilterBar = this._getFilterBarControl();
|
|
259
|
+
|
|
260
|
+
if (oFilterBar && !oFilterBar.getShowMessages()) {
|
|
261
|
+
oFilterBar.setShowMessages(true);
|
|
262
|
+
oFilterBar.setFocusOnFirstErroneousField();
|
|
263
|
+
}
|
|
263
264
|
}
|
|
264
265
|
},
|
|
265
266
|
|
|
@@ -589,10 +590,10 @@ sap.ui.define(
|
|
|
589
590
|
this._getCurrentControl();
|
|
590
591
|
},
|
|
591
592
|
_updateCounts: function() {
|
|
592
|
-
this.
|
|
593
|
+
this._updateMultiModeCounts();
|
|
593
594
|
},
|
|
594
595
|
/**
|
|
595
|
-
* Method to determine if a tab from the list report is a custom tab
|
|
596
|
+
* Method to determine if a tab from the list report is a custom tab.
|
|
596
597
|
*
|
|
597
598
|
* @function
|
|
598
599
|
* @name _isCustomTab
|
|
@@ -602,7 +603,7 @@ sap.ui.define(
|
|
|
602
603
|
var oMultiModeControl = this._getMultiModeControl();
|
|
603
604
|
return oMultiModeControl && oMultiModeControl.getSelectedKey().indexOf("::CustomTab::") > -1;
|
|
604
605
|
},
|
|
605
|
-
|
|
606
|
+
_updateMultiModeCounts: function() {
|
|
606
607
|
var that = this;
|
|
607
608
|
var aBindingPromises = [];
|
|
608
609
|
var oMultiModeControl = this._getMultiModeControl();
|
|
@@ -680,54 +681,74 @@ sap.ui.define(
|
|
|
680
681
|
},
|
|
681
682
|
handlers: {
|
|
682
683
|
onTabMultiModeChange: function(oEvent) {
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
.
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
684
|
+
if (oEvent && oEvent.mParameters && oEvent.mParameters.previousKey != oEvent.mParameters.selectedKey) {
|
|
685
|
+
this._updateMultiModeSelectedControl();
|
|
686
|
+
this._updateMultiControlHiddenStatus();
|
|
687
|
+
var oFilterBar = this._getFilterBarControl();
|
|
688
|
+
var oInternalModelContext = this.getView().getBindingContext("internal");
|
|
689
|
+
var oDisplayedControl = this._getCurrentControl();
|
|
690
|
+
var oMultiModeControl = this._getMultiModeControl();
|
|
691
|
+
var sSelectedKey = oMultiModeControl.getSelectedKey();
|
|
692
|
+
|
|
693
|
+
oInternalModelContext.setProperty("tabs/selected", sSelectedKey);
|
|
694
|
+
if (oFilterBar && oInternalModelContext.getProperty("hasPendingFilters") !== true) {
|
|
695
|
+
// No pending filters into FilterBar
|
|
696
|
+
if (this._isCustomTab()) {
|
|
697
|
+
var oFilterConditions = oFilterBar.getFilterConditions();
|
|
698
|
+
this.onViewNeedsRefresh({
|
|
699
|
+
filterConditions: oFilterConditions,
|
|
700
|
+
currentTabId: sSelectedKey,
|
|
701
|
+
refreshCause: "tabChanged"
|
|
702
|
+
});
|
|
703
|
+
} else if (
|
|
704
|
+
!oDisplayedControl.isA("sap.ui.mdc.ChartNew") &&
|
|
705
|
+
(!oDisplayedControl.getRowBinding() || // first time the tab/table is displayed
|
|
706
|
+
oDisplayedControl.data("outdatedRows") === true)
|
|
707
|
+
) {
|
|
708
|
+
// Search has been triggered on a different tab {}
|
|
709
|
+
oDisplayedControl.rebindTable();
|
|
710
|
+
oDisplayedControl.data("outdatedRows", false);
|
|
711
|
+
} else if (
|
|
712
|
+
oDisplayedControl.isA("sap.ui.mdc.ChartNew") &&
|
|
713
|
+
(!oDisplayedControl
|
|
714
|
+
.getControlDelegate()
|
|
715
|
+
._getChart(oDisplayedControl)
|
|
716
|
+
.getBinding("data") || // first time the tab/chart is displayed
|
|
717
|
+
oDisplayedControl.data("outdatedRows") === true)
|
|
718
|
+
) {
|
|
719
|
+
var oInnerChart = oDisplayedControl.getControlDelegate()._getChart(oDisplayedControl);
|
|
720
|
+
oDisplayedControl.getControlDelegate().rebindChart(oDisplayedControl, oInnerChart.getBindingInfo("data"));
|
|
721
|
+
oDisplayedControl.data("outdatedRows", false);
|
|
722
|
+
}
|
|
718
723
|
}
|
|
724
|
+
/* Need to disable it because of IconTabBar regression : BCP 2170302705
|
|
725
|
+
var sPreviousSelectedKey = oEvent && oEvent.mParameters ? oEvent.mParameters.previousKey : undefined;
|
|
726
|
+
|
|
727
|
+
ControlPersonalizationWriteAPI.add({
|
|
728
|
+
changes: [
|
|
729
|
+
{
|
|
730
|
+
changeSpecificData: {
|
|
731
|
+
changeType: "selectIconTabBarFilter",
|
|
732
|
+
content: {
|
|
733
|
+
selectedKey: sSelectedKey,
|
|
734
|
+
previousSelectedKey: sPreviousSelectedKey
|
|
735
|
+
}
|
|
736
|
+
},
|
|
737
|
+
selectorElement: oMultiModeControl
|
|
738
|
+
}
|
|
739
|
+
]
|
|
740
|
+
});
|
|
741
|
+
*/
|
|
742
|
+
this.getExtensionAPI().updateAppState();
|
|
719
743
|
}
|
|
720
|
-
this.getExtensionAPI().updateAppState();
|
|
721
744
|
},
|
|
722
745
|
onFiltersChanged: function(oEvent) {
|
|
723
746
|
var oFilterBar = this._getFilterBarControl(),
|
|
724
747
|
oInternalModelContext = this.getView().getBindingContext("internal");
|
|
725
748
|
// Pending filters into FilterBar to be used for custom views
|
|
726
749
|
this.onPendingFilters();
|
|
727
|
-
var bHideDraft = FilterUtils.getEditStateIsHideDraft(oFilterBar.getConditions());
|
|
728
750
|
oInternalModelContext.setProperty("appliedFilters", oFilterBar.getAssignedFiltersText().filtersText);
|
|
729
751
|
oInternalModelContext.setProperty("hasPendingFilters", true);
|
|
730
|
-
oInternalModelContext.setProperty("hideDraftInfo", bHideDraft);
|
|
731
752
|
if (oEvent.getParameter("conditionsBased")) {
|
|
732
753
|
this.getExtensionAPI().updateAppState();
|
|
733
754
|
}
|
|
@@ -737,6 +758,9 @@ sap.ui.define(
|
|
|
737
758
|
oVM = oEvent.getSource();
|
|
738
759
|
// setTimeout cause the variant needs to be applied before judging the auto search or updating the app state
|
|
739
760
|
setTimeout(function() {
|
|
761
|
+
if (that._isMultiMode()) {
|
|
762
|
+
that.handlers.onTabMultiModeChange.apply(that);
|
|
763
|
+
}
|
|
740
764
|
if (that._shouldAutoTriggerSearch(oVM)) {
|
|
741
765
|
// the app state will be updated via onSearch handler
|
|
742
766
|
return that._getFilterBarControl().triggerSearch();
|
|
@@ -757,7 +781,9 @@ sap.ui.define(
|
|
|
757
781
|
var oFilterBar = this._getFilterBarControl();
|
|
758
782
|
var oInternalModelContext = this.getView().getBindingContext("internal");
|
|
759
783
|
var oMdcChart = this.getChartControl();
|
|
784
|
+
var bHideDraft = FilterUtils.getEditStateIsHideDraft(oFilterBar.getConditions());
|
|
760
785
|
oInternalModelContext.setProperty("hasPendingFilters", false);
|
|
786
|
+
oInternalModelContext.setProperty("hideDraftInfo", bHideDraft);
|
|
761
787
|
if (this._isMultiMode()) {
|
|
762
788
|
var aControls = this._getControls(),
|
|
763
789
|
oMultiModeControl = this._getMultiModeControl();
|
|
@@ -816,7 +842,7 @@ sap.ui.define(
|
|
|
816
842
|
*
|
|
817
843
|
* @param {object} oController
|
|
818
844
|
* @param {string} sOutboundTarget Name of the outbound target (needs to be defined in the manifest)
|
|
819
|
-
* @param {sap.ui.model.odata.v4.Context} oContext The context that
|
|
845
|
+
* @param {sap.ui.model.odata.v4.Context} oContext The context that contains the data for the target app
|
|
820
846
|
* @param {string} sCreatePath Create path when the chevron is created.
|
|
821
847
|
* @returns {Promise} Promise which is resolved once the navigation is triggered
|
|
822
848
|
* @ui5-restricted
|
|
@@ -908,6 +934,11 @@ sap.ui.define(
|
|
|
908
934
|
)
|
|
909
935
|
.setVisible(true);
|
|
910
936
|
}
|
|
937
|
+
},
|
|
938
|
+
onTableStateChanged: function(oEvent) {
|
|
939
|
+
if (this.bTestAppState) {
|
|
940
|
+
this.getExtensionAPI().updateAppState();
|
|
941
|
+
}
|
|
911
942
|
}
|
|
912
943
|
},
|
|
913
944
|
formatters: {
|
|
@@ -930,9 +961,9 @@ sap.ui.define(
|
|
|
930
961
|
}
|
|
931
962
|
},
|
|
932
963
|
/**
|
|
933
|
-
* Method to set the message text for the
|
|
964
|
+
* Method to set the message text for the multiple entity sets when fields in the FilterBar need to be ignored.
|
|
934
965
|
*
|
|
935
|
-
* @param {Array} aIgnoredFields Array of ignored fields in the FilterBar for the current tab (
|
|
966
|
+
* @param {Array} aIgnoredFields Array of ignored fields in the FilterBar for the current tab (multiple entity sets)
|
|
936
967
|
* @param {string} sTabTitle Tab title
|
|
937
968
|
* @returns {string} Message text
|
|
938
969
|
*/
|
|
@@ -7,13 +7,14 @@ sap.ui.define(
|
|
|
7
7
|
"sap/fe/core/library",
|
|
8
8
|
"sap/fe/navigation/library",
|
|
9
9
|
"sap/fe/core/CommonUtils",
|
|
10
|
+
"sap/fe/core/helpers/KeepAliveHelper",
|
|
10
11
|
"sap/ui/fl/apply/api/ControlVariantApplyAPI",
|
|
11
12
|
"sap/ui/mdc/p13n/StateUtil",
|
|
12
13
|
"sap/ui/Device",
|
|
13
14
|
"sap/ui/mdc/enum/ConditionValidated",
|
|
14
15
|
"sap/base/Log"
|
|
15
16
|
],
|
|
16
|
-
function(CoreLibrary, NavLibrary, CommonUtils, ControlVariantApplyAPI, StateUtil, Device, ConditionValidated, Log) {
|
|
17
|
+
function(CoreLibrary, NavLibrary, CommonUtils, KeepAliveHelper, ControlVariantApplyAPI, StateUtil, Device, ConditionValidated, Log) {
|
|
17
18
|
"use strict";
|
|
18
19
|
|
|
19
20
|
var NavType = NavLibrary.NavType,
|
|
@@ -48,7 +49,7 @@ sap.ui.define(
|
|
|
48
49
|
var oView = this.getView(),
|
|
49
50
|
oController = oView.getController(),
|
|
50
51
|
aViewControls = oController._getControls(),
|
|
51
|
-
aControlsToRefresh =
|
|
52
|
+
aControlsToRefresh = KeepAliveHelper.getControlsForRefresh(oView, aViewControls);
|
|
52
53
|
|
|
53
54
|
Array.prototype.push.apply(aControls, aControlsToRefresh);
|
|
54
55
|
},
|
|
@@ -56,7 +57,8 @@ sap.ui.define(
|
|
|
56
57
|
var oView = this.getView(),
|
|
57
58
|
oController = oView.getController(),
|
|
58
59
|
oViewData = oView.getViewData(),
|
|
59
|
-
bControlVM = oViewData.variantManagement === VariantManagement.Control
|
|
60
|
+
bControlVM = oViewData.variantManagement === VariantManagement.Control,
|
|
61
|
+
that = this;
|
|
60
62
|
|
|
61
63
|
if (oController._isMultiMode()) {
|
|
62
64
|
aStateControls.push(oController._getMultiModeControl());
|
|
@@ -74,6 +76,9 @@ sap.ui.define(
|
|
|
74
76
|
if (bControlVM) {
|
|
75
77
|
aStateControls.push(oTable.getVariant());
|
|
76
78
|
}
|
|
79
|
+
if (that.getView().getController().bTestAppState) {
|
|
80
|
+
aStateControls.push(oTable);
|
|
81
|
+
}
|
|
77
82
|
});
|
|
78
83
|
|
|
79
84
|
if (oController._hasMultiVisualizations()) {
|
|
@@ -83,6 +88,22 @@ sap.ui.define(
|
|
|
83
88
|
aStateControls.push(oController._getFilterBarControl());
|
|
84
89
|
aStateControls.push(oView.byId("fe::ListReport"));
|
|
85
90
|
},
|
|
91
|
+
adaptControlStateHandler: function(oControl, aControlHandler) {
|
|
92
|
+
if (oControl.isA("sap.ui.fl.variants.VariantManagement")) {
|
|
93
|
+
aControlHandler.push({
|
|
94
|
+
retrieve: function(oVM) {
|
|
95
|
+
return {
|
|
96
|
+
"variantId": oVM.getCurrentVariantKey()
|
|
97
|
+
};
|
|
98
|
+
},
|
|
99
|
+
apply: function(oVM, oControlState) {
|
|
100
|
+
if (oControlState && oControlState.variantId !== undefined) {
|
|
101
|
+
oVM.setModified(true);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
},
|
|
86
107
|
retrieveAdditionalStates: function(mAdditionalStates) {
|
|
87
108
|
var oView = this.getView(),
|
|
88
109
|
oController = oView.getController(),
|
|
@@ -217,9 +238,12 @@ sap.ui.define(
|
|
|
217
238
|
},
|
|
218
239
|
|
|
219
240
|
_applyControlVariant: function(oVariant, sVariantID, bFilterVariantApplied) {
|
|
241
|
+
var sVariantReference = this._checkIfVariantIdIsAvailable(oVariant, sVariantID)
|
|
242
|
+
? sVariantID
|
|
243
|
+
: oVariant.getStandardVariantKey();
|
|
220
244
|
var oVM = ControlVariantApplyAPI.activateVariant({
|
|
221
245
|
element: oVariant,
|
|
222
|
-
variantReference:
|
|
246
|
+
variantReference: sVariantReference
|
|
223
247
|
});
|
|
224
248
|
return oVM.then(function() {
|
|
225
249
|
return bFilterVariantApplied;
|
|
@@ -304,9 +328,11 @@ sap.ui.define(
|
|
|
304
328
|
} else {
|
|
305
329
|
oPromise = Promise.resolve(true);
|
|
306
330
|
}
|
|
307
|
-
|
|
308
331
|
return oPromise.then(function(bClearFilterAndReplaceWithAppState) {
|
|
309
332
|
if (bClearFilterAndReplaceWithAppState) {
|
|
333
|
+
if (that.getView().getController().bTestAppState) {
|
|
334
|
+
return that._fnApplyConditions(oFilterBar, oConditions);
|
|
335
|
+
}
|
|
310
336
|
return that._fnClearFilterAndReplaceWithAppState(oFilterBar, oConditions);
|
|
311
337
|
}
|
|
312
338
|
});
|
|
@@ -359,7 +359,7 @@ sap.ui.define(
|
|
|
359
359
|
entitySetName: CommonHelper.addSingleQuotes(sEntitySetName),
|
|
360
360
|
invocationGrouping: CommonHelper.addSingleQuotes(sInvocationGroup),
|
|
361
361
|
model: "${$source>/}.getModel()",
|
|
362
|
-
label: CommonHelper.addSingleQuotes(oDataField && oDataField.Label),
|
|
362
|
+
label: CommonHelper.addSingleQuotes(oDataField && oDataField.Label, true),
|
|
363
363
|
isNavigable: oHeaderAction && oHeaderAction.isNavigable,
|
|
364
364
|
defaultValuesExtensionFunction:
|
|
365
365
|
oHeaderAction && oHeaderAction.defaultValuesExtensionFunction
|
|
@@ -392,7 +392,7 @@ sap.ui.define(
|
|
|
392
392
|
entitySetName: CommonHelper.addSingleQuotes(sEntitySetName),
|
|
393
393
|
invocationGrouping: CommonHelper.addSingleQuotes(sInvocationGroup),
|
|
394
394
|
model: "${$source>/}.getModel()",
|
|
395
|
-
label: CommonHelper.addSingleQuotes(oDataField && oDataField.Label),
|
|
395
|
+
label: CommonHelper.addSingleQuotes(oDataField && oDataField.Label, true),
|
|
396
396
|
isNavigable: oHeaderAction && oHeaderAction.isNavigable,
|
|
397
397
|
defaultValuesExtensionFunction:
|
|
398
398
|
oHeaderAction && oHeaderAction.defaultValuesExtensionFunction
|
|
@@ -68,6 +68,12 @@ sap.ui.define(
|
|
|
68
68
|
prepareOnEdit: {
|
|
69
69
|
type: "boolean",
|
|
70
70
|
defaultValue: false
|
|
71
|
+
},
|
|
72
|
+
/**
|
|
73
|
+
* Defines the properties which can be used for inbound Navigation
|
|
74
|
+
*/
|
|
75
|
+
inboundParameters: {
|
|
76
|
+
type: "object"
|
|
71
77
|
}
|
|
72
78
|
},
|
|
73
79
|
library: "sap.fe.templates",
|
|
@@ -99,12 +105,23 @@ sap.ui.define(
|
|
|
99
105
|
oParamters
|
|
100
106
|
);
|
|
101
107
|
|
|
108
|
+
var oStartUpParams =
|
|
109
|
+
this.oAppComponent &&
|
|
110
|
+
this.oAppComponent.getComponentData() &&
|
|
111
|
+
this.oAppComponent.getComponentData().startupParameters,
|
|
112
|
+
oInboundParameters = this.getViewData().inboundParameters,
|
|
113
|
+
createParams;
|
|
114
|
+
if (oStartUpParams.preferredMode && oStartUpParams.preferredMode[0].indexOf("create") !== -1) {
|
|
115
|
+
createParams = CommonUtils.getAdditionalParamsForCreate(oStartUpParams, oInboundParameters);
|
|
116
|
+
}
|
|
117
|
+
|
|
102
118
|
// for now wait until the view and the controller is created
|
|
103
119
|
that.getRootControl()
|
|
104
120
|
.getController()
|
|
105
121
|
.editFlow.createDocument(oListBinding, {
|
|
106
122
|
creationMode: "Sync",
|
|
107
|
-
createAction: bActionCreate
|
|
123
|
+
createAction: bActionCreate,
|
|
124
|
+
data: createParams
|
|
108
125
|
})
|
|
109
126
|
.finally(function() {
|
|
110
127
|
that.DeferredContextCreated = false;
|