Community
How do I fix encoding (UTF8) issues for PowerShell scripts?
When I create a script for Onify Agent special chars sometime does not work. This is an issue when a script returns something and you want to show it in a form. How can I fix this?
Posted by Robert Lundsten about 4 years ago
Running PowerShell 7 (pwsh.exe) instead of system default Powershell
Is there a way to launch PS scripts through Onify Agent in a PowerShell 7 session instead of default PowerShell environment (5.1). We have some advanced Class Libraries (Assemblies in .dll's) compiled against .NET Core 3.0 framework and to use those natively needs a newer PS host.
I couldn't find any entry in Agent configuration where one could specify the used PS environment.
Posted by Perttu Määttä over 3 years ago
Apache Log4j2 Remote Code Execution (RCE) Vulnerability CVE-2021-44228 and Elasticsearch
We are running Onify with Elasticsearch. What are the actions we need to do related to the Log4j2 exploit and Elasticsearch?
Posted by Robert Lundsten over 1 year ago
Terms and Conditions agreement process?
Does the Onify offer any process for handling the terms and conditions agreements? Kind of build-in process that the user must agree to in order to use Onify in the first place (and the forms we have created)?
Posted by Ari V over 4 years ago
How do I upgrade indexes after new API version?
I just got an new version of Onify API and after reading the changelog, it seems that the database needs to be upgraded (`This version requires database upgrade after installed.`). How do I do this?
Posted by Robert Lundsten over 4 years ago
Item card and nested json array
Item card cannot show nicely nested array details. My colleague had information that he wanted to show to the end user. I suggested to create a more details button to the item and make a form that would show the more details. This solution we ended up.
I noticed that this solution could be handy for others also who have nested arrays in their item.attribute.nestedarrayjsondata, maybe Onify support want to put this solution to the forms section how to show static nested json data from item card.
block append formConfig
-var box = form.items[0]
if(mailbox.attribute.nestedarraygroup)
-var groupsarray = JSON.parse(box.attribute.nestedarraygroup)
else
-var groupsarray = 'none'
+formOptions({
formDescription: box.attribute.displayname,
pageTitle: 'Box details',
formTitle: box.name,
hideSubmitButton: true,
backButtonName: t('back'),
})
block formContent
if(groupsarray.groupname)
table(style='width:100%',border='0')
tr
th(style='width:40%') <b>Resource group:</b>
th <b>Nested groups:</b>
tr
td #{groupsarray.groupname}
td #{groupsarray.groups}
Posted by Markus Kalske almost 2 years ago