stefanwalther / sense-navigation

Sheet Navigation + Actions for Qlik Sense.
MIT License
88 stars 61 forks source link

The "Set Variable Value" function doesn't seem to work #107

Closed rjriel closed 6 years ago

rjriel commented 6 years ago

Description

I created a button that has an action "Set Variable Value", however when I click the button it doesn't seem to actually set the value

Steps to Reproduce

  1. In a Sense app create a variable vVariable with a Definition of 1
  2. On a sheet create a KPI with a measure that has an expression =$(vVariable)
  3. Add the sense-navigation extension to the sheet.
  4. In the properties panel under Actions choose Add Item
  5. In the drop down select Set Variable Value
  6. Under Value put 2. Under Variable Name put vVariable
  7. Get out of Edit mode and click the newly created button
Expected behavior

The value of the vVariable variable changes to 2 and the KPI is updated

Actual behavior

No update actually occurs

Environment

Operating system
[ ] Windows
[x] OSX
[ ] Linux
Qlik Sense
[ ] Desktop
[x] Enterprise
Browser
[x] Chrome
[ ] Firefox
[ ] Internet Explorer
[ ] Edge
[ ] Others: XXX

Versions

rjriel commented 6 years ago

In testing, it seems like line 212 is looking for a variable<id> key in $scope.layout.props that doesn't exist

stefanwalther commented 6 years ago

Closing as fixed now.