Cat
Posts: 0
Joined: Wed Sep 25, 2013 11:01 am

recursive list problem

Hello,

I am trying to map all the results of a get query to a mobilelistitem. Usually this works fine, but in this one instant only the last result is showing instead of all possibles.

I checked over it many times now and can't seem to find the problem (I will feel like such a dumbo if I made a silly mistake somewhere).

The code and mapping:

clicking on the "x" button runs this JS:
var cuidt = jQuery(this).text();

localStorage.setItem('cuid', cuidt);

pglistSER.execute ({});

(cuid was mapped to it on page load - it seems to work as the correct result is returned albeit only one of it)

Image

JS before:

return '{"cuid":"'+value+'"}';

Image

Image

Image

Any ideas about this problem?

If you want to have a look:

(**Can I provide the public link and password etc in a personal message?)

login with:
usrnme: **
pswrd: **

Then to get to the offending page is a bit of a process:

Image

Scroll down and click on the (i)nformation button next to "test".
Click on any of the "correct" marks in popup, taking you to a new page.

Image

Click on the edit button top left, taking you to the edit page.

Image

Click the "x" next to "delete a page" of the first item. A popup will come up which is supposed to return the list of pages. I mapped it to a list at the bottom of the page as well as a test to check if the grids or popup caused any problems, but the result is the same.

Image

Cat
Posts: 0
Joined: Wed Sep 25, 2013 11:01 am

recursive list problem

I missed one of the images:

Image

"clicking on the 'x' next to 'delete a page' "

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

recursive list problem

Hello Cat,

Sorry for the radio silence here, we are working on your issue and will get back to you with the update.

Cat
Posts: 0
Joined: Wed Sep 25, 2013 11:01 am

recursive list problem

Hello,

Any news on this? I thought I would wait until after the scheduled update today, but it is still not working.

Any ideas?

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

recursive list problem

Hi Cat,

It seems you have incorrect code:

pre

var cuidt = jQuery(this).text();

localStorage.setItem('cuid', cuidt);

pglistSER.execute ({});

/pre

Please use this code with "console.log" this value.

pre

var cuidt = jQuery(this).text();

console.log("cuidt = " + cuidt);

localStorage.setItem('cuid', cuidt);

pglistSER.execute ({});

/pre

Then check please console on this value.

Regards.

Cat
Posts: 0
Joined: Wed Sep 25, 2013 11:01 am

recursive list problem

Hello,

Thank you for the reply. I put in the code you suggested and it still seems to me that the correct id is passed. As you can see it matches three entries in the database.

( I've tried to do it all over again from scratch and still get the same result. It really is puzzling :)

Image

Image

Cat
Posts: 0
Joined: Wed Sep 25, 2013 11:01 am

recursive list problem

Hello,

I found a "work-around/solution"! I didn't realise the "limit" needed to have a "0" (I'm sure previously I left it open and it worked, but it is working now if I have it specified "0" instead of left blank)

Image

Thank you!

so simple, but fresh eyes help...:D

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

recursive list problem

Hello Cat,

Thank you for the update, glad it works!

Return to “Issues”