Good day,
We upload images into the database with this code :
<td align="right">FileName</td>
<td><input type=file size=200 name=FileStream></td>
</tr>
s FileName = ##class(%File).GetFilename(FullFilename)
s ItemImage.FileName = FileName
InterSystems ObjectScript is a scripting language to operate with data using any data model of InterSystems Data Platform (Objects, Relational, Key-Value, Document, Globals) and to develop business logic for serverside applications on InterSystems Data Platform.
Good day,
We upload images into the database with this code :
<td align="right">FileName</td>
<td><input type=file size=200 name=FileStream></td>
</tr>
s FileName = ##class(%File).GetFilename(FullFilename)
s ItemImage.FileName = FileName
Hello,
I make some changes in our ObjectScript code between our prod environment and dev environment in the process 'Hl7AdtFileIsoslBp'.
The operation is a class with "EnsLib.TCP.TextLineOutboundAdapter".
In prod:
When using $SYSTEM.Status.DecomposeStatus(tSC, .tErrorList) in ObjectScript to get the lsit of errors (I need to do this so that I can generate a custom JSON with the error messages) what is the type of tErrorList returned and how to intialize?
I have SQLCompute with SQLComputeCode on a couple of Properties in my class.
These work fin when I insert/update via ObjectScript or SQL from the ManagementPortal.
However, if I insert (create new record) via my C# app using the Caché ODBC DLL the SQLCompute is ignored, it does not run.
Is this expected InterSystems Caché behaviour? We are on latest IRIS platform.
Hi all.
I'm currently working with a system needing results from a lab system, and they can only accept a single OBR per R01 message.
The R01s from the source have multiple OBRs, so I need to be able to send a message per OBR.
I face the challenge to have a bunch of classes on IRIS and CACHÉ in parallel
until all systems are migrated to IRIS.
Applying changes in Caché development environment and moving to IRIS is no problem
But if I have to apply a fix on IRIS there seems to be no clean way back to Caché.
Hi
I've got a string variable which I need to convert into a XML one.
My main goal here is to use the XML bit I've extracted from a HTML file in a message I need to pass over to an operation.
I'm doing the following which always errors
classMethod WriteNodes(myfile As %String)
{
Set status=##class(%XML.TextReader).ParseString(myfile,.reader)
....
Any easy way of making this happen?
Kind regards
Hello Everyone,
I'm want to know, what is more common for your company to use, the abbreviation syntax or the complety name of commands, and why?
Ex.
S VAR=10 / D FUNC^ROUTINE F 1:1:1000
Set VAR=10 / Do Func^Routine / For 1:1:1000
set var=10 / do func^routine / for 1:1:1000
Here in my company, we are familiar with the abbreviation syntax, because to spell is more faster.
Hi, I asked last week and they gave me some little tips. But the truth is I still can't carry out this "Project".
I must perform a REST service, using Oracle 11 database. Eh tried anyway to achieve this.
The purpose is to make a REST service, using the database provided to me and use the procedure that is already created.
According to what I read, I made the connection via JDBC and I had no major problem
Hi everyone,
I've encountered this annoying issue so many times before, if any one also encounter this issue, please share here if you have any solution.
So, I've been working on a web service project using HealthShare 2015. Sometimes I have to set a debug target to a csp file to debug it. If I pause the debug process about 3 minutes above or so (to examine an object, variable, etc..) the studio will hang.
I have a custom written date, setup as myDate in my application, which always behaved fine for years, and now it's acting a little weird.
When I run SQL in Display mode the date shows as 1/10/1841 for some but not ALL rows.
When I run the same exact query in logical Mode the date shows normal format, in my case, for example 10/1/2019. When the application is running is shows the incorrect date. When I run the terminal session and open a ref point and ask to write a date is shows 10/1/2019, but I am expecting internal format here - 65287.
Hello! I have basic web services application that java clients connect to the cache web services. Using the browser, the user enters in the following url.
I must be missing something. We have done encoded PDF's in the past with the Encoded PDF in OBX.5.5. When I have used this code in the past I was only working with 1 OBX, but I have a case where I am having multiple OBX's and having to loop through them and I am renumbering the outbound OBX.
We have a data transformation where source is object collection (populated from a json file) and target is EnsLib.EDI.XML.Document.
If source file is large enough, transformation fails and we get <store> error and I quickly found this:
https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls?KEY=EBPLR_DTL_foreach which at the bottom in "Avoiding <STORE> Errors with Large Messages" section tells to:
Using ZZDUMP command in terminal is a nice debugging feature.
But it is useless in background jobs.
How can I get the output into a variable or - less attractive - in a stream object ?
Hi All,
I have a ZEN report, which gives a PDF output, i want to generate this report programmatically, save to a location in the disk. Here is my method so far
I am reading the following code in ObjectScript:
And there is a sentence which I am facing difficulties to understand:
kill ^OPNLib.Game.CWLF(..World)
I know that kill removes variables, OPNLib.Game are the package and subpackage, and ..World is a property. However what does CWLF mean?
You could think that it is the class' name, but it is:
Hi,
I got the <INVALID OREF> error in the component and the error screenshot as follows:
%ToJson doesn't work in 2015 release of cache, How to transform a object to json in this release ?
HI,
I am a newbie so excuse my basic questions.
I have installed Caché on Mac Os High Sierra 10.13.6 and have started the ObjectScript tutorial but I cannot open Terminal in Caché.
The instructions provided on the tutorial don't appear to be for Mac OS as there is no cube icon:
Hi All,
I have a class method, this can be any cache expression to execute (usually a class / method and args) and and args stored in a variable, for example;
set aa = "##Class(Utils.Test).Run(1,2,3)" do aa
I tried using $classmethod(class,method,args..), by extracting the values but sometimes there can be no arguments, or arguments such as ;
("2019-01-01","1,2,3,4")
which causes issues while running the $classmethod, (i am using $P to extract the Class, Method and args).
Is there any simpler way of doing this?
We have a case where we have 1 message coming in, but then sending two messages out to the same location. Even with FIFO sometimes the messages get out of sequence depending on what is need to be done to the message in the DTL before send. Is it possible to call sleep or Halt or write some kind of a function to put a pause in a routing rule between two sends?
I've created a scheduled task that dumps HL7 messages to flat files. It uses the OutputToLibraryStream() method of EnsLib.HL7.Message. I'd like to be able to run it on a mirror member host whether it's primary or backup.
When run against a database that's mounted read-only, it works fine. However, when I attempt to run it against a mirror backup database, I get the following error:
#5002: Cache error: <PROTECT>%LoadData+7^EnsLib.HL7.Message.1
Tracing that back to the source, I find:
Is there a system function/method which can create a GUID ?
What's the best way to replace character groups?
I want not to remove character groups as $zstrip does but to replace them with whitespaces.
$translate needs explicit character list.
Effectively I want to remove any characters besides letters, numbers and a small (known) subset of punctuation characters, replacing everything else with whitespaces.
After upgrading I ran a $SYSTEM.OBJ.CompileAllNamespaces("u"). What I got in return was kind of a shock.
In reviewing errors I am seeing code being referenced but no longer applies. It is referring to stuff that might of been defined in the Context , Formal Spec ,Thread , etc.
ERROR #5373: Class 'osuwmc.CPD.DataStructures.TblPharmacyDEA', used by 'osuwmc.CPD.BusinessOperation:SelectProviderTempDEA:FormalSpec', does not exist
We have a customer that is not able to accept HL7 result messages that are missing OBX:3.1. I have been trying to create a function that could return a boolean value of 0 if the message didn't meet the expectations of the function.
Hello,
I had an issue when using the method Exists, I noticed that if you provide a directory for this method it returns 1.
This is really misleading, because sometimes the input could be a directory and the only way to predict this is to also test if the file is a directory.
I didn't tested using the Attributes method, but I supposed that this means could also be a solution for that issue.
But still, I expected the Exists method to return 1 for files and 0 for directories, since there's also method called DirectoryExists already.
To leave a comment or answer to post please log in
Please log in