Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Team,
I have already posted my queries with respect to user defined functions in the(https://community.qlik.com/t5/Qlik-Replicate/User-defined-transformations-using-addons/m-p/2009185#M...), although I wanted to clarify few things before I start writing my own C shared libraries.
my understanding is when you uncomment the addons_def.json.sample and save it as addons_def.json with the following code
(I have also tried "lib_name": "MyTransformation.dll" )
After saving the file and refreshing the Replicate services like below
The functions should pop in the below
Is there something I am missing in these steps. I have been trying to find something in the user defined functions for quite some time. I tried to compile the code which was already there and generate a dll file even that did not work.
But I assume, it shouldn't be the case as the sample folder contains the files necessary and the addons_def.json file registering should do the thing.
any suggestions/modifications is appreciated.
Hello @csidda ,
The embed sample, MyTransformation, works for me in my labs. The addons_def.json looks like
{
"addons":
[
{
"name": "MyPasswordProvider",
"type": "STARTUP",
//"lib_path": "samples\\MyPasswordProvider\\MyPasswordProvider.dll",
//"lib_path": "samples/MyPasswordProvider/MyPasswordProvider.so",
"init_function": "ar_addon_init"
},
{
"name": "MyTransformation",
"type": "STARTUP",
"lib_path": "samples\\MyTransformation\\MyTransformation.dll",
//"lib_path": "samples/MyTransformation/MyTransformation.so",
"init_function": "ar_addon_init"
}
]
}
Please take note that:
1. the .DLL location is "C:\Program Files\Attunity\Replicate\addons\samples\MyTransformation" in my sample
2. the .DLL module should be built in Release (not Debug) mode
3. check "repcmd.log" to see if any helpful information in your env
If you still cannot manage it to work, PS team is highly recommended.
Hope this helps.
Regards,
John.
Hello @csidda ,
The embed sample, MyTransformation, works for me in my labs. The addons_def.json looks like
{
"addons":
[
{
"name": "MyPasswordProvider",
"type": "STARTUP",
//"lib_path": "samples\\MyPasswordProvider\\MyPasswordProvider.dll",
//"lib_path": "samples/MyPasswordProvider/MyPasswordProvider.so",
"init_function": "ar_addon_init"
},
{
"name": "MyTransformation",
"type": "STARTUP",
"lib_path": "samples\\MyTransformation\\MyTransformation.dll",
//"lib_path": "samples/MyTransformation/MyTransformation.so",
"init_function": "ar_addon_init"
}
]
}
Please take note that:
1. the .DLL location is "C:\Program Files\Attunity\Replicate\addons\samples\MyTransformation" in my sample
2. the .DLL module should be built in Release (not Debug) mode
3. check "repcmd.log" to see if any helpful information in your env
If you still cannot manage it to work, PS team is highly recommended.
Hope this helps.
Regards,
John.
Hello @csidda ,
If you believe that above suggestion worked for you, please accept it as solution. If already marked, give it a thumbs up!
Thank you,
Dinesh