Aurigma Forums
»
Customer's Canvas
»
Discussions – Customer's Canvas
»
Clicking “Load my info” in EDIT mode loading old cached data.
Rank: Newbie
Groups: Member
Joined: 1/15/2016(UTC) Posts: 5
|
Hi Team,
I took the create page of cover designer. On page load, data is taken from database and assigned to projectdetail variable. (refer code below) When I click “load my info” button, the data from projectdetail variable is assigned to the text layers. I changed the values and clicked save which saves the new values in database. Now I took the saved file and loaded to canvas
loadProduct(“<GUID of saved file (state)>”);
The state file is loaded with correct data. But if I click the load my info button again, I am getting the previous cached values.
//on page load the following executes.
var projectDetail; getProjectDetails(); //get user info from database.
configuration = { widgets: { FinishButton: { mode: "Disabled" } }, canvas: { color: "white" }, userInfo: { "Front Cover Title": projectDetail.Title, "Front Cover Subtitle": projectDetail.SubTitle, "Spine Pen Name": projectDetail.PenName, "Spine Title": projectDetail.Title, "Front Cover Pen Name": projectDetail.PenName, "About the Book": projectDetail.AboutTheBook, "About the Author": projectDetail.AboutTheAuthor } };
One solution I tried
After the following line this._onChangeContentButtonClickDelegate = this._onChangeContentButtonClick.bind(this); if (product != null) {
Modify to this.setProduct(product,app.configuration.userInfo); Modify to ProductHandler.prototype.setProduct = function (product, userInfo) {
After the following line this._product = this._originalProduct.clone(); this._useRestoredProduct = false;
Add this._product.userInfo = userInfo;
That means app.configuration.userInfo is gibving the correct values.
Any help is much appreciated.
Thanks Rohith
|
|
|
|
Rank: Advanced Member
Groups: Administration
Joined: 10/20/2015(UTC) Posts: 52
Was thanked: 14 time(s) in 13 post(s)
|
Hi Rohith,
I'm sorry for the delay!
It's a bug. I have reported it in our bug tracking system.
We will fix it in the new version. Thank you!
Best regards, Kate
|
|
|
|
Rank: Advanced Member
Groups: Administration
Joined: 10/20/2015(UTC) Posts: 52
Was thanked: 14 time(s) in 13 post(s)
|
|
|
|
|
Aurigma Forums
»
Customer's Canvas
»
Discussions – Customer's Canvas
»
Clicking “Load my info” in EDIT mode loading old cached data.
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.