Author Topic: Result ActionPin in Code Templates  (Read 3865 times)

Jeff Hegedus

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Result ActionPin in Code Templates
« on: December 12, 2015, 05:50:06 am »
The default code templates have the following in them (jus a snipit - not the whole template) for the "Action Create" template

Code: [Select]
$result =  %EASL_GET("Property", $GUID, "Pin", "Result")%
%if $result == ""%
/*Warning: $sActionName - Result Pin Not Found!*/
%endTemplate%

I have added a Create Object Action to the model and added an ActionPin named "Result".  When I generate the code, I get this warning generated, so it isn't finding my "Result" pin.  Has anyone used this?  Is the code wrong or is it looking for something other than an action pin?

Thanks in advance for any help.

Jeff Hegedus

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Result ActionPin in Code Templates
« Reply #1 on: December 15, 2015, 05:25:09 am »
I've figured out what the problem is through luck.  The line that uses the EASL_GET macro ("$result =  %EASL_GET("Property", $GUID, "Pin", "Result")%") actually gets the value from an action pin named "result" (note the lower case r) instead of "Result".  I'm not sure if this is consistent across all EASL_GET requests or if it is special for "result".