hi Team,
I am having issues with SAP UI5 application as under:
1)in the Service file, I would like to call CALCULATION view but when I call the .XSODATA service file using the call as SERVICE, I was not getting proper results so I used the following:
"_SYS_BIC"."PKG_TEST/CV_TEST" as "customer_det" keys generate local "ID" ;
instead of:
"PKG_TEST::CV_TEST" as "cusotmer_det" keys generate local "ID" aggregates always;
is it fine to use it like that or can we use the 2nd way to use in the SAP UI5 application.. is we need to use 2nd method, how can we get the values into the Layout?
2)the URL for the Service is as under:
the requirement is that, an external system sends the Customer_id=1, then corresponding CIty value of that customer, there fore the above URL has been built and the above URL is giving the details of the CUSTOMER_ID and CITY for the Customer....
in view of SAP UI5, the following code was written:
var url = "http://xx.xxx.xxx.xx:8000/PKG_TEST/xsproject1/customer_det.xsodata/customer_det?$format=json&$select=CUSTOMER_ID,CITY";
var oModel = new sap.ui.model.odata.ODataModel(url, false);
var oControl;
this.oSHTable = new sap.ui.table.Table("soTable",{ visibleRowCount: 10, });
this.oSHTable.setTitle("CUSTOMER <-> DETAILS");
//Table Column Definitions
oControl = new sap.ui.commons.TextView().bindProperty("text","CITY");
this.oSHTable.addColumn(new sap.ui.table.Column({label:new sap.ui.commons.Label({text: "CITY"}), template: oControl}));
this.oSHTable.setModel(oModel);
this.oSHTable.bindRows({ path: "/cusotmer_det" });
oLayout.createRow(this.oSHTable);
return oLayout;
but I was not getting the values in the Browser, how to get the values fetched from Calculation view onto the Browser?
3)suppose if I make any changes in the layout(of JS View) eg., if I add an UI element, I am not getting this UI element onto the Output of Layout.
even if I delete the SAP UI 5 project, make changes and again create UI application and Integrate that into XS project also, I am not getting the results/changes back into the Layout... what is the procedure by which the changes are reflected?
thanks for your answers in advance.
Regards,
Vishnu