"Bound to" mapping for SmartObject method's return property disappears

  • 16 February 2021
  • 0 replies
  • 5 views

Userlevel 5
Badge +20
 

"Bound to" mapping for SmartObject method's return property disappears

kbt147005

PRODUCT
K2 Five 5.0 to 5.1
K2 blackpearl 4.7
BASED ON
K2 Five 5.0
This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.

Issue

On Designer, when editing a SmartObject method, the return property's "bound to" mapping will disappear. No matter how many times you configure it, the next time you edit the SmartObject method again, it will disappear.

 

Image

 

If you saved your SmartObject after that, you will notice that the method no longer returns that property when you attempt to execute it.

Symptoms

  • This seems to affect the method that is referenced from the stored procedure.
  • The stored procedure uses parameters with the same name as one of its return properties. For example, your stored procedure returns a property called ID, and you have a parameter named @id.

Resolution

To resolve this, you have to avoid using the same name for property and parameter in the stored procedure. Update your stored procedure with a different parameter name, refresh your SQL service instance, delete, then recreate the method in your SmartObject.

0 replies

Be the first to reply!

Reply