on 10-19-2022 8:05 AM
Hello Experts,
I have an sapui5 application in launchpad where posting of data happens for days without refreshing the session or application. But the problem I am facing here is that even after setting the current date in the model every time the date is not refreshed, like it takes the date when first session login happens after that it continues to take the same date. But if I refresh the browser screen the model again takes the current date and same thing goes on if I do not refresh.
Can anyone please tell me how do I deal with this problem.
Below is the local model in model.js and setting of the date in controller.
localModel.setProperty("/processData/PostingDate", new Date());
localModel.setProperty("/processData/DocumentDate", new Date());
Header.PostingDate = localModel.getProperty("/processData/PostingDate");
Header.DocumentDate = localModel.getProperty("/processData/DocumentDate");
"processData": {
"Purchaseordernumber": null,
"Deliverynumber": null,
"PostingDate": null,
"DocumentDate": null,
"productionOrderNumber": null,
"processOrdernumber": null
},
have you tried: localModel.refresh() or localModel.updateBindings()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.