Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

c15r error with checkbox

Hi,
I have a service that is mapped to a checkbox,
I followed the mapping docs from here
http://devcenter.appery.io/documentat...

Here is a screnshot of mapping

Image

this is the error, and the checkbox component disappears

Image

I also tried mapping $ to the grid.
I get only the first entry, but page mapping from lsv is gone

Image

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

c15r error with checkbox

Update

I took the checkbox out of the collapsible and grig and I get the desired result.
However I need the checkbox in the grid, somehow the grid seems to be the problem

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

c15r error with checkbox

Update
I have mapped $ to grid and checkbox, I get the result I need,

but it deletes the mapping from localstorageyou see in the screenshots
c15r error is gone but service takes along time to finnish

Image

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

c15r error with checkbox

Hi Michael,

It seems you put this check box inside some sort of container component. And try to iterate this container with other service datasource.

Unfortunatly - you can not do it.

Please check all your datasources on this page and remove all links to parent containers of this checkbox.

Regards.

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

c15r error with checkbox

Thanks Yurri,
I didnt know I could not do that,
so I put the checkbox in a panel which works fine and the correct collection is populated with no errors.

The problem im having is

on this screen there are 7 items from the a collection mapped to a 1 grid in the builder "chickenpizzagrid" and the contained components.

the chickenpizzagrid has an index of 0 to 6

1 of the components is a 6 button radiobutttonsgroup.with pizza sizes

when I click on a radiobutton in, for example "chickenpizzagrid_idx02". the text and value are saved in localstorage variables.

My question is
how can I set the property of this LSV to the component "orderlabel" idx 02
in chickenpizzagrid idx 02, "orderlabel" idx 02"

which is the same "chickenpizzagrid idx 02" as where the radiobutton was clicked.

I tried serveral options but the rsult is always returns the LSV to chickenpizzagrid idx 0, "orderlabel" idx 0

Dont know how to identify the chickenpizzagrid idx I need.

3 screenshots of setup in builder, the indexed grids in browser and collapsible opened in browser

Hope I explained correctly,
happy to show anything you need to see, just shout!

Best!
Michael

Image

Image

Image

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

c15r error with checkbox

Hi Michael,

For you case you can use following approach:

  1. Add to the radiobutton component JS event handler.

  2. Populate it with following JS code:

    pre

    //Current collapsibleset item.
    var currentCollapsible = jQuery(this).closest('[data-role="collapsible"]');

    //orderlabel in the current collapsible set item.
    var orderlabel = currentCollapsible.find('[name="orderlabel"]');

    //Get itext.
    var orderlabelText = orderlabel;text();

    //Using this text.
    console.log("orderlabelText = " + orderlabelText);

    /pre

    Regards.

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

c15r error with checkbox

Hi Yurii,
I tried tthe code but it didnt work for me.
I implemented it on "14 INCH STUFFED CRUST" radio button, but when clicked it shows error in console and does not select the rado button.
I tried different events but no luck, any ideas?

Here are some s/s of the implementation and the result.

Thanks alot!

Image

Image

Image

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

c15r error with checkbox

i doubt this issue is related - but - I'll just drop this in here - just in case. I was getting the c15r error last night. I determined that the change that made this happen in my UI - was when I left the designer - I left the one collapsible with some items in it - with the checkbox item - Collapsed - as 'unchecked' when I clicked save - and left the designer.

Simply checking collapsed button again, saving my project - and running the tester again - viola !!! my error went away. Screen shots attached: (again - likely not your issue - but perhaps worth a look)...

This was my designer state that 'caused' the error:

Image

This was the change I made to 'fix' my c15r Error (Simply clicking 'collapsed' on all my designer collapseables made my c15r error go away!):

Image

Return to “Issues”