Skip to Content

SAPUI5 Help to Understand Standard Code.

Nov 08, 2017 at 12:54 PM


avatar image

Hi experts.

I'n new in sapui5.

I have been studying by documentation: in this documentation i'm now doing the Walkthrough step 7.

My problem is :

I need to add a field in old standard UI5 APP , this APP does not work with WEB-IDE because it does not have XML views ,it only has JS views.

I create a text field in this code and i need to pass it to sap by odata (segw) but i did not undestanding somethings in code and i want to know if you can show me a way to do it in this code .Please see my code below .I did not undestand how to pass my created textfield

"tfPlacaVeiculo" to a odata that i will create in sap .

this code is running inside a dialog and is accessed when the user click in a button to send data to sap .

OBS we are changing this standard directly because is our test environment.

Can you help me?


font-family: "Courier New";
font-size: 10pt;
color: #000000;
background: #FFFFFF;
.L1S33 {
color: #009300;
.L1S50 {
color: #00008B;
.L1S51 {
color: #8B0000;
.L1S52 {
font-weight: bold;

// Placa do veiculo

 var oLblPlaca = new sap.ui.commons.Label({

   text : 'Placa veículo',

   textAlign : sap.ui.core.TextAlign.Start,

   tooltip : oBundle.getText('Placa do Veículo'),

   width : "120px"



 var oRfqPlacaVeiculo = new sap.ui.commons.TextField({

   id : "tfPlacaVeiculo",

   textAlign : sap.ui.core.TextAlign.Start,

   editable : true,

   // width : '99%',

   width : "120px",

   tooltip : oBundle.getText('Placa do Veículo')



10 |10000 characters needed characters left characters exceeded

Hi Ronaldo,

Will this be sent with the other data or is it a separate request? Either way we would need to see the code that will be submitting the data.



* Please Login or Register to Answer, Follow or Comment.

0 Answers