Skip to main content
Nintex Community Menu Bar

SmartObject method reference in server event code

  • February 11, 2009
  • 5 replies
  • 30 views

Forum|alt.badge.img+1

The SmartObject method reference is a great way to access my data in my process events, but is it possible to access that data in the code behind of a server event?  If so, what is the syntax for accessing that data?

5 replies

Forum|alt.badge.img+11
  • February 11, 2009

Unfortunately, you cannot.  If you are using a SmartObject reference, there is no way to access it in a server code event.  The way it works when you drag a SmartObject reference onto a field in a wizard is it stores information in the wizard event configuration that is resolved at runtime using our resolver framework.   If you need to manipulate a field from a SmartObject reference you will probably need to use the SmartObject event wizard to load the requested values into data fields.  You can then access the data fields in a code event.


 


David


Forum|alt.badge.img+1
  • Author
  • February 12, 2009
Thank you, David.  This is what I suspected, and I had actually already used a SmartObject event in this activity in order to get the data to a place where I can access it within my server event.  I was just hoping I had missed something. :)

Forum|alt.badge.img
  • April 18, 2009

What happens in the case where multiple values are returned from the result of the SmartObject Event?  When I mapped the results to a data field, it appears to only capture the last value from the result set.  


I have a Smart Object that returns a series of values for the result. (ex. return CompanyId - 44, 23, 67, 12, 9, ....).  I would like to map the return value to a Process Data Field, in turn the process data field would contain a string of "44 23 67 12 9" with some kind of delimiter between the values. 


Is this possible?


Thank you 


 


 


 


Forum|alt.badge.img+2
  • November 10, 2010

Hi,


Were you able to find a solution for this? Even I need to do the same thing i.e the SmartObject returns multiple values and I want to map the result to data field.


Can  somebody please help me on this?


Regards,


Gaurav


Forum|alt.badge.img+4
  • Rookie
  • July 14, 2014

Is this still the case that SmartObject references are not accessible in server event code, and they must first be transferred to a data field?