Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2800

How to retrieve a value from a text field and pass into xsjs parameter?

$
0
0

Hello Team,

 

I have a text field taking user input. Now, this input is supposed to be passed to xsjs url.

I have tried something like below in view.js . But, its not hitting the service as their is no response while debugging

 

var name = new sap.ui.commons.TextField("TBName");

var name = sap.ui.getCore().byId("TBName");

  var val = name.getValue();

 

var url = window.location.origin + "/a_practice/services/getScreen.xsjs?cvName=" + val;

 

Is this correct ??

If not, how to retrieve a value from the text field and pass into xsjs as a parameter

 

Thanks,

Maneesha


Viewing all articles
Browse latest Browse all 2800

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>