CSIDE and OScript
Topics include: CSIDE development (SDK), OScript
-
event script - recalculated due date
We want to send custom email notification that includes recalculated due date when workflow step is ready. However, the due date read from WSubWorkTask is not recalculated yet at this point. It ends with a wrong due date (the initial one) in the email. How can we get recalculated due date in step ready event? Thanks.
-
JavaObjects Apache Http Client and getting UTF-8 data from response
OK, This one is a bit of a noodle scratcher. I suspect the root of the problem is that when you pull string data into an Oscript string it doesn't interpret the character set correctly. What I'm trying to do is consume a REST call from Apache HTTP client (java library) from within Oscript. With JSON responses it works…
-
Widget won't deploy to Content Script
I'm a beginner, I'm currently following "Content Server Smart View Development 20.2" course, I tried 3 times to deploy a greeting widget to content script but for some reason it won't show up. for clarification, these are the steps I did: I generated an OScript project using the Smart View SDK. I created a new module and…
-
CSIDE 22.1 Abysmally slow when saving
Hi, Like many other developers, I moved to CS 22.1 and CSIDE 22.1. I've built a net new development environment on Windows Server 2019 and SQL Server 2019 with an internal OTDS. What I'm finding is that whenever I try to save any change, the IDE hangs for about 15-30 seconds, making development very difficult. I had a…
-
CS IDE error
One of my developers has started getting this error, which causes the module tree to disappear etc in CS IDE, cant find anything on a KC / Forum search.
-
How to call a module upgrade script
Hi, For a module I'm working on, I need to call some Oscript to move some opentext.ini settings into KINI. I was under the impression that DoSubclassUpgrade() was the feature of my Module object I need to orphan, but I don't ever see it get called. Further, unlike other modules, I don't see the Configure script ever being…
-
What are other 3rd parties doing for licence management?
Hi, I started looking at the OTDS licence management API as a possible solution to the problem of storing a licence key that you simply need to access at start up prior to getting the db connection. Right now, ours is stored in the opentext.ini file. Literally the only reason for doing that is so we can get the licence key…
-
Exporting Documents from CS v16
What is the efficient way to export 35000 documents with all versions from Content Suite v16 to Windows file system ? The documents are stored in multiple folders in Content Server . Thanks & Regards Saswata Mandal
-
CSIDE on RHEL 7.8
I am seeing almost a similar thing as this poster since I am new to CSIDE on Linux it is quite possible I do not know what I am doing. My CS Server binaries and install directories are owned by root:root the main oracle install owned by oracle:install.I start my llserver with the sudo root command start_lladmin and…
-
LINUX RHEL 7.8
I created a module in Windows 2016/CSIDE that contains one or two RH's a bunch of java code So far good they have been in use for more than a year. We have a potential customer on Linux CS so I tried installing my module. The module did not install from my past knowledge with builder and UNIX I renamed it by module.oll to…
-
Can't create module in CSIDE
I have been trying to set up Oclipse CSIDE as an OScript novice, in order to use it for SmartUI SDK. However, I have been struggling with creating a module in Oclipse. After entering module name and version in the Wizard and clicking OK, I receive "java.lang.reflect.InvocationTargetException". Looking further down in the…
-
OUnit Test suite in 21.4 CSIDE
Hi, When I upgraded CSIDE, I noticed a new control, an OUnit test control: It looks like an Oscript version of the JUnit test suite you find in your typical Java project. As someone who is trying to implement more TDD in my Oscript development, I have to ask if there is any guidance on how to use OUnit tests? I haven't…
-
Version of Apache Http-client jar that ships with Content Server
Hi, At least in CS 21.2 (haven't checked CS 21.4 yet), I noticed the httpclient.jar in the OTHome\ojlibs directory. I suspect it's been there a while. My question to OT Development is this: Which version of the Apache HTTP Client are you shipping Content Server with? It appears to be a 4.x variant, I'd guess HttpClient 4.4…
-
How to set WF data BEFORE initiate?
I need to start an instance of a workflow map. But as a first step I need to set attributes values in the workflow. How to set attribute values BEFORE the initiation of the workflow map?
-
JSON Web Tokens from Oscript
Hi, Bit of an edge case, but is anyone using Oscript to generate JSON Web Tokens (JWT's)? I ask because there is a particular service I want to write a token for from oscript that requires SHA-256 as the encryption. I noticed that if I call Security.Encrypt() passing Security.SHA256 as the encryption method, the drop-in…
-
LoadWorkData returns only "Start Step"
I have a simple workflow with an event script at the middle step. In the script I need to get task data for the current step (where the script is assigned). To do so I use the following method: RecArray workData = $WFMAIN.WAPIPkg.LoadWorkData(prgCtx, work) But in the workData I can see only the 1st step "Start Step". Why…
-
Localisation/Localization - Difference Between Unix and Windows, and between CS versions
Hello experts! I note that language packs are available in both Unix and Windows. What are the differences between them? I've found no documentation unfortunately with the details. Also curious if there's a list of changes between versions? I.e. some manifest that lists which files have been updated/changed say from 21.1…
-
Dynamic function call
I have an Assoc with associated function names to an object type: functionList = Assoc{ 'type1': Assoc{ 'method1': 'method1ForType1' 'method2': 'method2ForType1' } } How can I call some function with a name generated from a variable based on the functionList? I need something like: funcName =…
-
Need help with translating Content Server
Hello, I'm trying to translate Content Server into another language, I did the localization procedure with the python script that they offer, I have a language pack prepared for translation, the question is, what exactly do I need to translate? I have .properties, .htm, .js and .css files in those directories, is it enough…
-
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 """