14
Views
2
Comments
Solved
For each need ajax refresh the list to find data?
Question

Hi! I Have this problem:

Im using "for each" to register a list of pizzas and its "quantity".

The record list of "for each" is a widget Table list...

The problem is, when i submit the action, the "for each" find an empty data (this data id from the aggregate), but find the "Attribute1" from the input... (First Image)

In the image, i put ajax refresh for the table, and the "for each" find the data.... but.... The quantity became null... (Second Image)

There is a way that dont need to use ajax refresh in a table, so the "for each" find the data?


Thanks!

NeedPizza.oml

Rank: #144
Solution


Hi,

you can try attached oml

hope this help u.



NeedPizza.oml

Ajax Refresh is only used to update your DOM with the new data. If you get incorrect values in your PizzaTable list then you you need to debug the creation of this list, thats where things are going wrong.

Also, put the Ajax Refresh at the end of the Action. It is used to update the DOM and will have no impact on any other action you perform in that same Action.

Greetings,

Vincent