Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

Maintain stateful Odata service

$
0
0

Hi All,

   

   I have developed a Sencha Extjs application in which i am using ODATA (from Tcode SEGW) to get the data from the backend  and in the GET_ENTITYSET of data provider class method i am initially getting data from dbtable into global variable (class attribute).
and now when i update the data from the front-end  and save it. the UPDATE_ENTITY method is called . and here i want to access the data stored in that global variable save in the  GET_ENTITYSET method ( instead of getting from the database again )

 

Here, the odata is stateless.How can i maintain its state to stateful.?

 

And here i provide a small piece of my code.

 

METHOD carrid_get_entityset.

   IF mt_test IS INITIAL.

       SELECT * FROM ztest2 INTO CORRESPONDING FIELDS OF TABLE mt_test.

   ENDIF.

ENDMETHOD.

 

METHOD carrid_update_entityset.

" Now i want to access  data in mt_test  here but it is initial.

ENDMETHOD.


Any help could be appreciated. Thanks in advance.

 

 

Regards,

Shiva


Viewing all articles
Browse latest Browse all 2823

Trending Articles



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