Page 1 of 1

What governs the order of event firing with complex mappings from datasources to both elements and local storage variabl

Posted: Sun May 04, 2014 1:28 am
by Al Hooton

I will add a screen shot of my mapping below. I am trying to understand what governs the order of element attributes being set, local storage variables being set and other events firing in complex datasource mapping situations. This might (as in my case) include array items in the Response, mapping multiple Response items to a single UI element attribute, and firing mapping javascript.

What controls the order of things in this kind of a case? How can I predict which mapping events will first first, second, etc.?


What governs the order of event firing with complex mappings from datasources to both elements and local storage variabl

Posted: Sun May 04, 2014 1:34 am
by Al Hooton

What governs the order of event firing with complex mappings from datasources to both elements and local storage variabl

Posted: Sun May 04, 2014 3:43 am
by Yurii Orishchuk

Hi Al.

Unfortunatly that's not specified at this time.

But if you want to know how it implemented currently i will answer you:

1 items inside iterating. In order which they was created.

2 whole array. (from $[] to iterable control).

See example(numbers is an order which is links has been created):

http://prntscr.com/3fzs4z/direct

Hope it helps.

Regards.


What governs the order of event firing with complex mappings from datasources to both elements and local storage variabl

Posted: Sun May 04, 2014 3:24 pm
by Al Hooton

Yurii, thank you very much for this. I see exactly what is happening now.

Unfortunately, I am concerned now. When you say it is not specified, that leads me to believe that it may likely change at some point and my app would break, either because it changes accidentally by your developers or it changes on purpose as part of actually specifying it.

So, it seems that even though I now know how it works, that I can't safely use that information.

Would you agree? Or, is there some way we can all know that this order of things is going to stay consistent for the long term even though it is not specified?

Thanks!


What governs the order of event firing with complex mappings from datasources to both elements and local storage variabl

Posted: Sun May 04, 2014 9:56 pm
by Yurii Orishchuk

Hi Al.

Please specify what specific problem you have..

I guess i can help you to implement logic you need without linking to the mapping order.

Please make screen shots and fill them with text details.

Thanks & regards.