Hi team,
i send an http request to my rest class, i want to extract ID , full name , pass word from this request , can you show me how doing it.
thank's
InterSystems Caché is a multi-model DBMS and application server. See more details here.
Hi team,
i send an http request to my rest class, i want to extract ID , full name , pass word from this request , can you show me how doing it.
thank's
I defined the variables in Cache, as follows:
Property Content As% Stream.GlobalCharacter [Required, SqlColumnNumber = 3, SqlFieldName = B_Content];
And then use the SQL statement to add:
insert into table_name (B_Content) values ('very long string');But the error:
Apache Spark has rapidly become one of the most exciting technologies for big data analytics and machine learning. Spark is a general data processing engine created for use in clustered computing environments. Its heart is the Resilient Distributed Dataset (RDD) which represents a distributed, fault tolerant, collection of data that can be operated on in parallel across the nodes of a cluster. Spark is implemented using a combination of Java and Scala and so comes as a library that can run on any JVM. Spark also supports Python (PySpark) and R (SparkR) and includes libraries for SQL
Greetings to all!!!How to get the value of the Content-Type field from the object of the class %Stream.Object obtained with:
stream=% request.GetMimeData (FormDataName, 1)I tried:
write stream.GetAttribute("Content-Type")write %request.Get("Content-Type")
but always returns a void, although it should be "image/jpeg", "application/pdf" or something like that.
In JS:
var formData = new FormData(); formData.append('file', element[0].files[0]); console.log(element[0].files[0].type);
The console of browser displays "image / jpeg", "application / pdf", etc.
Looking through Mirroring routines sources, I've noticed these terms, while even the latest documentation keeps silence on them. I'm just curious what are they, and how to configure / to use them?
Greetings to all!!!Suppose there is a table Mother (ID, Name) and Child (ID, Name, Mother), Mother in the table Childis a relationship.Let's say the task is to deduce the names of all the children whose their moms' names start with the letter 'A', I can do this in two ways in sql, and I can not understand the difference, the pros and cons that when to use:
1) SELECT Child.Name FROM Mother INNER JOIN Child ON Mother.ID = Child.Mother WHERE Mother.Name LIKE 'A%'
2) SELECT Child.Name FROM Child WHERE Child.Mother->Name LIKE 'A%'
I have two databases, and both of them have a global ^Data with subscripts going from 1 to 10 000 000.
I want to get one database with global ^Data but with subscripts going from 1 to 20 000 000.
Since each db is around 100 Gb and they are on a different hosts, what's the best way to merge them?
Hi all,
Is there a way to setup a classmethod or routine to execute immediately after cache is started?
I wrote a batch file that does execute the cache start, but I'm getting an Access Denied error on the cession command despite running as Administrator:
ccontrol start HEALTHSHARE1
csession HEALTHSHARE1 -U %SYS "##class(SomeClass).SomeMethod()"
Thanks for the help/suggestions
Hi,
I am getting the following error while logging in using LDAP authentication,
"An error occurred with the CSP application and has been logged to system error log (^ERRORS)". I've set the connection up and using Authentication Test was successful. I seem to be able to login as well but keep getting that error. If I allows unauthenticated access then the page works but changing it to LDAP is not working.
The LDAP account once created in Cache has U access to the resource related with the web application.
Also, when I check the ^ERRORS variable there is no data there.
Kind regards,
Alice
I need to have both Cache and the Mirroring Arbiter startup when the HP UX system starts. Having not worked on HP UX much I am not familiar with the method for accomplishing this.
I would appreciate any information or even sample scripts that would help resolve this.
Example :
set property.Name = element.LocalName
set property.Type = "%Library.String"
set property.Parameters = ???
Hi,
I am receiving a CSV file as Ens.StreamContainer using pRequest As Ens.StreamContainer
In the studio code, pRequest.Stream.ReadLine() returns following records when read in a while loop using pRequest.Stream.AtEnd = 0
Appt ID , Patient ID , Patient Name , Program , Appt Date , Appt Start
102 , 1002 , "Gene, Jill" , HTR , 06/06/2017 , 10:00
103 , 1044 , "Smith, John" , HTR , 06/10/2017 , 08:00
Sometimes you can face the situation when you did update the web app on Caché server but you cannot get the newest version of the app in a browser.
Here are couple recipes which help me to solve it. From simplest to more sophisticated and not obvious.
1. Refresh page in a browser
In Chrome it is Ctrl+R or 'Refresh' button. Obvious, but helpful.
2. Hard reset in a browser
If you are in Chrome, open Developer tools
and then right click on Refresh button. Less obvious and very helpful sometimes.
3. Clear cache in CSP Gateway
If 1 and 2 don't work for you, try to flush the CSP Gateway cache.
Hi,
I have a class with around 400k lines and 60 columns. Class storage is Cache SQL storage (Mapped from a global).
I want to create multiple indices on certain fields.
I am familiar with two approaches:
1. Create a new map (Index type) on a pointer global.
2. Create a bitmap index
Which approach is more recommended to be used in the case I described? If there are any other approaches, I will be happy to hear.
Thanks :)
InterSystems is pleased to announce the availability of these maintenance releases:
Caché and Ensemble are available on the same platforms as 2017.1.1
HealthShare Health Connect v15.03 on core technology 2017.1.2.217.0
I have a class. In class there is an index. This index is for quick search on name property.
Class User
{
.....
Property Name as %String;
Index NameInd On Name;
.....
}This class is mapped to some global ^GL(userId) = "Name*other data....****"
And there is also index global ^GLNameIndex(Name, userId) = ""
When I add new User entry through class, f. i.
S user = ##class(User).%New() S user.Name = "Some name" D user.%Save()
calling method %Save() adding new entry to index automatically.
And this way index ^GLNameIndex is always actual.
InterSystems is pleased to announce the release of Caché, Ensemble, and HealthShare Health Connect v15.03
Some highlights for Caché and Ensemble are:
I have a method would return %Status,
this method would run some sql queries and if the execution of these queries fail, I would like to return asap.
So how could I wrap the %SQLCODE into a %Status variable?
Thank for your help.
Hello,
I've been manipulating XML objects via Cache, but have had some difficulty understanding how to use the following method detailed within EnsLib.EDI.XML.Prop:
Method choiceGetCount(Output pCount, pDOMPath As %String, pRef As %String) As %Status
From what I've read when walking through the code for this method, it appears to count a listing of repeating XML elements. However, despite my attempts to search for examples or attempts to implement this function, I am unable to do so.
It was my answer to the question appeared in GoogleGroups. And when I answered there I figured out that it might worth to post an article and to add some light on how Unicode is stored in Caché.
I setup an account in Cache and when I try to sort the dictionary item in the file by using the command SORT DICT filename, where filename is the name of the file i.e. SORT DICT TEST, I get the following error CMQL: The DICT entry "FIELD.ASSOC_" is not defined
The LISTDICT works correctly. Any thoughts on how to correct this error?
As I mentioned in an early post the roots of COS were laid in the late 60ies of the 20th century.
Close to that time, BLISS was designed at Carnegie-Mellon University (January 15, 1970)
https://en.wikipedia.org/wiki/BLISS
Similarly in 1972 C language was written at Bell Labs.
https://www.bell-labs.com/usr/dmr/www/chist.html
Both were designed to overcome the portability limits of code written in assembly language.
While BLISS was running on DEC machines and vanished with Digital Equipment Corporation
C language and later C++ expanded on almost any processor technology until today.
Hi World
I've a problem when in extract a float value from my database
the problem is that i get an interger instead of float.
my record is 2,56 but when i do a select , the request extract only 2
can you have a solution for it.
thank you
I want to call ZenMethod when page is closing. Is it possible?
I tried
ClientMethod onunloadHandler() [ Language = javascript ]
{
zenPage.SomeZenMethod();
}
Method SomeZenMethod() [ ZenMethod ]
{
// to do some work
}
but it is not working
Hi, Community!
Say you have a standalone Caché server on Linux (E.g. Ubuntu) (no mirroring) and you have sudo access via ssh.
What is the easiest, safest and simplest way to upgrade Caché to the new release?
How do you do this?
HI,
I have a query like below but its syntax is not accepted by Cache.
I would like to perform a left join on two tables first and then make a inner for this result with another table.
Given the constraint that we only allow one SELECT in the query, it is possible to achieve this semantics ?
Thank for your help.
Select *
FROM ( sample . employee e
LEFT JOIN sample . company c
on c . id = e . id ) g
JOIN sample . vendor v
on v . %id = g . attr
I am trying to read a csv file and transfer it to a XML file without storing the objects to a database I have this code here doing the reading and have another method transferring the object read to a file but the reading one reads fine when it comes to the converting one I run to problems nothing happens any help appreciated
Hello again and welcome to the next tutorial on this series: Part 4 - Sharing data across router methods. Here we are going to learn how to share a object containing data that is available for read across every router methods.
You're required to complete at least the Part 1 before entering this one. Still, this is supposed to be a really short tutorial, since there isn't much to be said about data sharing.
Hi Community,
There is any way that I can use Studio Source Control in Atelier, or adapt it to use?
We have a solution based on Studio Source Control, and I cannot make it works with Atelier, I can not even see the classes .
Thanks,
Andrei L. Nenevê
AI can be categorized in any number of ways, but here are two examples.
The first classifies AI systems as either weak AI or strong AI. Weak AI, also known as narrow AI, is an AI system that is designed and trained for a particular task. Virtual personal assistants, such as Apple's Siri, are a form of weak AI.