Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 80876

TemplateGrid Datasource executes twice

$
0
0

I'm new to Mendix, so I'm hoping this is a simple mistake on my part.

I have a page with a DataView. The Datasource type for the DataView is "Context". Within this DataView I have a Tab Container. One of the Tabs of the Tab Container has a Template Grid. The Datasource for the Template Grid is a microflow.

Using the "Edit" button for a Template Grid item opens an "Edit" page for the selected item. (So far so good, everything works as expected up to this point.)

On the Edit page, I have an Action Button with OnClick set to "close page".

Hitting this button results in the Datasource for the Template Grid being called twice. One of the calls has the DataView's Context object set and One of the calls has a Null value for the Context object.

The order of calls appears to be random; but the microflow is consistently executed twice. This behavior leads to the Template Grid showing incorrect result whenever the DataView's Context object has a value of Null.

Reviewing forum questions, I came across a similar issue posted 3 years ago without a posted answer. (So I'm hoping to have more luck with this post.)


Viewing all articles
Browse latest Browse all 80876

Trending Articles