on 11-28-2018 6:06 AM
Hello,
this is the first time I'm creating a create application in Fiori.
I have to create a custom Internal order creation application in Fiori.
I have created a UI (IMG Attached) and I need to call in OData service on the press on the create button and on press the data and attachment needs to be sent to the backend SAP System where a FM will create the IO.
so my question was how do I write a create function for OData service in SAPUI5??
P.S I referred to this blog for reference before asking here : https://archive.sap.com/discussions/thread/3759870
Hi,
First of all, this is not an issue, is a requirement that you are asking the community to implement for you...
Anyway, I'll give some tips:
1- Create the method which capture the press event of "Create button"
2- Get the info list and their data (What the user wrote)
3- Since we can not imagine how the attachment view is, I would say just get the model data where is attached or refered the file
4- Call the odata service using the model (e.g. "this.mymodel.create({})" ) Here the documentation assuming you are using oData v2: oData v2 Create
5- Conceals better your requirements like "issues"
Kind regards,
Jorge
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks for responding. I know this is not an issue but I also didn't find any blog or answer or anything that solved this issue so I asked it here so after me if any other newbie faces the same obstacle that person will also have an answer to rely on.
thanks again for your help
regards
Siddharth
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.