sap-fiori

Hide Approve/Reject Buttons in Fiori Master Details Page

荒凉一梦 提交于 2021-01-29 18:02:17
问题 I am looking to hide the Approve/Reject Buttons in the Details Page of a Fiori App based on certain filter conditions. The filters are added in the Master List view (Left hand side view) thru the view/controller extension. Now, if the user selects certain type of filter ( Lets say, Past Orders) - then the approve/reject button should not be displayed in the Order Details Page. This is how I have defined the buttons in the Header/Details view this.oHeaderFooterOptions = { oPositiveAction: {

smartfield annotation - valuehelp dropdown

假如想象 提交于 2021-01-29 04:34:42
问题 I have a value help field and want to see only descriptions (not codes) in the dropdown. After selection, want to store the code in another field which would be in hidden mode. For this, I have defined the following annotation: <Annotations Target="Metadata.CallReport/DivisionText"> <Annotation Term="Common.ValueList"> <Record Type="Common.ValueListType"> <PropertyValue Property="CollectionPath" String="CustomizingDivisionSet" /> <PropertyValue Property="Parameters"> <Collection> <Record Type

Cannot find name 'jQuery' error in controller.js

好久不见. 提交于 2021-01-28 18:36:51
问题 I am developing a UI5 app in VS Code. I added a new count function to the *.controller.js file, and in order to display the count from the server, I am using jQuery like in the following code: jQuery.each(this._mFilters, function (sFilterKey, oFilter) { oModel.read("/portfolios/$count", { filters: oFilter, success: function (oData) { var sPath = "/" + sFilterKey; oViewModel.setProperty(sPath, oData); } }); }); Unfortunately, I get the following error: Does anyone know why was the error

smartfield annotation - valuehelp dropdown - does not show description

放肆的年华 提交于 2021-01-07 03:17:59
问题 I have a problem where the smartfield (build in xml view using WebIDE) does not show the description of the key field instead just shows the key field in both the dropdown list columns. example : 1(1) and the expectation is 1( local tax ) . My service is built using tcode : SEGW and using WebIDE to develop the ui and annotation for the dropdown as a fixed list. I see a solution smartfield annotation - valuehelp dropdown , but I am unable to add the sap:text to my service in SEGW. Problem :

smartfield annotation - valuehelp dropdown - does not show description

坚强是说给别人听的谎言 提交于 2021-01-07 03:17:26
问题 I have a problem where the smartfield (build in xml view using WebIDE) does not show the description of the key field instead just shows the key field in both the dropdown list columns. example : 1(1) and the expectation is 1( local tax ) . My service is built using tcode : SEGW and using WebIDE to develop the ui and annotation for the dropdown as a fixed list. I see a solution smartfield annotation - valuehelp dropdown , but I am unable to add the sap:text to my service in SEGW. Problem :

smartfield annotation - valuehelp dropdown - does not show description

删除回忆录丶 提交于 2021-01-07 03:16:39
问题 I have a problem where the smartfield (build in xml view using WebIDE) does not show the description of the key field instead just shows the key field in both the dropdown list columns. example : 1(1) and the expectation is 1( local tax ) . My service is built using tcode : SEGW and using WebIDE to develop the ui and annotation for the dropdown as a fixed list. I see a solution smartfield annotation - valuehelp dropdown , but I am unable to add the sap:text to my service in SEGW. Problem :

FLP: Setting Custom Initial Focus on App Launch Fails

梦想与她 提交于 2020-05-16 13:27:07
问题 I am trying to set initial focus to the first input field in each page of my app. I have implemented the code in the following post and it is working great: How to Set Initial Focus in a View? But I found that it is not working for first view/page in app when it opens from Fiori Launchpad . I found the following code which is getting executed after my onAfterShow : From sap/ushell/renderers/fiori2/Shell-dbg.controller.js Could you please help to solve this? I am using SAP UI5 version 1.56.7.