Is it possible to generate a random string in cache please advice thank you in advance
InterSystems Caché is a multi-model DBMS and application server. See more details here.
InterSystems Caché is a multi-model DBMS and application server. See more details here.
Is it possible to generate a random string in cache please advice thank you in advance
I am trying to execute a program from within cache using a $zf call
S X=$ZF(-1,"C:\""Program Files (x86)""\Car-Part\Messaging\iCPM.exe")
For the sake of this post I changed it to open notepad
S X=$ZF(-1,"C:\Windows\notepad.exe")
If I call it directly from terminal notepad opens and all is happy.
If I add it to a program we use to run certain tasks once an hour or even every 10 minutes it will fire off notepad but it will be in the background.
The messaging application we use will not work at all in the background and needs to be in the foreground.
To create a user-defined error you need to prepare the XML that describes the error code and corresponding message that you want to use as a user-defined error.
Please set the error code as a negative integer.
<?"1.0""UTF-8"
<<Once the XML file is created, load it into the namespace you want to use.
##classOnce loaded, you can retrieve and display user-defined errors with a command like the following:
USER>Does anyone happen to know what could be causing this error?
ERREUR #5002:Erreur Caché : <LIST>%SerializeObject+5
^AHP.WebSrvExchange.Response.FicheRetourResponse.1
.png)
I need to download InterSystems Caché ODBC Data Source 2018 and I can't.
I want to know where I can download it.
I want to convert a string to uppercase that may or may not be a $LIST so that I can do a case insensitve search. However, when looking at what constitutes a $LIST I can see something that looks like it follows these rules:
Example: S X=$LISTBUILD("hello","world!") gives X=$C(7,1)_"hello"_$C(8,1)_"world!
There is test folder inside my sftp server. I executed the below lines of code
s ssh = ##class(%Net.SSH.Session).%New()
d ssh.Connect("host")
d ssh.AuthenticateWithUsername(username,password)
d ssh.OpenSFTP(.sftp)
s remote="\test\sample1.txt"
s local="c:\orders\sample1.txt"
s status=sftp.Put(local,remote)
I get the below error
"MSSH Error [8010102B]: Unable to send FXP_OPEN* [8010102b] at SFTP.cpp:539,0Put,IM%e^zPut+2^%Net.SSH.SFTP.1^1e^^^0"
I was recently asked whether we have a function to convert LDAP date time stamps into $HOROLOG format or other formats and the answer is not at the moment, but there is a simple method to do the conversion.
Let us look at the facts and figures involved...
If there is an alternative to use instead of Telnet due to security reasons in the Cache terminal? Telnet is using a plain text protocol generating security violations. I am using Cache for Windows 2018.1.8.
Hi folks,
I have published a new package on OEX.
In short, it is a string datatype that support various configuration options and flexibility.
You can hide the source by exporting/importing only the *.obj that is generated after compiling the source program.
The command execution example specifies EX1Sample.obj and EX2Sample.obj, which are generated by compiling EX1Sample.mac and EX2Sample.mac, as export targets and exports them to the second argument file.
After moving to another namespace, I am using the exported XML file to perform the import.
USER>do$systemhi
we have a rest API that that on of the JSON object contain Property name "verify.facePosition"
we try to translate the JSON file to object with the function ##class(%ZEN.Auxiliary.jsonProvider).%ConvertJSONToObject()
how can we define the Property to "verify.facePosition" As %Boolean in the class ?
i know that with underscore i can define the property with quotation marks like this - Property "verify_facePosition" As %Boolean
thanks for the help
I need to develop a tool to help to get what data is being consumed by a certain process, in order to get all data used to build an automated test scenario.
For example, some user process will pull data from ^GLOBAL(1)="dataString", ^GLOBAL(2)="dataString2", ^GLOBAL1(1)="data1String", ^GLOBAL2(4)="data2String4". Amidst all other data on these Globals, I will ignore everything that was not used in the user process, and get the specific keys used on it.
Hello,
I'm making rest API service with Authentication.
How I can return HTTP Status 403 if user enter invalid login or password?
Now returning Http status 200.
Class RestAPI Extends %CSP.REST
{
XData UrlMap [ XMLNamespace = "http://www.intersystems.com/urlmap" ]
{
<Routes>
<Map Prefix="/restforms" Forward="Form.REST.Main"/>
<Route Url="/auth/:login/:pass" Method="GET" Call="CheckUser" Cors="true"/>
</Routes>
}
ClassMethod CheckUser(userAw, pwdAw) As %String
{
set %response.ContentType = "application/json"
// my code to check auth
Set object = {}
Set object.status = -1
Set object.message = "HTTP/1.
Hi,
An exception occurs randomly. I expect the value of ^TEST to be 20, but it's not. Did i miss something like closing, flush the stream or locking the global?
Exception
Testcode
test
n glob s glob=$na(^TEST) k @glob
n file s file="C:/temp/file.xslt"
n i f i=1:1:20 w !,$$save(file,glob)
q
save(file,glob) {
s fs=##class(%Stream.FileBinary).%New()
s sc=fs.LinkToFile(file)
q:$System.Status.IsError(sc) sc
s gs=##class(%Stream.GlobalBinary).%New(glob)
s sc=gs.CopyFromAndSave(fs)
q:$System.Status.IsError(sc) sc
q gs.%Id()
}
Someone, please point me to the location of the cache ODBC drivers.
I don't have acess https://login.intersystems.com/login/SSO.UI.Login.cls?referrer=https%253....
I need driver for acess the BD Intersystems Cache in the Power BI.
This applies to embedded and dynamic SQL queries in Caché ObjectScript. If I attempt to terminate the process via Management Portal, nothing happens. Neither does Ctrl C nor closing the terminal window in which my program is running, nor setting a stop flag in a global which is read by the program on each loop iteration. The only way to stop the query appears to be restarting the Caché server (which is running locally on my PC).
I'm dealing with a situation that leaves in doubt what I understand about CACHE.WIJ (C:\Roche\CobasInfinity\HealthShare\mgr)..
Journal files store records already written to the base.. and CACHE.WIJ records not yet written to the base..
theoretically, the data contained in CACHE.WIJ is temporary... until the record is written to the base (consequently generating journal).
The question arose because I have a .WIJ file from 03/10/2023 (modification date) with approx. 4GB.
Information on properties defined in a class can be obtained using the following system classes:
%Dictionary.PropertyDefinition
The code description example is as follows.
ClassClassMethodAsAn example of execution is as follows.
USER>Related article: How to get all fields of a specified table with SQL
If interested email to me at jwalkerbdrsolutionsllc.com
Ensemble/IRIS Developer to join our growing team! This position will be performed virtually from the individual's home office working on EST time schedule. This position requires US Citizenship with a Public Trust or the ability to obtain one.
(Military Veterans are highly encouraged to apply)
Role Overview
BDR is in search of a proficient InterSystems Ensemble/IRIS developer to contribute to our Department of Veterans Affairs (VA) contract.
Hi,
I am trying to use the %Net.HttpRequest Class, and the request has to pass through a proxy server that requires authentication.
I am usually able to do that by using the following code:
S httprequest.ProxyServer=proxyServer
S httprequest.ProxyPort=proxyPort
S httprequest.ProxyAuthorization="Basic xyzxyzxyz"
I have a problem accessing a site that is accessible only using SSL-
The combination of the proxy authentication code and the SSL code-
S httprequest.Https=1
S httprequest.SSLConfiguration = "XYZ"
S httprequest.ProxyHTTPS=1
Does not work- I get the following error:
"<WRITE>zSend+180^%Net.
Pointers please for debugging a SOAP web-client.
We have several clients in different productions all accessing a web-service. We are trying to add another client in a new production, and its not working. The messages between the relevant Process and the SOAP web-client Operation are the same in the working and the non-working productions. But the web-service is reporting an XML parsing error to the non-working production. Here's the error as reported in the SOAP web-client Operation...

Is there any way to see the output of the web-client Operation
ObjectScript allows you to pass any number of arguments using arrays. Do it by adding ... after the argument name.
An example is as follows. In the example statement, the argument information is set in a global variable (a variable stored in the database) so that it can be easily checked after the method is executed.
ClassExtends%RegisteredObjectThe result of running it in the terminal is as follows.
USER>It appears to be working correctly, mirroring data etc. but the status on the Primary Cache DB is showing the wrong status for the DR DB.
re-configured Cache Mirroring BUt still have the same issue afterwards.
The GUI display remains the same regardless.
Hi,
Any examples please of connection a Delphi 11 Front end to a Cache database?
I can get it to connect but then when I try and view data it fails
4 fields in front end
SERVER = 127.0.0.1
PORT = 1972
NAMESPACE = DROP DOWN LIST (I SELECT "DEVELOP" FROM THE LIST
EDIT_CLASSNAME = Default value is Test (with maybe 3 fields just of random stuff)
procedure TFMAIN.BtnConnectClick(Sender: TObject);
var
ConnectString: string;
Success: Boolean;
Col,Row:Integer;
FieldName:array[0..10] of string;
begin
Hi Community,
In this article, I listed 5 useful SQL functions with explanations and query examples 👇🏻
These 5 functions are
So Let us start with COALESCE function
This question is about calling AWS REST APIs. Based on:
http://docs.aws.amazon.com/general/latest/gr/sigv4_signing.html
AWS requires REST clients to call their APIs using Signature Version 4 which in case you don't know what I am talking about is a pain in the neck. Here comes the question:
Has anybody, by any chance implemented the v4 signing alg. in COS? If yes, would she or he have the kind heart to share?
Thanks,
Chris
how to install cache on Redhat 8 in 2023?
In the sample below, an image file is encoded into a Base64 string in a class property, saved, decoded again with Base64, and restored to another file.
【Usage class】
Class User.test Extends %Persistent
{
Property pics As %GlobalBinaryStream;
}
【When importing】
set x=##class(User.test).%New() // create a new object
// prepare an image
set file=##class(%File).%New("c:\temp\Mii.png")
do file.Open("RUK\BIN\")
for {
if file.AtEnd=1 quit
// Convert image to Base64 format in chunks of 1024 bytes
set cnt=file.Read(1024)
set b64=$system.Encryption.Base64Encode(cnt) // b64: 1402byte
do x.pics.Write(b64)
}
do x.%Save()
do file.Close()On Linux, use the iris command to execute a routine or method from a shell and get the return value.
For more information, please refer to the document "About Instance Connections".
An example of a command is as follows.
iris terminal instname [arguments]The return value of a shell script can be specified using a special variable using the Terminate() method of the %SYSTEM.Process class when the process ends, rather than by specifying an argument in the QUIT or RETURN command that is specified when a routine or method ends. Use the method of returning a value to $?