-
Multiline string value
Is there any comfortable way to define multiline string value in OScript? I need something like this: sqlQuery = """SELECT objf.sys_name, objf.ui_name, objf.show_order, ftype.system_name as type FROM object_field objf, field_type ftype WHERE objf.object_type_id = 1 AND objf.field_type_id = ftype.id """
-
Create an OScript object based on Class
Like in other languages I need to have an Object in my OScript module. This object will have properties and methods. So I would like to define it as a Class and then create an instance. Is it possible to do in OScript? Could somebody share an example?
-
Which certificate store used when Oscript calls Java libraries
Hi, I have some Oscript that calls an API via the Apache HTTP Client library. I'm getting a (well known) certificate error, mainly this Java exception: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to…
-
Custom module recompilation
Hi Experts, We have a custom module which is developed for Livelink 9.7.1 to apply permissions once folders are created using workflow. While recompiling this module to make it compatible with CS20.4. we are getting "unknown feature specified error" for below line in code. RecArray.AddRecord( array, { obj,…
-
Change workflow attribute value from outside workflow instance
Hello, I'm still green to to OScript, so I'm not sure if what I'm asking is possible. What I'm doing: I have a dashboard-style Webreport that lists all instances of a workflow that are on a particular step. These workflow instances are grouped into to two tables based on the value of one of the workflow's attributes (set…
-
Getting a list of group names for a user in OScript (querying OTDS)
I have a custom OScript REST API and I need to check the group membership of the user as I want to limit access to the API to a specific group. The group is available in the connected OTDS instance. Is there sample code to do this?
-
Avoiding subtypes ID collison when creating a new Volume
Hi Folks, I am trying to create a new volume in Content Server, and it looks like what we need is just: Object llNode = $LLIAPI.LLNodeSubsystem.GetItem( TheIDOfTheVolume )
llnode.NodeAlloc( session, TheNameOfTheVolume) But this is assuming that we already know the ID of the volume. The thing about this ID, is that 0 to…