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.
record selection for Radio Button List does not work for manually triggered events.
1. Populated radio button list control on "When the view executed Initialize" rules - The default value will be selected.
2. When Adding a new button, the populated radio button list control on “When Button is Clicked” rule - No any items are selected by default.
Both actions called to the same SmartObject and the rules are the same, but the result is different.
This has been logged as a bug to be addressed in a future version of the product.
- Open the form for editing.
- Create a Parameter “P1” on the Form.
- Open the inherited "When the view executed Initialize" rule,
- Re-enable the currently disabled rule.
- Add a condition: “If P1 Form parameter has a value of 1”.
- Click OK to finish rule.
- Open the “When Button is Clicked” rule.
- Remove existing rule.
- Add “Execute another rule” action and select "When the view executed Initialize" rule.
- Add a transfer data rule and set the parameter “P1” to 1 and move it above the execute rule.
- Add a transfer date rule and set the parameter “P1” to 0 and move it below the execute rule.