Skip to main content
Nintex Community Menu Bar

Variable type from within custom event template

  • April 29, 2006
  • 1 reply
  • 2 views

Forum|alt.badge.img+4
The next brain teaser :?

I have a custom event template that allows a boolean value to be assigned to a process or activity data variable. What I need to make sure is that this variable is actually of boolean type. Forget the XML structure for the moment as that will be the next brain teaser :wink:

I am looking at the IsValid method of the PropertyPage in the SDK to do the validation at this point. However, the only K2 reference I have is the DataViewButton.

Any suggestions, anyone?

Regards
Graham

1 reply

Forum|alt.badge.img+11
  • Nintex Employee
  • May 2, 2006
You and your brain teasers... 8)

Can't you just do your casting within a Try... Catch... block and pick up the validity from there?

Also, have a look at the code behind a Line rule where you compare a process level datafield to some arbitrary value. Depending on the type of the process level datafield, different castings are done in the code. Maybe this can help you.

Regards,
Ockert