How to replace ajax call with ODataModel?
Hi,
I am new to SAP UI5. I went through the ODataModel api. All I found is, if we want to make use of the ODataModel, we are supposed to bind the model to some control. But what about the cases where we don't want to bind the results we get from the request to server to any of the controls?
Is there any way/method present which would help us to retrieve the data without binding the model to any of the controls?
Any help would be appreciated.
Thanks,
Supriya Kale
Hi there,
I don't really understand your problem...
What do you mean with "repalce ajax call"? If you want to retrieve data form an ODATA Service, there has to be an request to get the data.
Other question:
If you don't intend to bind the data from the ODATA Service to any controls - why do you want to use an ODATAModel at all?
You can simply get the data from the ODATA Service as JSON, and then work with this JSON object:
var url = "https://s3hanaxs.hanatrial.ondemand.com/p1787990323trial/myhanaxs/hello/services/service.xsodata/tbl_user/?$format=json"
$.getJSON( url, function(data) {
// Loop over json object..
jQuery.each(data.d.results, function(i, val) {
console.log(i,val);
Greets,
ben
Similar Messages
-
How to replace a movieclip with another movieclip
How to replace a movieclip with another movieclip
Hi,
I am having a swf called tchild.swf... in this i got a
movclip 'child1'. i am loading this tchild.swf into another swf
tparent.swf within 'mcloader' movie clip.. i got another movclip
called 'picture1'
i am loading tchild.swf into mcloader movclip.. and i want to
load 'child1' moviclip into picture1..
how to replace a picture1 movieclip with child1 mc..
PS: i dont want to load picture1 from library.. its on the
stage.AWT or Swing?
-
How can I video call with some one who doesnt have an iPhone?? I have the new iPhone 4s
How can I video call with someone who doesnt have and iPhone???? I have the new iPhone 4s
Hi get the app called Fring which allows you to do it as long as they have fring too
-
How to replace key value with character
Hi Experts
Can any one tell me, how to replace key value with character, whether it is possible are not. My present report is displaying below format.
country--city-area-flatnocountry--City-Flatno
Customer--USACOst1111---UK--HD20--
C100--11---11--
C200--11---1--
For the above example format i am able to display. But now i want to replace 1 with character value for example. For C100
country is USA at presnt 1 but it should replace with USA.
You find required format below.
country--city-area-flatnocountry--City-Flatno
Customer--USACOst1111---UK--HD20--
C100--USACOst1111--
C200--UK--HD20--
thanks .
Regards,
Vishal.Hi Markus,
Thanks for reply,
Actually i dont have attribute for the customer, the data is maintained in ods, in the form, customer name one info-object and customer value one more info-object this value got text. This value stored in the ods as below
costomer number customer value
C100--USA
-C100CO
C100--11-
C200----
UK
C200----
20
Please let me know any clarification you need.
Thanks and Regards,
Vishal. -
How to disable reject call with a message? please help
Xperia Z(c6603) KK4.4.2 (.230)I selectd this device because i was counting on the brands traditional stiriving forcsup. Quality.This was a mistake.About 1000 euros for a device that looses quality with every update and consumes my time with frustrating experiences all along.Very poor development i must say.
-
How do I answer calls with the KITKAT update? I hit the flashing button but it's still ringing? Where are the Answer settings?
Aha! Thank you!!! That was not obvious. Sometimes I don't get the green and red icons. So it's slide it to the right for answering and slide to the left for voice mail.
-
How to replace an MDB with a servlet
I got a situation to replace an MDB with a servlet,How can I do that,more appreciated if u send me some sample code.
Hi,
An MDB can be replaced by a normal java class by doing the following.
Make a jndi lookup for the queue/topic connection factory and then create a javax.jms.QueueConnection. Then create a javax.jms.QueueSession using this connection. Make a JNDI look up for the Queue. Create a javax.jms.QueueReceiver using the created QueueSession. Call start on the QueueConnection and receive a message by calling the receive method on QueueReceiver.
Thanks,
marvlex -
How to replace double quotes with a single quote in a string ?
Hi All:
Can some one tell me how to replace double Quote (") in a string with a single quote (') ? I tried to use REPLACE function, but I couldn;t get it worked.
My example is SELECT REPLACE('STN. "A"', '"', ''') FROM Dual --This one throws an error
Thanks,
Dima.Whether it is maybe not the more comfortable way, I like the quoting capabitlity from 10g :
SQL> SELECT REPLACE('STN. "A"', '"', q'(')') FROM Dual;
REPLACE(
STN. 'A'{code}
Nicoals. -
How to replace the '&' character with '&' in xi
Hi,
i need to replace the '&' character with ' &'.but i f i am converting it is displaying as '&' because internally '&' = '&'.
beacuse of this it is not converting.
is there any possiblity to change the standard conversion in xi.Graphical mapping does not support special character like & , <,> to be mapped.
You can encode & as and in UTF-8 only.
if you want the special character to be used, Opt XSLT mapping with ISO-8859-1 encoding
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="ISO-8859-1"/>
<xsl:template match="/">
<xsl:copy-of select="*" />
</xsl:template>
</xsl:stylesheet>
How to Work with Character Encodings in Process Integration (NW7.0)
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79fb42 -
How to replace westell 6100 with westell 327w?
Hi all,
I am currently using a Westell 6100 and I just inherited a Westell 327W from my brother who switched over to FIOS.
Can I replace the 6100 with the 327W? And how do I go about doing that?
Any suggestions or recommendations would be greatly appreciated.
Cheers!If the 327w has newer firmware on it, you can just factory reset it and then connect it up. Once it is online, visit http://192.168.1.1/ and use admin/password respectively as the login information. Then, set a new password for the gateway.
Once done, visit http://192.168.1.1/verizon/redirect.htm and choose the disable button. Assuming the modem has been able to get a connection at this time, you should be online.
========
The first to bring me 1Gbps Fiber for $30/m wins! -
How make a normal call with ipad mini
i want to call and send text message by normal way, do you know how can i do? or wich app i need to download??
There are texting apps that can be downloaded for texting to non iOS devices. I have no idea how well they work. I have never used one.
https://itunes.apple.com/us/app/text-me!-free-texting-sms/id338088432?mt=8
The closest that you can come to making a call with an iPad would be to use an app like Skype. You can't make a "normal" call on the iPad since it is not a phone. -
How to replace one char with two chars in email address policy?
I very much like to replace the 'ß' char in the surname with 'sz'. However, applying filter '%rßsz%[email protected]' on 'Preußig' leaves me with '[email protected]'.
So, how do I replace one char with two chars in email address policy?As far as I know, your only solution is to manually create such addresses instead of using e-mail address policy.
Ed Crowley MVP "There are seldom good technological solutions to behavioral problems." -
How to replace the arrow with a custom graphic on a TitledPane?
The TitledPane has an arrow that changes state (rotates) to show whether the pane is collapsed or expanded. Is there a way to replace this arrow with a custom graphic for each state?
Most definitely. Everything in the controls is style-able from CSS. The region you are attempting to style can be addressed via:
.titled-pane > .title > .arrow-buttonSo you could specify images here for example, or you can just change the arrow path by adding another > .arrow on the end. Below I've posted the entire CSS style that is built in for TitledPane so you can see how the whole thing is styled. You can create your own stylesheet, copy/paste this in there, and then start tweaking things and see how it affects the look of the TitledPane.
Cheers
Richard
* TitledPane *
.titled-pane {
-fx-skin: "com.sun.javafx.scene.control.skin.TitledPaneSkin";
.titled-pane > .title {
-fx-background-color: -fx-box-border, -fx-inner-border, -fx-body-color;
-fx-background-insets: 0, 1, 2;
-fx-background-radius: 5 5 0 0, 4 4 0 0, 3 3 0 0;
-fx-padding: 0.166667em 0.833333em 0.25em 0.833333em; /* 2 10 3 10 */
.titled-pane > .title > .arrow-button {
-fx-background-color: null;
-fx-background-insets: 0;
-fx-background-radius: 0;
-fx-padding: 0.0em 0.25em 0.0em 0.0em; /* 0 3 0 0 */
.titled-pane > .title > .arrow-button .arrow {
-fx-background-color: -fx-mark-highlight-color, -fx-mark-color;
-fx-background-insets: 1 0 -1 0, 0;
-fx-padding: 0.25em 0.3125em 0.25em 0.3125em; /* 3 3.75 3 3.75 */
-fx-shape: "M 0 0 h 7 l -3.5 4 z";
.titled-pane:collapsed > .title > .arrow-button .arrow {
-fx-rotate: -90;
.titled-pane > *.content {
-fx-background-color:
-fx-box-border,
linear-gradient(to bottom, derive(-fx-color,-02%), derive(-fx-color,65%) 12%, derive(-fx-color,23%) 88%, derive(-fx-color,50%) 99%, -fx-box-border);
-fx-background-insets: 0, 0 1 1 1;
-fx-padding: 0.167em;
.titled-pane:focused > .title {
-fx-color: -fx-focus-color;
.titled-pane:focused > .title > .text {
-fx-text-fill: white;
.titled-pane:focused > .title > .arrow-button .arrow {
-fx-background-color: white;
} -
How to Use Ajax Framework with Netbean6.0
Hello Friends....
I am using netbeans IDE to develop Java enabled web application
now i want to use ajax technology in my webapp.
So how can i use ajax with netbeans.
I add Jmaki plugins in netbeans and i got various jmaki component but i dont know how to use them.....!
Please somebody help me.........vasim_saiyad2000 wrote:
Yes My Friend in the past i made a web application and all html, jsp and java code was written in notepad.
I want that how to use ajax with java. IDE does not matter i wrote about netbeans because now i am very good aware of netbeans and i am using netbeans ide to develop my app.
You just tell me how to use ajax with java like .net has some ajax toolkit in its palette..
How can we use same thing in java /netbeans.Uh, look for a plugin which does that? Or, better, just write code yourself inside Netbeans.
Can u tell one most import thing .......Suppose when user log in i have created session.
Suppose user does not logout manually by clicking LOGOUT link its close directly browser so can be I sure that session may have been expired......!
Please solve my this doubt.....!Implement HttpSessionListener and do the desired task in sessionDestroyed() method. -
How to replace missing fonts with a specific font (and not a suggested font)
Hello all!
Looking to replace missing fonts within my document - but the drop-down selection only gives a couple of suggestions, none of which are the font I want to use.
How can I replace the fonts with a font of my choosing?
I've attached an image to give more clarity - notice how the drop-down only gives the option to select between 3 fonts without an option to select your own font - many thanks!Same problem! The only solution I found is to prepare a textbox in a new file with all the font you need. Copy and past in the file you need to change font. Go to type/risolve missing font. Will open the same window in the pic you pasted. Then you find the font in the dropdown menu. I have to change all the Helvetica family ...it's a long go. If some one could save me. Hope to be usefull to your problem.
Maybe you are looking for
-
Error while using Ota_Event_Api.Create_class
the table testingtab has below columns EVENT_TITLE , COURSE_NAME , EVENT_STATUS , USER_STATUS , EVENT_DATE , LEARNER_STAFFNR , LEARNER_NAME , ENROLLMENT_STATUS , UPLOAD_STATUS , ERROR_MESSAGE declare cursor dataload is select * from testingtab t wher
-
How to open an existing XML for update.
Hi, I have created an ADF Form, which is made of ADF panels which allow the user to run a few simple queries against an Oracle database done using ADF view links and ADF application module. I would like to add another panel to this main form which wo
-
Interval dates in Table V_T706B2
Hello, During customizing of messages types (warning or error) when exepenses exceed limit, i wants to know how the fields "Start date" and "End date" works. Those date range can take into account a different limit expenses from one period to another
-
hello I have install photoshop CS4 ( 11) but when I try to install last updates it show me am message ( Adobe Photoshop CS4 not installed ) ?! but its installed and I use it >< see Attachment
-
Missing catalog: help me recover Organizer albums/content
When a drive was replaced April 2014 on a Win7 computer, the old Adobe Elements Organizer 12.0.0.0 catalog went missing. The default new one has been in use since for new projects. It has been Optimized and Repaired, no change. I'm trying to find the