Skip to main content
Nintex Community Menu Bar

How to reference multiple smart objects in a k2 designer workflows.

  • Feb 25, 2016 1:51 PM UTC
  • 5 replies
  • 279 views
  • Translate All

Forum|alt.badge.img+1

I have a create button which makes a smart object for a list and then another for an item. when i get to the point in the work flow that the manager opens their task i want both smartobjects to load. at this point i can only get one or the other to load. I am knew to k2 in general and any help would be appreciated.  the image below is my form so i basically want both views smartobjects to load once the manager opens his review task.

12090i299CCA0E6A47B922.png

5 replies

Forum|alt.badge.img+7
  • Feb 25, 2016 6:06 PM UTC

@Jordan96, 


 


When you say "...at this point i can only get one or the other to load." I am assuming that the form is initializing. 


1) Add a "State" the the form rules that occurs only when the form is opened in the workflow step manager task. 


2) Edit the "When form initializes" rule.


3) add additional smartobject calls inside that rule


 


Thanks and regards, 


Chad

Translate

Forum|alt.badge.img+1
  • Author
  • Feb 26, 2016 12:17 PM UTC

I tried putting the 2 rules in when the admin state initialises.

It seems to be using the item reference for the smart object and it only lets me drag in one. Which is why Can only load one smartobject.

I tried using no Item reference but that then loaded none of them.   

Translate

Forum|alt.badge.img+1
  • Author
  • Feb 29, 2016 10:14 AM UTC

To add more detail I guess what I am looking for is how load a smartobjects into the manager state without the use of item references as that seems to be the only way I can load them.

Translate

  • Rookie
  • May 25, 2017 3:09 PM UTC

Jordan96, did you ever find an answer to this?

Translate

Forum|alt.badge.img+18
  • May 30, 2017 8:25 PM UTC

This may be possible by calling the SmartObject directly from the Form State Rules, using either the applicable actions:


 


- Execute a View method


- Execute a SmartObject 


 


However the context of this call will need to be considered.  


 


Usually if using the item reference, it will return the associating item/SmartObject data that the workflow is running with.  If these SmartObjects are executed are from the Form State Rules instead, you will likely need to pass in some sort of ID so that the corresponding data can be loaded.  Perhaps usage of Form Parameter and transferring this between the Form State and workflow will likely be needed.

Translate