Page 2 of 3

upgrading libraries from 1.2 to v 2.0 problems

Posted: Mon Jun 02, 2014 3:40 pm
by RobertJay

I agree with Michael. There's a growing need for a way to reduce the number of unproductive posts to and from support. Perhaps the simplest would be a strict requirement for the issue poster to provide specific details on his/her first post on previous steps taken and resources consulted. Support can then take it from there.


upgrading libraries from 1.2 to v 2.0 problems

Posted: Mon Jun 02, 2014 8:00 pm
by Michael4771079

Is there anybody out there?


upgrading libraries from 1.2 to v 2.0 problems

Posted: Mon Jun 02, 2014 11:34 pm
by Alena Prykhodko

Michael, this will take some time. We'll let you know result.


upgrading libraries from 1.2 to v 2.0 problems

Posted: Tue Jun 03, 2014 5:57 am
by Evgene Karachevtsev

Hello Michael,

Every page that causes an error has slider component and run JavaScript action on "load" event with code like this:

Tiggzi("saucetoggle1").empty().append("ChilliGarlic").flipswitch('refresh');
Tiggzi("saucetoggle1").parent().find(".ui-slider-label-a").text("Garlic");
Tiggzi("saucetoggle1").parent().find(".ui-slider-label-b").text("Chilli");

Delete or disable all invocation of code like above and you'll eliminate errors in the console. What result are you going to achieve with this code?


upgrading libraries from 1.2 to v 2.0 problems

Posted: Tue Jun 03, 2014 9:37 am
by Michael4771079

Hi Evgene,
this code lets user choose between 2 options , and the code below saves the detail in localstorage array

code$grid = $(this).closest("[name=chickenpizzamobilegrid]");
save({'Kebab':$grid.find("[name=chickenpizza_item_label]").text(),
'Served_With':$grid.find("[name=thin_deeptoggle]").val(),
'Sauce':$grid.find("[name=saucetoggle]").val(),
//'Pricelabel':$grid.find("[name=pricelabel]").text(),
'Price':$grid.find("[name=chickenpizzaPricelabel]").text()},
"kebabArray");/code


upgrading libraries from 1.2 to v 2.0 problems

Posted: Tue Jun 03, 2014 10:27 am
by Evgene Karachevtsev

Michael,

You can set "On Label Text" and "Off Label Text" for toggle component with UI builder: http://devcenter.appery.io/documentat...


upgrading libraries from 1.2 to v 2.0 problems

Posted: Tue Jun 03, 2014 10:44 am
by Michael4771079

Ok Evgege,
are u saying that my saving code above will sill work if I remove the toggle js?


upgrading libraries from 1.2 to v 2.0 problems

Posted: Tue Jun 03, 2014 1:11 pm
by Evgene Karachevtsev

Michael,

I've just recommended disable code that appends labels to the toggle components. You should do it in the UI builder. Disable all invocation of this code and you'll eliminate errors in the console.


upgrading libraries from 1.2 to v 2.0 problems

Posted: Tue Jun 03, 2014 1:32 pm
by Michael4771079

OK Evgene
I have disabled 2 toggles code on kebab page, now I have new error, it looks like the order js is causing this

$grid = $(this).closest("[name=chickenpizzamobilegrid]");
save({'Kebab':$grid.find("[name=chickenpizza_item_label]").text(),
'Served_With':$grid.find("[name=thin_deeptoggle]").val(),
'Sauce':$grid.find("[name=saucetoggle]").val(),
//'Pricelabel':$grid.find("[name=pricelabel]").text(),
'Price':$grid.find("[name=chickenpizzaPricelabel]").text()},
"kebabArray");

Image


upgrading libraries from 1.2 to v 2.0 problems

Posted: Tue Jun 03, 2014 2:52 pm
by Kateryna Grynko

Hi Michael,

Sorry. This is a bug. You can't map collection to a Grid with Toggle component inside. You should use libraries version 1.2.