cancel
Showing results for 
Search instead for 
Did you mean: 

Agentry WM: Setting a flag during login

Former Member
0 Kudos

Hello,

I am trying to track a navigation event to ensure it is enabled once during a session.  Added a boolean property to main obj and set it true on login. Reset to false on the navigation, so it can be referenced in the enable rule to disable further navigation.

This approach works , but on logout and subsequent login, the flag does not set back to true.

Any suggestions?

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Hello Bill,

I implemented as advised. It doesnt work on ATE. Only on remove data ,the flag is setting back to true.

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

The ATE is based on the WPF client and based on my testing it wasn't working as expected on that client so I am not surprised it doesn't work in the ATE as well.  What devices are you targeting?

--Bill

0 Kudos

Ok, I will test it on android device.

0 Kudos

Bill,

Before I can test that, I have another issue. The navigation that I am trying to disable is followed by the WO list screen. A navigation step is defined for the list screen, and the transactions involving the vehicle are placed in a subaction. Both the subaction and navigation are inside their parent action as its steps. Subaction is defined to execute when the VehicleIsSelected flag is set to true. But this is not running even when the rule is returning true. On false, only the navigation should happen, while the subaction should fail. I swapped the order of the two steps, yet it didnt work.

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

This is a different issue and you should post is as a new discussion.

--Bill

0 Kudos

I have resolved it.

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

Have you tried setting a Successful Login Action that always sets the property to true on login?

--Bill

0 Kudos

No, I added boolean property as in attached screenshot

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

I would try using the Successful Login Action to always set it true or false depending on your requirement.

--Bill

0 Kudos

Could you elaborate how I can use this action?

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos
  1. Create a transaction on your main object with the ZVehicleIsSelected property
  2. Create a new action to call this transaction (transaction step/apply)
  3. On the Module Definition | Successful Login Action - assign your new action

When you login to the client this action should be run to force the property to true.  You will of course need to test this to verify the property is being set as expected.

--Bill

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

For fun I tested this on WPF, iOS and Android.  It works as expected on iOS and Android.  The action fires on WPF but does not correctly set the value to True.  It would appear to be a bug and if you are using that platform you should open a ticket with support for it.

--Bill