https://raw.githubusercontent.com/ajmaradiaga/feeds/main/scmt/topics/SAPUI5-qa.xmlSAP Community - SAPUI52024-09-01T02:02:14.734764+00:00python-feedgenSAPUI5 Q&A in SAP Communityhttps://community.sap.com/t5/technology-q-a/implement-page-level-security-in-custom-ui5-application/qaq-p/13796841Implement Page level security in custom UI5 application2024-08-16T08:51:05.450000+02:00SAPSupporthttps://community.sap.com/t5/user/viewprofilepage/user-id/121003<P> </P><P>Not able to Implement Page level security in custom UI5 application.</P><P>Our custom SAPUI5 application deployed in SAP BTP.</P><P>In our application there are 3 pages, we want to restrict the page access according to the user authorization. Roles are maintained in BTP security.</P><P> </P><BR />------------------------------------------------------------------------------------------------------------------------------------------------<BR /><B>Learn more about the SAP Support user and program <A target="_blank" href="https://community.sap.com/t5/enterprise-resource-planning-blogs-by-sap/maximizing-the-power-of-sap-community-at-product-support/ba-p/13501276">here</A>.</B>2024-08-16T08:51:05.450000+02:00https://community.sap.com/t5/technology-q-a/failed-to-load-component-for-container-moduleerror-failed-to-load/qaq-p/13799486Failed to load component for container - ModuleError: failed to load2024-08-19T14:57:00.275000+02:00Prajwal_Nhttps://community.sap.com/t5/user/viewprofilepage/user-id/1399883<P>Hi all,</P><P>I'm experiencing an issue with loading a component in my SAPUI5 application. The error message I'm seeing is:</P><P>"Failed to load component for container - ModuleError: failed to load 'employeeapplication/SharedBlocks/PersonalDetails.js' from ./SharedBlocks/PersonalDetails.js: script load error"</P><P>My manifest.json file looks like this:</P><DIV><DIV><SPAN>{</SPAN></DIV><DIV><SPAN> "_version": "1.59.0",</SPAN></DIV><DIV><SPAN> "sap.app": {</SPAN></DIV><DIV><SPAN> "id": "employeeapplication",</SPAN></DIV><DIV><SPAN> "type": "application",</SPAN></DIV><DIV><SPAN> "i18n": "i18n/i18n.properties",</SPAN></DIV><DIV><SPAN> "applicationVersion": {</SPAN></DIV><DIV><SPAN> "version": "0.0.1"</SPAN></DIV><DIV><SPAN> },</SPAN></DIV><DIV><SPAN> "title": "{{appTitle}}",</SPAN></DIV><DIV><SPAN> "description": "{{appDescription}}",</SPAN></DIV><DIV><SPAN> "resources": "resources.json",</SPAN></DIV><DIV><SPAN> "sourceTemplate": {</SPAN></DIV><DIV><SPAN> "id": "@sap/generator-fiori:basic",</SPAN></DIV><DIV><SPAN> "version": "1.14.1",</SPAN></DIV><DIV><SPAN> "toolsId": "9e31bfee-31bb-417f-bee7-4d3c1801703c"</SPAN></DIV><DIV><SPAN> },</SPAN></DIV><DIV><SPAN> "dataSources": {</SPAN></DIV><DIV><SPAN> "mainService": {</SPAN></DIV><DIV><SPAN> "uri": "/sap/opu/odata/sap/ZUI_C_PNL/",</SPAN></DIV><DIV><SPAN> "type": "OData",</SPAN></DIV><DIV><SPAN> "settings": {</SPAN></DIV><DIV><SPAN> "annotations": [],</SPAN></DIV><DIV><SPAN> "localUri": "localService/metadata.xml",</SPAN></DIV><DIV><SPAN> "odataVersion": "2.0"</SPAN></DIV><DIV><SPAN> }</SPAN></DIV><DIV><SPAN> }</SPAN></DIV><DIV><SPAN> },</SPAN></DIV><DIV><SPAN> "crossNavigation": {</SPAN></DIV><DIV><SPAN> "inbounds": {</SPAN></DIV><DIV><SPAN> "zpc_emp-display": {</SPAN></DIV><DIV><SPAN> "semanticObject": "zpc_emp",</SPAN></DIV><DIV><SPAN> "action": "display",</SPAN></DIV><DIV><SPAN> "title": "{{flpTitle}}",</SPAN></DIV><DIV><SPAN> "signature": {</SPAN></DIV><DIV><SPAN> "parameters": {},</SPAN></DIV><DIV><SPAN> "additionalParameters": "allowed"</SPAN></DIV><DIV><SPAN> }</SPAN></DIV><DIV><SPAN> }</SPAN></DIV><DIV><SPAN> }</SPAN></DIV><DIV><SPAN> }</SPAN></DIV><DIV><SPAN> },</SPAN></DIV><DIV><SPAN> "sap.ui": {</SPAN></DIV><DIV><SPAN> "technology": "UI5",</SPAN></DIV><DIV><SPAN> "icons": {</SPAN></DIV><DIV><SPAN> "icon": "",</SPAN></DIV><DIV><SPAN> "favIcon": "",</SPAN></DIV><DIV><SPAN> "phone": "",</SPAN></DIV><DIV><SPAN> "phone@2": "",</SPAN></DIV><DIV><SPAN> "tablet": "",</SPAN></DIV><DIV><SPAN> "tablet@2": ""</SPAN></DIV><DIV><SPAN> },</SPAN></DIV><DIV><SPAN> "deviceTypes": {</SPAN></DIV><DIV><SPAN> "desktop": true,</SPAN></DIV><DIV><SPAN> "tablet": true,</SPAN></DIV><DIV><SPAN> "phone": true</SPAN></DIV><DIV><SPAN> }</SPAN></DIV><DIV><SPAN> },</SPAN></DIV><DIV><SPAN> "sap.ui5": {</SPAN></DIV><DIV><SPAN> "flexEnabled": true,</SPAN></DIV><DIV><SPAN> "dependencies": {</SPAN></DIV><DIV><SPAN> "minUI5Version": "1.121.6",</SPAN></DIV><DIV><SPAN> "libs": {</SPAN></DIV><DIV><SPAN> "sap.m": {},</SPAN></DIV><DIV><SPAN> "sap.ui.core": {},</SPAN></DIV><DIV><SPAN> "sap.f": {},</SPAN></DIV><DIV><SPAN> "sap.suite.ui.generic.template": {},</SPAN></DIV><DIV><SPAN> "sap.ui.comp": {},</SPAN></DIV><DIV><SPAN> "sap.ui.generic.app": {},</SPAN></DIV><DIV><SPAN> "sap.ui.table": {},</SPAN></DIV><DIV><SPAN> "sap.ushell": {}</SPAN></DIV><DIV><SPAN> }</SPAN></DIV><DIV><SPAN> },</SPAN></DIV><DIV><SPAN> "contentDensities": {</SPAN></DIV><DIV><SPAN> "compact": true,</SPAN></DIV><DIV><SPAN> "cozy": true</SPAN></DIV><DIV><SPAN> },</SPAN></DIV><DIV><SPAN> "models": {</SPAN></DIV><DIV><SPAN> "i18n": {</SPAN></DIV><DIV><SPAN> "type": "sap.ui.model.resource.ResourceModel",</SPAN></DIV><DIV><SPAN> "settings": {</SPAN></DIV><DIV><SPAN> "bundleName": "employeeapplication.i18n.i18n"</SPAN></DIV><DIV><SPAN> }</SPAN></DIV><DIV><SPAN> },</SPAN></DIV><DIV><SPAN> "": {</SPAN></DIV><DIV><SPAN> "dataSource": "mainService",</SPAN></DIV><DIV><SPAN> "preload": true,</SPAN></DIV><DIV><SPAN> "settings": {}</SPAN></DIV><DIV><SPAN> }</SPAN></DIV><DIV><SPAN> },</SPAN></DIV><DIV><SPAN> "resources": {</SPAN></DIV><DIV><SPAN> "css": [</SPAN></DIV><DIV><SPAN> {</SPAN></DIV><DIV><SPAN> "uri": "css/style.css"</SPAN></DIV><DIV><SPAN> }</SPAN></DIV><DIV><SPAN> ],</SPAN></DIV><DIV><SPAN> "js": [</SPAN></DIV><DIV><SPAN> {</SPAN></DIV><DIV><SPAN> "uri": "SharedBlocks/PersonalDetails.js"</SPAN></DIV><DIV><SPAN> }</SPAN></DIV><DIV><SPAN> ]</SPAN></DIV><DIV><SPAN> },</SPAN></DIV><DIV><SPAN> "blocks": {</SPAN></DIV><DIV><SPAN> "uri": "SharedBlocks/",</SPAN></DIV><DIV><SPAN> "blocks": {</SPAN></DIV><DIV><SPAN> "PersonalDetails": {</SPAN></DIV><DIV><SPAN> "uri": "SharedBlocks/PersonalDetails.js"</SPAN></DIV><DIV><SPAN> }</SPAN></DIV><DIV><SPAN> }</SPAN></DIV><DIV><SPAN> }, </SPAN></DIV><DIV><SPAN> "routing": {</SPAN></DIV><DIV><SPAN> "config": {</SPAN></DIV><DIV><SPAN> "routerClass": "sap.m.routing.Router",</SPAN></DIV><DIV><SPAN> "viewType": "XML",</SPAN></DIV><DIV><SPAN> "async": true,</SPAN></DIV><DIV><SPAN> "viewPath": "employeeapplication.view",</SPAN></DIV><DIV><SPAN> "controlAggregation": "pages",</SPAN></DIV><DIV><SPAN> "controlId": "app",</SPAN></DIV><DIV><SPAN> "clearControlAggregation": false</SPAN></DIV><DIV><SPAN> }, </SPAN></DIV><DIV><SPAN> "routes": [</SPAN></DIV><DIV><SPAN> {</SPAN></DIV><DIV><SPAN> "name": "Home",</SPAN></DIV><DIV><SPAN> "pattern": "",</SPAN></DIV><DIV><SPAN> "target": [</SPAN></DIV><DIV><SPAN> "TargetEmployeeData"</SPAN></DIV><DIV><SPAN> ]</SPAN></DIV><DIV><SPAN> },</SPAN></DIV><DIV><SPAN> {</SPAN></DIV><DIV><SPAN> "name": "detail",</SPAN></DIV><DIV><SPAN> "pattern": "product/{Empid}",</SPAN></DIV><DIV><SPAN> "target": [</SPAN></DIV><DIV><SPAN> "Targetpnl"</SPAN></DIV><DIV><SPAN> ]</SPAN></DIV><DIV><SPAN> },</SPAN></DIV><DIV><SPAN> {</SPAN></DIV><DIV><SPAN> "name": "create_personal_details",</SPAN></DIV><DIV><SPAN> "pattern": "create",</SPAN></DIV><DIV><SPAN> "target": [</SPAN></DIV><DIV><SPAN> "Targetcreatepnl"</SPAN></DIV><DIV><SPAN> ]</SPAN></DIV><DIV><SPAN> }</SPAN></DIV><DIV><SPAN> </SPAN></DIV><DIV><SPAN> ],</SPAN></DIV><DIV><SPAN> "targets": {</SPAN></DIV><DIV><SPAN> "TargetEmployeeData": {</SPAN></DIV><DIV><SPAN> "viewType": "XML",</SPAN></DIV><DIV><SPAN> "transition": "slide",</SPAN></DIV><DIV><SPAN> "clearControlAggregation": false,</SPAN></DIV><DIV><SPAN> "viewName": "EmployeeData"</SPAN></DIV><DIV><SPAN> },</SPAN></DIV><DIV><SPAN> "Targetpnl": {</SPAN></DIV><DIV><SPAN> "viewType": "XML",</SPAN></DIV><DIV><SPAN> "transition": "slide",</SPAN></DIV><DIV><SPAN> "clearControlAggregation": false,</SPAN></DIV><DIV><SPAN> "viewName": "pnl"</SPAN></DIV><DIV><SPAN> },</SPAN></DIV><DIV><SPAN> "Targetcreatepnl": {</SPAN></DIV><DIV><SPAN> "viewType": "XML",</SPAN></DIV><DIV><SPAN> "transition": "slide",</SPAN></DIV><DIV><SPAN> "clearControlAggregation": false,</SPAN></DIV><DIV><SPAN> "viewName": "createpnl"</SPAN></DIV><DIV><SPAN> }</SPAN></DIV><DIV><SPAN> </SPAN></DIV><DIV><SPAN> }</SPAN></DIV><DIV><SPAN> },</SPAN></DIV><DIV><SPAN> "rootView": {</SPAN></DIV><DIV><SPAN> "viewName": "employeeapplication.view.App",</SPAN></DIV><DIV><SPAN> "type": "XML",</SPAN></DIV><DIV><SPAN> "async": true,</SPAN></DIV><DIV><SPAN> "id": "App"</SPAN></DIV><DIV><SPAN> }</SPAN></DIV><DIV><SPAN> },</SPAN></DIV><DIV><SPAN> "sap.cloud": {</SPAN></DIV><DIV><SPAN> "public": true,</SPAN></DIV><DIV><SPAN> "service": "employeeapplication"</SPAN></DIV><DIV><SPAN> } </SPAN></DIV><DIV><SPAN>}</SPAN></DIV><DIV><P><BR />And my PersonalDetails.js file looks like this:</P><P>sap.ui.define([<BR />"sap/ui/core/UIComponent"<BR />], function(UIComponent) {<BR />"use strict";<BR /><BR />return UIComponent.extend("employeeapplication.SharedBlocks.PersonalDetails", {<BR />metadata: {<BR />properties: {<BR />// your properties here<BR />}<BR />},<BR /><BR />init: function() {<BR />// your initialization code here<BR />}<BR />});<BR />});</P><P> </P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Prajwal_N_0-1724071946734.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/154142i366592A7979DE999/image-size/medium?v=v2&px=400" role="button" title="Prajwal_N_0-1724071946734.png" alt="Prajwal_N_0-1724071946734.png" /></span><P>error in console I am facing .</P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Prajwal_N_2-1724072159862.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/154151i9403A9634BA82387/image-size/medium?v=v2&px=400" role="button" title="Prajwal_N_2-1724072159862.png" alt="Prajwal_N_2-1724072159862.png" /></span><P> </P></DIV></DIV>2024-08-19T14:57:00.275000+02:00https://community.sap.com/t5/technology-q-a/adding-a-new-field-in-v2-odatamodel-binded-to-a-sap-ui-table-table/qaq-p/13800603Adding a new field in v2 oDataModel binded to a sap.ui.table.Table / TreeTable in UI5 app.2024-08-20T12:43:27.833000+02:00nareshmallyahttps://community.sap.com/t5/user/viewprofilepage/user-id/885699<P>Hi Everyone</P><P>I have an oData EntitySet "CUSTOMER_HIER_LIST" directly binded to sap.ui.table.TreeTable using v2 oDataModel and displays the treetable rows using treeAnnotationProperties binding. Now I want to initialize a new field called "IS_SELECTED" for each row. I have a sap.m.CheckBox in each row to which I will bind it. This field is not present in the CUSTOMER_HIERARCHY_LIST entity's metadata. I am not able to use Table.addSelectionRows() as I have a custom requirement for row selection.</P><P>In the 'dataReceived' event of the tree binding, if I try to do like below, then I see the error in the browser console as <FONT color="#FF0000">"Assertion failed: IS_SELECTED is not a valid property path" </FONT><FONT color="#FF0000"><FONT color="#000000">which is true because the field is not present in the entity set.</FONT></FONT></P><P> </P><pre class="lia-code-sample language-javascript"><code>onCustomerListDataRecieved: function(oEvent){
const oTreeTable = this.getView().byId("treeTableId"),
aBindingContexts = oTreeTable.getBinding("rows").getContexts();
aBindingContexts.forEach((oRowContext)=>{
//This works because the field is present in entityset
this.getModel("odataV2").setProperty("CUST_DESCR", "TEST CUSTOMER", oRowContext);
//This does not work as the field is not present in entityset's metdata
this.getModel("odataV2").setProperty("IS_SELECTED", false, oRowContext);
});
}</code></pre><P> </P><P>I can change the value of an existing field, but then is it even possible to add a new field to v2 oDataModel as above?</P><P>Any suggestions and solutions will be greatly appreciated. <BR /><BR />Thanks,</P><P>Naresh</P><P><BR /><BR /><BR /></P>2024-08-20T12:43:27.833000+02:00https://community.sap.com/t5/technology-q-a/first-option-in-radiobuttongroup-is-undefined-when-selected/qaq-p/13801346First Option in RadioButtonGroup is undefined when selected2024-08-20T22:47:09.219000+02:00Joe_https://community.sap.com/t5/user/viewprofilepage/user-id/1462313<P>I have a RadioButtonGroup in my form that is bound to my OData model as follows:</P><pre class="lia-code-sample language-markup"><code><RadioButtonGroup id="OnsiteRemote" columns="4" enabled="true" selectedIndex="{/OnsiteRemote}">
<RadioButton id="idRemote" text="Remote" class="sapUiSmallMarginEnd" />
<RadioButton id="idOnsite" text="Onsite" class="sapUiSmallMarginEnd"/>
<RadioButton id="idOnsitePreferred" text="Onsite Preferred" class="sapUiSmallMarginEnd"/>
<RadioButton id="idCombination" text="Combination"/>
</RadioButtonGroup></code></pre><P>If I select the first option, "Remote", and submit the form the field is coming in as undefined. This does not happen if I pick any of the other 3 options and submit, OR if I pick one of the other options first and then go back and select "Remote". </P><P>How can I get it so when selecting Remote it comes through correctly the first time without having to select another option first?</P>2024-08-20T22:47:09.219000+02:00https://community.sap.com/t5/technology-q-a/sapui5-framework-files-outdated/qaq-p/13803057SAPUI5 Framework files outdated2024-08-22T07:02:41.232000+02:00AlexNeculahttps://community.sap.com/t5/user/viewprofilepage/user-id/161235<P>I have updated the UI5 framework from 1.96.12 to 1.96.32.</P><P>After transporting to the quality system, some files seem outdated, I think there is a cache issue.</P><P>For example, in the date fields, the placeholder is broken:</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlexNecula_0-1724302588664.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/155692iA0B5636B55F6570D/image-size/medium?v=v2&px=400" role="button" title="AlexNecula_0-1724302588664.png" alt="AlexNecula_0-1724302588664.png" /></span></P><P>In the console, we can see that the text isn't found and it was triggered from the line 2592 of DateFormat-dbg.js</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlexNecula_1-1724302649383.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/155694i46FA23E1FF1CA55E/image-size/medium?v=v2&px=400" role="button" title="AlexNecula_1-1724302649383.png" alt="AlexNecula_1-1724302649383.png" /></span></P><P>However, when I click on it, the file contains only 2424 lines! Therefore, the dbg file is not the same as the original file because some of them are not updated.</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlexNecula_3-1724302722356.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/155697iC82FFA37688BAC16/image-size/medium?v=v2&px=400" role="button" title="AlexNecula_3-1724302722356.png" alt="AlexNecula_3-1724302722356.png" /></span></P><P>Does anyone know how to clear this type of cache, maybe regenerate that timestamp part from the path?</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlexNecula_4-1724302763495.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/155698iAA12C9C6122EFA7E/image-size/medium?v=v2&px=400" role="button" title="AlexNecula_4-1724302763495.png" alt="AlexNecula_4-1724302763495.png" /></span></P><P>I have tried with the normal cache-clearing programs like /UI2/INVALIDATE_GLOBAL_CACHES, restarting the system, redoing the update manually (so this time without transport) but nothing worked. In the DEV system everything is ok.</P><P>Thanks in advance for your help!</P><P> </P>2024-08-22T07:02:41.232000+02:00https://community.sap.com/t5/technology-q-a/sapui5-odatalistbinding-create-duplicates-entries/qaq-p/13803897SAPUI5 ODataListBinding.create duplicates entries2024-08-22T16:54:22.879000+02:00twe_aretohttps://community.sap.com/t5/user/viewprofilepage/user-id/1618767<P>Hello everybody,</P><P>I am building an SAPUI5 application based on OData V2 build with SEGW.</P><P>I am facing a weird behavior: In a sap.m.Table my created entries are duplicated after submitting and refreshing.</P><P>The table is defined like this:</P><pre class="lia-code-sample language-markup"><code><Table
id="KeyfToSourceTable"
mode="{= ${keyfEdit>/editing} ? 'MultiSelect' : 'None' }"
items="{
path: '/MapKeyfSourceSet'
}" >
<headerToolbar>
<OverflowToolbar>
<Title text="Table" level="H3" />
<ToolbarSpacer />
<Button
icon="sap-icon://add"
press=".onDatasourceHelpRequested"
visible="{keyfEdit>/editing}" />
<Button
icon="sap-icon://delete"
press=".onDatasourceDeletePressed"
visible="{keyfEdit>/editing}" />
</OverflowToolbar>
</headerToolbar>
<columns>
<Column>
<Text text="Sourcestxt" />
</Column>
<Column>
<Text text="Employeetext" />
</Column>
<Column>
<Text text="SbTxtlg" />
</Column>
</columns>
<items>
<ColumnListItem vAlign="Middle">
<cells>
<ObjectIdentifier
title="{Sourcestxt}"/>
<Text
text="{Employeetext}" />
<Text
text="{SbTxtlg}" />
</cells>
</ColumnListItem>
</items>
</Table></code></pre><P>It displays entities mapped to my main object. So I filter these at runtime (and sometimes I have to rebind the table):</P><pre class="lia-code-sample language-javascript"><code>var sourceSystemTable = this.byId("KeyfToSourceTable");
var keyfId = this.getView().getBindingContext().getProperty("Keyfid");
var filterArray = [new Filter("Keyfid", FilterOperator.EQ, keyfId)];
sourceSystemTable.bindItems({path:"/MapKeyfSourceSet", template: oldTemplate, filters: new Filter(filterArray, true)})</code></pre><P>The User should be able to edit the main object and the mapping table and just save at the end. But the table should display the new entries, which are not persisted yet. Therefore I use the ODataListBinding.create function like it is discribed <A href="https://ui5.sap.com/sdk#/topic/6c47b2b39db9404582994070ec3d57a2#loio4c4cd99af9b14e08bb72470cc7cabff4" target="_blank" rel="noopener noreferrer">in the documentation</A>:</P><pre class="lia-code-sample language-javascript"><code>this.byId("KeyfToSourceTable").getBinding("items").create(oEntry, {
inactive : false,
success: function(data) {
alert("success createdMapping");
},
error: function(data) {
alert("error createdMapping");
}
});</code></pre><P>It works as designed, new Entries are shown and not persisted until the user clicks "save" and submitChanges() is called.</P><P>But after a refresh() is called or the Binding of the table is changed, the new entries are duplicated. They are added at the top of the table again. I already looked at the BindingContexts of the items and the binding of the table, the bindings seem absolutly the same.</P><P>Even when I look at a differend main object and the filter doesn't seem to work for these duplicates. They also appear at the top of the table. But looking at the binding and also getting the filterted property, they shouldn't be there. These duplicates don't exists in the backend/data base tables. They also all are not transient, so I am not able to filter them by myself.</P><P>I assume these duplicates are just in the client model.</P><P>I appreciate any help,<BR />Kind regards</P><P>Tobias</P>2024-08-22T16:54:22.879000+02:00https://community.sap.com/t5/technology-q-a/sortproperty-and-filterproperty-not-working-but-column-is-visible-in/qaq-p/13804031sortProperty and filterProperty not working, but column is visible in Columns tab in p13n dialog2024-08-22T19:21:55.306000+02:00Siddhesh2https://community.sap.com/t5/user/viewprofilepage/user-id/1558878<P>I have the following code in my view.xml =></P><P> </P><P> </P><P> </P><pre class="lia-code-sample language-markup"><code><table:Column id="TimeBucketCol00" hAlign="End" minWidth="100">
<Label text="{i18n>invoiceDescription}" />
<table:customData>
<core:CustomData key="p13nData" value='\{"columnKey": "invoiceDescription", "leadingProperty":"invoiceDescription", "sortProperty": "invoiceDescription", "filterProperty": "invoiceDescription", "type":"string"}'/>
</table:customData>
<table:template>
<Text text="{invoiceDescription}" wrapping="false"/>
</table:template>
</table:Column></code></pre><P> </P><P>The metadata =></P><pre class="lia-code-sample language-abap"><code><Property Name="invoiceDescription" Type="Edm.String" MaxLength="255"/></code></pre><P> </P><P> </P><P> However once I open the p13n dialog, I don't find the column in my sort/filter tab</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Siddhesh2_0-1724347037160.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/156103i481A56EFCD1BE0EF/image-size/medium?v=v2&px=400" role="button" title="Siddhesh2_0-1724347037160.png" alt="Siddhesh2_0-1724347037160.png" /></span></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Siddhesh2_1-1724347060089.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/156104i1A7397F37AD9F455/image-size/medium?v=v2&px=400" role="button" title="Siddhesh2_1-1724347060089.png" alt="Siddhesh2_1-1724347060089.png" /></span></P><P> </P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Siddhesh2_2-1724347077717.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/156105i1D503194CE20ACE7/image-size/medium?v=v2&px=400" role="button" title="Siddhesh2_2-1724347077717.png" alt="Siddhesh2_2-1724347077717.png" /></span></P><P><BR /><BR />Once I remove it from my customData then the filter/sort appears, but then I want to have formatter on that column, which is why I used customData tag.<BR /><BR />Is there a way to -> <BR />1. Add formatter on my backend, which uses CDS annotations<BR />2. Also, if i use customData on a column does it override whatever annotations are given for that column in the backend?<BR />3. What changes should I do in my above code?</P>2024-08-22T19:21:55.306000+02:00https://community.sap.com/t5/technology-q-a/datepicker-input-changing-to-unix-epoch/qaq-p/13804099DatePicker Input Changing to Unix Epoch2024-08-22T22:09:07.414000+02:00Joe_https://community.sap.com/t5/user/viewprofilepage/user-id/1462313<P>I have a form with DatePicker fields which are bound to fields in my model.</P><pre class="lia-code-sample language-markup"><code><Label design="Bold" text="From Date" required="true"/>
<DatePicker id="FromDate" valueFormat="YYYY-MM-dd" displayFormat="MM-dd-YYYY" value="{/FromDate}"/>
<Label design="Bold" text="To Date" required="true"/>
<DatePicker id="ToDate" valueFormat="YYYY-MM-dd" displayFormat="MM-dd-YYYY" value="{/ToDate}"/></code></pre><P>When I submit the form, I can see that the object being sent back has the correct date that was entered:</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Joe__1-1724357027494.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/156128i7221FECDFCDB62D3/image-size/medium?v=v2&px=400" role="button" title="Joe__1-1724357027494.png" alt="Joe__1-1724357027494.png" /></span></P><P>However, when this data is received in the Create exit, these values are being converted to Unix Epoch "1970-01-01":</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Joe__2-1724357277425.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/156129iEF4ADBB57144ECF5/image-size/medium?v=v2&px=400" role="button" title="Joe__2-1724357277425.png" alt="Joe__2-1724357277425.png" /></span></P><P>Is there some additional formatting I need to do before they get sent back to prevent this from happening?</P><P> </P>2024-08-22T22:09:07.414000+02:00https://community.sap.com/t5/technology-q-a/data-service-license-key/qaq-p/13804856data service license key2024-08-23T11:38:00.285000+02:00mengzhnaghttps://community.sap.com/t5/user/viewprofilepage/user-id/1168354<P>when i try to find a license key for data services function, but cannot find the correct product in the drop-list, which product i need to choose and to find the license key for data services, pls kindly advise, thanks a lot.</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mengzhnag_0-1724405872454.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/156509i225F2E3BF4CF0D95/image-size/medium?v=v2&px=400" role="button" title="mengzhnag_0-1724405872454.png" alt="mengzhnag_0-1724405872454.png" /></span></P><P> </P>2024-08-23T11:38:00.285000+02:00https://community.sap.com/t5/technology-q-a/filtering-on-smart-table-tree-table-works-only-on-level-0/qaq-p/13805712Filtering on smart table - Tree Table works only on Level 02024-08-24T06:00:49.560000+02:00Siddhesh2https://community.sap.com/t5/user/viewprofilepage/user-id/1558878<P>The requirement is to filter a smart table - tree table for 'code' and display the entire parent hierarchy of that node. <BR />We use default personalisation on the smart table, but it works only on level 0. <BR />This is the call being made<BR /><SPAN>GET Category?<STRONG>$filter=level%20eq%200%20and%20(name%20eq%20%27Pulp%27)</STRONG>&$select=code%2cname%2cstatus%2cspend%2clevel%2cparent_code%2cdrillState&$skip=0&$top=110&$inlinecount=allpages<BR /><BR /></SPAN>The filter level 0 is added by default and is only filtering level 0. How do I make it level agnostic and also get its parent node as well. Is there any customisation of the query that can be made?</P>2024-08-24T06:00:49.560000+02:00https://community.sap.com/t5/technology-q-a/custom-css-for-component-based-ui-integration-cards/qaq-p/13807621Custom CSS for component based UI Integration Cards2024-08-26T18:40:44.693000+02:00OmriChttps://community.sap.com/t5/user/viewprofilepage/user-id/1659020<P>Hello Experts,</P><P>I'm using UI integration card for my advanced workzone on BTP.</P><P>The UI integration card is component based.</P><P>It works but I can't add custom css.</P><P>In a freestyle UI5 app I'm adding css file, reference it in the manifest and it works.</P><P>I did it for the card project but on runtime I'm getting 404 for the style file.</P><P>Is it possible to add custom css for a component based UI integration card?</P><P>If yes, how?</P><P>Regards,</P><P>Omri<span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CardCustomCSS.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/157795i5CA5157A2F9A1601/image-size/large?v=v2&px=999" role="button" title="CardCustomCSS.png" alt="CardCustomCSS.png" /></span><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Style404.png" style="width: 889px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/157796iF50080141ADE222F/image-size/large?v=v2&px=999" role="button" title="Style404.png" alt="Style404.png" /></span></P>2024-08-26T18:40:44.693000+02:00https://community.sap.com/t5/technology-q-a/fiori-migration-to-sapui5-with-bas/qaq-p/13808170FIORI migration to SAPUI5 with BAS2024-08-27T09:54:58.510000+02:00robmamba25https://community.sap.com/t5/user/viewprofilepage/user-id/866133<P>FIORI migration to SAPUI5 with BAS</P><P>I am trying to migrate a fiori app to cloud foundry, specifically Purchase requisitions professional which is in this link <A href="https://fioriappslibrary.hana.ondemand.com/sap/fix/externalViewer/#/detail/Apps('F2229')/S14OP" target="_blank" rel="nofollow noopener noreferrer">https://fioriappslibrary.hana.ondemand.com/sap/fix/externalViewer/#/detail/Apps('F2229')/S14OP</A>, but looking at the components it needs I realized that the application points to the components of another application which is this one (sap.ui.s2p.mm.lib.reuse.accounting) <A href="https://fioriappslibrary.hana.ondemand.com/sap/fix/externalViewer/#/detail/Apps('F1643')/S14OP" target="_blank" rel="nofollow noopener noreferrer">https://fioriappslibrary.hana.ondemand.com/sap/fix/externalViewer/#/detail/Apps('F1643')/S14OP</A> and I was able to launch the application, however right now it asks me for other components that I do not see in the Fiori documentation and I do not know how to obtain them which are these (sap.ui.s2p.mm.lib.reuse.text and sap.ui.s2p.mm.lib.reuse.oci) could someone guide me on how to obtain them so I can download and map them correctly in my ui5.yaml so that the application works correctly?</P><P>I appreciate your support in advance</P>2024-08-27T09:54:58.510000+02:00https://community.sap.com/t5/technology-q-a/adaptation-project-replace-odata-in-bas/qaq-p/13808687Adaptation Project Replace Odata In BAS?2024-08-27T14:01:46.973000+02:00vcarmonahttps://community.sap.com/t5/user/viewprofilepage/user-id/882372<P>Hello <SPAN class="">Everyone</SPAN> </P><P>yesterday, we changed the odata with the option "Replace Odata" but when i change in the adaptation project.</P><P>the application continue look for the firts entity of the standard odata.</P><P>the app is F3302, The entity is <SPAN><SPAN class="">C_GRIRAccountReconciliation.</SPAN></SPAN></P><P>how must to do?</P><P>In the adaptation project there are two options, add or replace the odata, we chose the second option, however it seems that the main entity is always called or there is something missing in SAPUI5 Project.</P><P>thank you for your helping.</P>2024-08-27T14:01:46.973000+02:00https://community.sap.com/t5/technology-q-a/would-anyone-know-if-it-is-possible-to-set-a-recruit-date-previous-to-saved/qaq-p/13809085Would anyone know if it is possible to set a recruit date previous to saved recruit date2024-08-27T17:48:21.390000+02:00PC_IWAhttps://community.sap.com/t5/user/viewprofilepage/user-id/14602592024-08-27T17:48:21.390000+02:00https://community.sap.com/t5/technology-q-a/assistance-needed-connecting-cloud-postgresql-instance-with-capm/qaq-p/13809143Assistance Needed: Connecting cloud PostgreSQL Instance with CAPM Application2024-08-27T19:31:30.872000+02:00adarsh-kmrhttps://community.sap.com/t5/user/viewprofilepage/user-id/893604<P> </P><DIV><P><SPAN>Hi Experts,</SPAN></P><P><SPAN>We need some help and guidance as we are currently experiencing an issue connecting cloud PostgreSQL DB instance with our CAP application.</SPAN></P><P><STRONG><SPAN>Background: </SPAN></STRONG>We have successfully created a PostgreSQL instance through our CAPM application. During the deployment process, the instance was generated as expected. However, we are currently facing challenges in establishing a connection between this PostgreSQL instance and our CAPM application.</P><P><STRONG><SPAN>Current Issue: </SPAN></STRONG>Despite following the standard connection procedures, we are unable to connect to the PostgreSQL instance from the CAPM application. This is hindering our ability to utilize the database effectively within our application environment.</P><DIV><P><SPAN>To troubleshoot the issue, we have:</SPAN></P><P>1. Verified the PostgreSQL instance status to ensure it is running.</P><P><SPAN>2. Checked the connection parameters (hostname, port, database name, username, and password).</SPAN></P><DIV><DIV><P><SPAN>If you have any insights or suggestions on how to resolve this issue, we would greatly appreciate your assistance.</SPAN></P><DIV><P><SPAN>Thank you for your attention to this issue. We look forward to your guidance.</SPAN></P><DIV><P><SPAN>Best Regards,</SPAN></P><DIV><P><SPAN>Adarsh</SPAN></P></DIV></DIV></DIV></DIV></DIV></DIV></DIV>2024-08-27T19:31:30.872000+02:00https://community.sap.com/t5/technology-q-a/which-website-is-the-best-to-learn-a-sapui5-javascript-language/qaq-p/13809289Which website is the best to learn a SAPUI5 javascript language?2024-08-28T00:42:00.103000+02:00AJeBhttps://community.sap.com/t5/user/viewprofilepage/user-id/781848<P>Which website is the best to learn a detailed SAPUI5 javascript language?</P><P>I already check this <A href="https://sapui5.netweaver.ondemand.com/sdk/#/topic/851bde42e4e1410c96abbe402fa9128c" target="_blank" rel="nofollow noopener noreferrer">Step 1: Ready... - Documentation - Demo Kit - SAPUI5 SDK (ondemand.com)</A> but I can't find a detailed documentation of javascript for SAPUI5 it only gives me a sample. syntax and result</P><P>The documentation im looking for is a documentation like ABAP / Java where it explains the purpose of every keyword/syntax </P>2024-08-28T00:42:00.103000+02:00https://community.sap.com/t5/technology-q-a/how-to-set-overflow-settings-on-the-personalisation-settings-button-that/qaq-p/13809719How to set Overflow Settings on the personalisation settings button that smart table provides2024-08-28T10:51:07.307000+02:00Siddhesh2https://community.sap.com/t5/user/viewprofilepage/user-id/1558878<P>I have my smart table below with given custom buttons added -></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Siddhesh2_0-1724834851498.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/158800i020E7A170E5E49CD/image-size/medium?v=v2&px=400" role="button" title="Siddhesh2_0-1724834851498.png" alt="Siddhesh2_0-1724834851498.png" /></span></P><P><BR /><BR />However, when the midColumnPage is populated by clicking a row the settings button goes into overflow. I can control other custom controls' overflow behaviour but not the settings button that smarttable gives by default. I don't need the Settings button to go into overflow. </P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Siddhesh2_1-1724834947759.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/158802i4BF1D9AE4AD0DAFC/image-size/medium?v=v2&px=400" role="button" title="Siddhesh2_1-1724834947759.png" alt="Siddhesh2_1-1724834947759.png" /></span></P><P> </P><P><BR /><BR /></P>2024-08-28T10:51:07.307000+02:00https://community.sap.com/t5/technology-q-a/i-cannot-highlight-invoices-to-pay-in-billing-sap-for-me-this-has-always/qaq-p/13810408I cannot highlight invoices to pay in billing SAP for me. This has always worked. What changed?2024-08-28T22:05:31.331000+02:00joe_timminshttps://community.sap.com/t5/user/viewprofilepage/user-id/6774872024-08-28T22:05:31.331000+02:00https://community.sap.com/t5/technology-q-a/hide-ability-to-create-new-job-req-from-specific-template-but-not-from/qaq-p/13812441Hide Ability to Create New Job Req From Specific Template But Not From Position Org Chart2024-08-30T15:58:48.269000+02:00jlighter1https://community.sap.com/t5/user/viewprofilepage/user-id/1092717<P>We would like to be able to remove the ability for a group to be able to create a specific kind of Job Req Template (Job Requisition - Pos Mgmt) from the Recruiting Module. We don't want to inactivate the Template entirely because we want them to be creating these kinds of Reqs from the Position Org Chart, but to only be creating them from the Position Org Chart. Is this possible?</P>2024-08-30T15:58:48.269000+02:00https://community.sap.com/t5/technology-q-a/tree-table-not-getting-refreshed-from-javascript/qaq-p/13812540Tree Table not getting refreshed from Javascript2024-08-30T18:06:04.779000+02:00NooruBohrahttps://community.sap.com/t5/user/viewprofilepage/user-id/142295<P>Hi,</P><P>I have a Tree Table (sap.ui.table.TreeTable) where there's a column having Input field. Binding is correct and data is displayed perfectly. However, when I change a value in Input and then I have a button to refresh the data again.<BR />DefaultBindingMode is TwoWay.</P><pre class="lia-code-sample language-javascript"><code>var oTreeTable = this.byId("treeTable");
oTreeTable.getBinding("rows").refresh(true);</code></pre><P>For example if I changed a value from "1" to "2" and then I click refresh button then the above code will be executed and it should reset the changes which I made on screen. Which is the "2" should become "1". I'm not if this is correct approach. But the refresh is not happening. There's no error in console and the data is also fetched from backend but it is not updated in frontend.</P><P>Here's my app's screenshot, I have changed the second last row value from "1" to "2". Network logs are also attached </P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NooruBohra_0-1725033755086.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/160059i7525388AB55F7335/image-size/medium?v=v2&px=400" role="button" title="NooruBohra_0-1725033755086.png" alt="NooruBohra_0-1725033755086.png" /></span></P><P>Any help is appreciated.</P><P> </P>2024-08-30T18:06:04.779000+02:00