Automatic change boolean value.

0
Hi ,        I have a requirement in my current project that after setting an boolean value to true after 5 second or so it should automatically change the value to false .
asked
4 answers
0

It should be possible with a combination of Delay java action and Task queue (or any other module capable of processing in background). Also, the solution would depend on your exact requirement.

answered
0

Hi Rajashekar,

I’d suggest that when you create a message and save it, add 5 seconds (or the duration you want it to display)

addSeconds(currentDateTime, 5) and set this value in something called expired after.

Show the message only if the ExpiredAfter > CurrentDateTime.

Hope this helps!

answered
0

Rajasekhar,

 

I don’t understand your case exactly, but maybe the microflowtimer widget can help you out here.

answered
0

One approach could be to use a Microflow Timer.

Put it in a container with visibility based on the boolean value, and add a microflow or nanoflow that will change the boolean value and handle any related logic.

https://marketplace.mendix.com/link/component/27

 

answered