qlik-oss / sse-r-plugin

A Qlik server-side extension plugin for accessing R.
MIT License
67 stars 71 forks source link

Unable to map user defined function with QLIK #28

Closed DeepanshuChamoli closed 6 years ago

DeepanshuChamoli commented 6 years ago

Unable to map the "FuncDefs.json" file with QLIK

I am using sse-r-plugin-1.2.0-qlik-oss file and we have "FuncDefs.json" where we have created few more functions. I have installed the package jsonlite too. But still not getting the uses created function in Qlik

Steps to Reproduce

I am very new to R so do not know how to proceed the same.

Operating system where the SSE plugin is deployed
[ ] Windows
Qlik Sense

[ ] Server



* sse-r-plugin: sse-r-plugin-1.2.0-qlik-oss
* Qlik Sense: November 2107
* Operating system: Windows 2012 R2
* R version - R-3.4.3-win

<img width="594" alt="function error" src="https://user-images.githubusercontent.com/35762342/35324710-8bbbe7e2-0117-11e8-9f62-a6a4e829f96c.png">
tobiaslindulf commented 6 years ago

Hi, You also need to enable/point to that FuncDefs.json file in the "SSEtoRserve.exe.config" file by setting the following line to the json file location, like below: <setting name="functionDefinitionsFile" serializeAs="String"> <value>.\FuncDefs.json</value> <!-- Set to i.e. .\FuncDefs.json to add your own defined SSE functions. The file contains the description of the functions. -->

Then, after you have restarted SSEtoRserve.exe, the output in the cmd prompt should show the following: image

After this, you have to restart Qlik Sense, then the functions should be available in Sense.

DeepanshuChamoli commented 6 years ago

Thank you Sir.. it works for me know.

Thanks a lot for your response

Regards Deepanshu