Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
rohithpm  
#1 Posted : Friday, February 5, 2016 2:43:05 AM(UTC)
rohithpm

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
Kate D.  
#2 Posted : Thursday, February 11, 2016 9:37:10 PM(UTC)
Kate D.

Rank: Advanced Member

Groups:
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
Kate D.  
#3 Posted : Tuesday, May 10, 2016 3:48:28 AM(UTC)
Kate D.

Rank: Advanced Member

Groups:
Joined: 10/20/2015(UTC)
Posts: 52

Was thanked: 14 time(s) in 13 post(s)
Hi Rohith,

We have released the new version of Customer's Canvas. Your problem was fixed.

You can get the new version in the My Licenses & Download section:
http://customerscanvas.com/account/licenses#files

The list of new features you can see here:
http://customerscanvas.com/docs/cc/whats-new.htm

Feel free to send me your feedback or questions.

Best regards,
Kate
Users browsing this topic
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.