-
Oscript: insert data to Forms table
In OpenText Content Server, the Forms module allows you to create a table and later insert data using a WebReport tag with the destination set to the form. How can I achieve the same result using Oscript? Specifically, how can I insert data into a Forms table (i.e., submit a new form entry) via Oscript?
-
Automate Object Importer/Exporter
Hello everyone, I would like to manage via script the export/import of data from a Content Server instance to another using Object Importer/Exporter. Is there any way to start the the object export emulating what happens in the page /otcs/cs.exe?func=oe.ManualExport? In the same way than I would like to start object import…
-
Feature request - automatically build module.ini file when doing build clean
Hi, I am recently faced with a client requirement to embed a build number/code into my module ini file. I know that yeah, the webmodule object in Oscript has the '0 DumpModuleConfigToFile' function, and that we can override it to add our own tags, but what I really want is a way to have build clean regenerate the…
-
How to send multiples of same param name with RestClient
I've discovered what I believe is a shortcoming of the RestClient drop-in. If you're POSTing to a service which responds to multipart-form-data requests, then they may expect you to send multiples, for instance in the equivalent GET, how would you manage something like…
-
Enterprise Scan script - assign document number to Batch field
Hi, please kindly support me - how to build a script that can assign each (PDFs) document number ( Doc. 1, Doc. 2, Doc 3, ….) into field "Batch" (Properties →Document→Batch).
-
The items are not from the same database
In workflow, we have a EventScript which is simply there to initiate another series of workflow instances based on the attributes of the WF you are creating. After upgrading from CS16.2.4 to 22.3 (16.2.21.2017), this event script has stopped working. Having debugged it and stepped through into the Core modules, we have…
-
Error at File.Open() - Could not open file
Hi, I am getting error in my custom class: Could not open file. File contactFile = File.Open("E:\Contacts.txt", File.ReadMode) OTCS is installed in E:\OTCS241 Eclipse uing Workspace E:\Workspace
-
How to override EMail sub classes (NodeCreateSubclassPost)
Hi CS23.4 I have inherited a module that overrides some functions when you drag and drop a document into classic view, so it can perform some additional checks before deciding if it needs to write into an additional table for later. Part of the module is this code: override function Void __Init() Object lliApi = $LLIAPI…
-
How to implement string search for begins with?
Hi, everybody, I'm new in OScript language. Could you please to help to write some code to find all strings from collection what begins with expression? To do similar like SQL LIKE. Thank you
-
RestClient not presenting entire response
Hi, I'm trying to use the RestClient.PostFile() method. I've passed in a file, supplied its MIME type as well as a few parameters. In Fiddler, the request looks about right - it comes out as a multipart form-data post, and I get a proper response from the API. When I test in Postman, the request comes back with a file as…