Code Fix: View control properties are marked with the dependency icon (badged) in the SmartForms Rule Designer

  • 16 February 2021
  • 0 replies
  • 5 views

Badge +6
 

Code Fix: View control properties are marked with the dependency icon (badged) in the SmartForms Rule Designer

KB001836

PRODUCT
K2 smartforms 4.7
BASED ON
K2 smartforms 4.7
LEGACY/ARCHIVED CONTENT
This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.

Issue Description
Navigating from one Form to another, while calling the View Load method, and setting another View's control properties, causes the View control properties being set to be incorrectly marked with the dependency icon (badged) in the SmartForms Rule Designer.

Repro Steps
Scenario 1

  1. Open K2 Designer.
  2. Create a SmartObject and generate an Item View, List View, and a Form.
  3. Create another Form, on the initialize rule navigate to the generated Form. Execute the Item View load command, and set the other View’s Control value.
  4. Save the changes in the Rule Designer.
  5. Click OK.
  6. Notice the icon of the rule and in the Output mappings screen.

 

Scenario 2

  1. Create an unbound View with a data label and button.
  2. Add an expression to the data label.
  3. Add a rule, when the button is clicked set the data label properties and map a value.
  4. Finish the rule and the View.
  5. Design a Form using the above View.
  6. Edit the inherited View rule and add a set control properties action.
  7. Select the data label control and configure.
  8. In the target mappings, click the ellipsis for expressions and select the expression in the list and click OK.
  9. Save the rule.
  10. Notice that the rule has a dependency icon and is in error.

 

 

Resolution

  1. Ensure you have K2 4.7 installed.
  2. Install the K2 4.7 February 2017 Cumulative Update.
  3. Get the K2 4.7 February 2017 Cumulative Update FP5 from Regional Support.
  4. Install the K2 4.7 February 2017 Cumulative Update FP5 to apply the fix.


 

 


0 replies

Be the first to reply!

Reply