Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
Hello.
Help me assign the value to the "text input" cell by the number of clicks on the "button" cell.
For example:
You click on the button once - cell "text input" takes the value "1".
You click on the button twice - cell "text input" takes the value "2" etc.
Solved! Go to Solution.
I can only figure out how to do this with some JS.
You can use an Application Parameter or and var in the JS. Here is how to do it with the app.param
$scope.bump = function () { $scope.app.params.myValue = parseInt($scope.app.params.myValue) + 1; //you need parseInt as parameters are strings }
I can only figure out how to do this with some JS.
You can use an Application Parameter or and var in the JS. Here is how to do it with the app.param
$scope.bump = function () { $scope.app.params.myValue = parseInt($scope.app.params.myValue) + 1; //you need parseInt as parameters are strings }
Thank! It works!
I did not immediately see that the parameter "myValue" needed to be set to "0" =)