Questions tagged [objectscript]

ObjectScript is a general purpose object-oriented programming language. It is designed to be simple to learn, easy to use, yet still powerful, combining the convenience of an interactive interpreter with many of the features of Java.

ObjectScript is a general purpose object-oriented programming language developed by InterSystems Corporation. It is designed to be simple to learn, easy to use, yet still powerful, combining the convenience of an interactive interpreter with many of the features of Java:

  • a simple java-like syntax
  • class system, with single inheritance and mixins
  • private/protected/public fields and methods
  • exceptions for error handling
  • synchronization and threading
  • compiles to bytecode for higher performance
  • osdoc: a javadoc-like tool to extract API documents
  • from src code, plus API docs accessible reflectively
  • XML-RPC support
  • Windows COM support
  • regular expressions (requires java v1.4 or later)
63 questions
0
votes
1 answer

Dynamic iFind Index without creating class Index of %iFind.Index.Basic

I am trying to make a general purpose text search feature with %iFind.Index.Basic. According to the iFind Search Tool documentation, an iFind Index must be created in a Class as below: Class Aviation.TestSQLSrch Extends %Persistent[...] { ... Index…
Darky WC
  • 131
  • 2
  • 12
0
votes
1 answer

Unable to set content type of http header in REST

The below requests always takes the default Content Type irrespective of what I am setting. I set to application/xml, but still it goes as application/json. This problem however is not there when I invoke the service via Postman. Set…
Vivek Ranjan
  • 1,432
  • 2
  • 15
  • 37
0
votes
2 answers

Intersystems Caché Java Gateway

I need some help on development in Caché's Objectscript. I've been working in this technology for some months and since some days, I'm trying to get the Java Gateway to work without success. It is supposed to allow me to run java .class et .jar…
0
votes
1 answer

Code for modify DB?

I have no idea what kind of language of programming is this, or what the method does, any help? It could be some code for modify some DB tables? ClassMethod CreateNewConfiguration(pintInsTypeConf As %Integer) As %Integer { Set objRecord =…
Ratiess
  • 59
  • 1
  • 7
0
votes
1 answer

Is there a way to retrieve objects of a %Library.RelationshipObject by a certain order

This documentation has no mention of sorting the elements
user6284097
  • 157
  • 1
  • 1
  • 9
0
votes
1 answer

line continuation in intersystems cache objectscript

I am writing in intersystems cache object script. I have a statement which has become very long. Is there any way to continue a statement in the next line? Thanks.
syonip
  • 2,762
  • 25
  • 27
0
votes
2 answers

How do you cycle through items in a Relationship?

This is the current code: Class %Utcov.Test Extends %RegisteredObject { ClassMethod listClasses(ns As %String, projectName As %String) { // Switch namespaces to the new one new $namespace set $namespace = ns // Grab our project, by…
fge
  • 119,121
  • 33
  • 254
  • 329
0
votes
1 answer

How to create content for child pages of a template?

I created a Zen page with a header. All is good. I then created a new Zen page and during the wizard specified that it was a "subclass of a template page". So now I have Class Custom.App.HomePage Extends Custom.App.TemplateMaster. If I visit…
user736893
0
votes
1 answer

Calling method from console: "No current object"

I have a method that I need to test. I would like to do so from the console. Here is the method, as well as some metadata from the class: Include HS.Common Class Custom.class Extends Ens.BusinessOperation { Parameter ADAPTER =…
user736893
0
votes
1 answer

Manually send mail from terminal console?

We have a class that builds and sends a mail message. I want to make some changes but before I do I want to test some things (like how URLs are displayed). I'm trying to manually send a message from the console but I'm getting some errors. Here…
user736893
0
votes
1 answer

Intersystems Cache ObjectScript change property value during %Save()

Given: A class named B. 2 persistent records of class B, id = {"B1", "B2"}. A class named A: class A Extends %Persistent { Property rB As B; ForeignKey FKB(rB) References B(); } An instance of class A, named objA, with objA.rB = "B3" (which is…
0
votes
2 answers

Custom procedure fails to collect properties of a class parameter; why?

OK, first of all, I'm a rookie with Caché, so the code will probably be poor, but... I need to be able to query the Caché database in Java in order to rebuild source files out of the Studio. I can dump methods etc without trouble, however there is…
fge
  • 119,121
  • 33
  • 254
  • 329
0
votes
1 answer
0
votes
1 answer

Intersystems caché - sql storage definition

How to set Name property of %Dictionary.StorageSQLMapDefinition class? I have this code: set storMaps = ##class(%Dictionary.StorageSQLMapDefinition).%New() set storMaps.Name = ????? And i don´t know how to set storMaps.Name. Data type of Name prop.…
mrfazolka
  • 780
  • 1
  • 7
  • 24
0
votes
2 answers

Return just the results from %SYS.ProcessQuery using $SYSTEM.SQL.Shell() in Intersystems Caché on a Unix server

Background Hi, I work with a Unix-based application that uses an Intersystems Caché database. Since I'm not that familiar with Caché, it wasn't until recently that I found out I could type... $ cache ...to enter the database. From here, I found out…
user2063351
  • 503
  • 2
  • 13
  • 31