Hi All,
i searching for a sample, how to create a CSP Page in cache 2017.2, witch show a Tables result in a grid.
To someone knows a tutorial, or a documentation?
THX an
BR
InterSystems Caché is a multi-model DBMS and application server. See more details here.
Hi All,
i searching for a sample, how to create a CSP Page in cache 2017.2, witch show a Tables result in a grid.
To someone knows a tutorial, or a documentation?
THX an
BR
Hello, everyone,
InterSystems Certification has designed another certification exam and we need input from our community to help to validate its topics. Here's your chance to have your say in what makes an expert in system administration with InterSystems Caché or IRIS. And, yes, we'd like to hear from you Caché admins!
Here's the exam title and the definition:
An IT Professional who:
So, how can you help?
Full-Stack JavaScript development allows you to create state-of-the-art applications with Caché. With any (web) app you build nowadays, one has to make a lot of architectural decisions and you want to make the right ones. With the Node.js connector available for Caché, you can create a very powerful server side application server, allowing you to use the latest JavaScript technology and frameworks client- and server-side.
With all these new technologies, the most important is to integrate them in the most efficient way and to create a very productive development experience. This article willl get you started step-by-step with Node.js technology.
I'm having trouble trying to navigate XML files USING the %XML.TextReader. I have read https://cedocs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=GXML_textreader#GXML_textreader_creating_method
but I still don't really understand.
I have the following block
{
set practices= practices_textreader.Name_":"
If textreader.Value'=""
{
set practices= practices_textreader.
My database service is on the cloud server, and I access it on the company intranet. When I user the %request.CgiEnvs to get "REMOTE_ADDR", but what I have been getting is the company's external address. I can't get my IP address in the LAN.
For example, my computer IP address is 192.168.11.11, and my company's external public network address is 214.17.17. I can only get 214.17.17 by using %request.CgiEnvs("REMOTE_ADDR"), but not 192.168.11.11.
I only want to get 192.168.11.11.
Any help would be appreciated. Thanks!
Hi,
Has anyone tried to call Security.Users class (in %SYS namespace) for creating or editing users from a shell script (or any programming language)?
If yes, can you please share your code?
We are trying to automate some stuff and would like to know how this worked for others.
Thanks,
Bharath Nunepalli.
When using CallableStatement to call a stored procedure, the log shows an error. SqlCode-400..png)
This is my calling statement.
CALL web_DHCENS_CDSS.patadviceinfo_patadviceinfo(?,?,?)Hi guys,
I have read thos two links how to translate CSP application
https://cedocs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=GCSP_localization_tags#GCSP_localization_tags_compile https://cedocs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=ASTRLOC#ASTRLOC_localization_util_export
I have exported strings to XML
HI,
I have sample %session like this
%session.Data("product", "1") = "Product 1"
%session.Data("product", "2") = "Product 2"
%session.Data("product", "3") = "Product 3"
%session.Data("product", "4") = "Product 4"
%session.Data("product", "5") = "Product 5"How can i loop in tag based CSP application over %session?
if i have <csp:while condtion=""> Is there something like %session.Data("products").Next() ?
Hi,
Kindly find the below example :
If I open google chrome and I add the below link (just an example) , it will download a file to my local PC.
https://www.abc.com/cgi-bin/ocs/pswd=123&rpt=1
pswd correspond to the password
rpt represent the report
How can I do the above using code in cache studio ?
What type of services should I use? what's the parameters ? functions? and how can I test it?
How to post a standard HTTP requests to the server with special parameters on the URL while the server returns data records instead of HTML pages ?
Thank you in advance.
Hi
I am working on a project that will interact with some software called ROS (Robot Operating System). One of the development challenges we have is as follows:
ROS uses web sockets... So one connect with ws://localhost:9090 to the web socket server. It starts off as http, but then "upgrades" to web socket. It then keeps open this "tunnel" for bi-directional communication..
I need something like a HTTP Outbound adapter, but the Web Socket version of it...
Does anyone have any experience in this area?
Nigel
Hi guys,
Couple days ago, a customer approached me with the wish to enhance their existing legacy application, that uses SOAP (Web)Services so it shares the same authorization with their new application API based on REST. As their new application uses OAuth2, the challenge was clear; how to pass access token with SOAP request to the server.
After spending some time on Google, it turned out, that one of possible ways of doing so was adding an extra header element to the SOAP envelope and then making sure the WebService implementation does what is needed to validate the access token.
The attached code package provides a simple implementation of a web service client that utilizes the USPS Shipping API to normalize an address.
This code requires the developer to obtain a USPS Shipping API user ID which can be obtained from the USPS shipping API website. The assigned User Id can either be passed into the web service call as a parameter or can be coded as a parameter into the Request object.
Hi,
I'm having a problem when I'm attempting to freeze the instance.
I have a pre-script and post-script to freeze and unfreeze the instance, but when the script execute:
csession INSTANCE_NAME -U '%SYS' "##Class(Backup.General).ExternalFreeze(\"$SNAPLOG\",,,,,,1800)"
It's give me this error and fails the freeze:
Backup.General.ExternalFreeze: Failed, Unable to switch local journal file, Error: -99,ERROR #1142: Error switching journal file: 0 vi
At cconsole.
InterSystems has corrected a defect that can result in data integrity issues on systems using mirroring.
This defect affects:
This defect is more likely to be encountered in IRIS and IRIS for Health 2019.4. It is highly unlikely to have occurred on deployed systems running any other version.
The intersystems documentation gives the same description for both <MAXSTRING> and <NETWORK DATA UPDATE FAILED - MAXSTRING>. I suspect that the description for <MAXSTRING> is correct and the description for <NETWORK DATA UPDATE FAILED - MAXSTRING> was an accident. I would like to know what situation triggers the <NETWORK DATA UPDATE FAILED - MAXSTRING> error.
I want to create a CSP page that returns a pdf. The pdf is identified by a pdftoken parameter.
My goal is to validate the token and return the pdf (ContentType=”application/pdf”) if the token is good and return a text error message "Bad Token" (ContentType=”text/plain”) if the token is missing or bad.
My issue seems to be associated with ContentType. I can define one ContentType that works for the pdf or the error message. I am unable to change the ContentType.
Any assistance is appreciated.
ClassMethod OnPage() As %Status { set pdfToken=$get(%request.
Hello everyone!
I have an abstract class representing the possible inputs for an Enum field, in the following way:
Class system.dto.sector.SectorStatusEnum [ Abstract ] { Parameter Active = 1; Parameter Inactive = 2; Parameter Production = 3; Parameter Upkeep = 4; }
I need to create a persistent class referencing the abstract class in the status field, so that the result of the operation is the same as the example:
Class datas.
Hi-
I have a class that specifies that streams should be stored in SSA.DocumentCacheS, however, they are getting stored in CacheStream instead.
How can I get streams to properly store in SSA.DocumentCacheS?
Here's the section from my storage definition that shows the StreamLocation
<DataLocation>^SSA.DocumentCacheD</DataLocation>
<DefaultData>DocumentCacheDefaultData</DefaultData>
<IdLocation>^SSA.DocumentCacheD</IdLocation>
<IndexLocation>^SSA.DocumentCacheI</IndexLocation>
<StreamLocation>^SSA.DocumentCacheS</StreamLocation>
<Type>%Storage.Hi Caché-Developers!
My Caché Version: 2014.1 and the CSP-Gateway Version ( + Apache) also. I can't upgrade now.
I want create a Web-Socket for my Chat like in that Tutorial:
https://community.intersystems.com/post/tutorial-websockets
And there's my problem. When I set SharedConnection like:
set ..SharedConnection = 1
I get on init connection with the server that message:
.png)
First i think everything is okay but here i also didn't get the Messages on init from Server-Side:
.png)
When I now send a message to the WebSocket, I got following error:
.png)
I know that collection is instance of %AbstractList.
But what about $listbuild? Does it possible to detect that given variable is instance of $lb?
I am glad to say that VSCode-ObjectScript reached 4000 installs. Thanks to all of you who use it in their work.
VSCode-ObjectScript is an extension for VSCode which allows you to develop InterSystems based applications on ObjectScript using the modern code editor developed by Microsoft. Choice #1 editor amongst all developers worldwide by Stackoverflow survey 2019.
Some short notes about how to install and configure it you can find here.
If you need any help with a migration process of your development team to VSCode, please contact us by info@caretdev.com.
Hi developers!
When @Evgeny Shvarov announced the first InterSystems IRIS Programming Contest, I started looking for new ideas.
I put together a few ideas, and that's what isc-utils is about.
Temperature Scale Conversion
IRISAPP>write ##class(diashenrique.Utils.Temperature).CelsiusToFahrenheit(28)
82.4
IRISAPP>write ##class(diashenrique.Utils.Temperature).CelsiusToKelvin(28)
301.15
IRISAPP>write ##class(diashenrique.Utils.Temperature).FahrenheitToCelsius(82.4)
28
IRISAPP>write ##class(diashenrique.Utils.Temperature).Hi Developers!
Create Database, Namespace, REST Applications using Portal Management is an easy task. You just need a few clicks or maybe more clicks than you expect.
But, what if you traded all those clicks for a simple command-line ?!
IRISAPP>do ##class(diashenrique.Utils.GenerateDB).CreateNewYou just need to answer a few questions:
Do you want to create a new Database/Namespace? (Y/N) :
Choose your Namespace name :
Choose the Dataset location <Path Default is mgr directory> :
Make this an Interoperability namespace?This code snippet changes all passwords in a system to a specified string. The two literal strings at the beginning of the snippet can be adjusted to edit the system or password string. The class method "test" runs the code:
Class eduardlebedyuk.changePasswords Extends %RegisteredObject
{
ClassMethod test()
{
set ns = $namespace
zn "%SYS"
set NewPass = "NewPassString"
set rs=##Class(%ResultSet).%New("Security.Users:List")
set st = rs.Execute()
while rs.Next() { set st=$SYSTEM.Security.ChangePassword(rs.Get("Name"),NewPass)}
zn ns
}
}
(Originally posted on Intersystems CODE by @Eduard.

DISCLAIMER: I am not an InterSystems engineer or a professional ObjectScript developer.
I just want to share my opinion about some things I am really miss in ObjectScript.
I really appreciate everyone who support my project (Declarative ObjectScript) in contest
but the post is not about "why you should support me" on contest.
I faced with ObjectScript in the university while was working on my diploma (in 2013).
Very good mentor @Evgeny Shvarov helped me to get started with ObjectScript development.
Hey Developers,
New "Coding Talk" video was specially recorded by @Maks.Atygaevfor the IRIS Programming Contest:
Starting in March 2020, Microsoft plans to release a series of security updates that will cause Windows Active Directory (AD) servers to reject unencrypted simple binds. For more details on the changes to Active Directory, see Microsoft’s Security Advisory ADV190023.
Instances of all InterSystems products using LDAP with Windows AD servers for user login can be impacted if they are not already properly configured to use TLS/SSL. The impact is not limited to instances running on Windows versions.
Hello,
We're considering adopting the ZPM solution as a way to manage many of our customer updates. However in order to do so we need to know a few things.
Hello,
We have been reasearching how could we parse a string with a JSON structure like the following:
{"code":200,"type":"Consulta","message":"Operacion correcta","result":[{"id":38802130,"paciente":null,"prestacion":{"codigo":"1.