Skip to content
This repository has been archived by the owner on Dec 30, 2023. It is now read-only.

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

Closed
rjriel opened this issue Dec 6, 2017 · 2 comments
Closed

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

rjriel opened this issue Dec 6, 2017 · 2 comments

Comments

@rjriel
Copy link
Contributor

rjriel commented Dec 6, 2017

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

  • Extension version: v1 Branch
  • Browser: 62
  • Qlik Sense: November 2017
  • Operating system: High Sierra
  • [Other relevant versions]
@rjriel
Copy link
Contributor Author

rjriel commented Dec 6, 2017

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

rjriel pushed a commit to rjriel/sense-navigation that referenced this issue Dec 13, 2017
stefanwalther added a commit that referenced this issue Jan 9, 2018
Merge: Fixing issue with setVariable (#107, #108)
@stefanwalther
Copy link
Owner

Closing as fixed now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants