Question sansa stark · Sep 20, 2016

Hi All,

         The onHTTPHeader using for redirect body statement.but this not support cache 2016.

     This method return the following text.

�Xmw�:�ܜ��0��-��4�ܒ&��Ro)�����XA�D���=����6༴��������h4#���\�d��iH�Լ'K�Y��P8��juf׾��=<����+6�#�w�9��!�\��'�dK*O����a�a��7��@&\�ǰ�?�=Az(���^�+IU((�2�����n^N��#��SP�i��Q��!d��0a��A �Ѫ��%&��׉�@��o�)���"���Jy��̄��ԝ�#��� \$.[������R�!���K���G�{�c��׺���r�w�P�?�g�w�녫��Y[0һ�����ly~w�[�������?�������ߟ?_N���ym|k��ϟD�Z�pt�����C����M٧�&&�b���0.�����f��d�ŚPx�ԣ )} +�q���^&�'�8�Ȕ0�����(�'����C"���5�n�p���}�]

4
0 410
Question sansa stark · Sep 20, 2016

Hi all,

         In CSP page we get data from Class via Query method.

         <TD valign=top>#(DEOBJ.Get("Comments").Read())#</TD>

         The problem is we couldn't get the stream property value.

        (Property Comments As %Stream.GlobalBinary)

Thanks,

sansa.

         

2
0 398
Question Michael Broesdorf · Sep 19, 2016

Do you have any experience / recommendations / best practice on how to update server-side data residing in a Cache database via a REST service?

A naïve approach would be to send a full JSON representation of the data object via an http POST to a method on a REST handler class: 

<Route Url="/mydata/:id" Method="POST" Call="Update"/>

The problem I see here is, if only one of the data object's properties has changed, how do we know which? Or do we simply overwrite all properties? 

3
0 665
Question Jenna Makin · Sep 19, 2016

Hi-

This almost seems like a silly question, but I am new to REST services.

I have a rest service that has a method for adding records to my database. 

<Route Url="/userdetails" Method="POST" Call="SaveUserDetails"/>
 

My REST client sends data using json in the body of the request.  I have verified using debugging tools that the data is actually being sent.

On the server side in my SaveUserDetails method where do I find the json?

What is the proper way to serialize that json into an object?

2
0 1588
Question Jason Ip · Sep 12, 2016

Right now I have a developer/free version of Cache 2016.1 on my local dev box but it doesn't have Ensemble installed, is there a way to get Ensemble?

After having gone to the 2016 Global Summit I want to play around with it on my own and see what it's capable of.

Thanks

7
0 940
Question Rustam Ibragimov · Sep 17, 2016

Hello, guys.

Say I have two horologs or timestamps, how can I compare them? I know that just time1 > time2 doesn't work because it will compare them as strings which is not correct. 

6
0 3283
Question Neeraj Mehta · Sep 15, 2016

I have been using the query below and it was working fine but now it's giving a SQL error. There were no changes made that could cause this to stop working. There is no Field 'APPLICATIONID' in the table.

QueueSQL=select distinct (convert(char(5),SkillsetID)+'='+Skillset) from iagentbySkillsetStat where ApplicationID > 10000
QueueMappingSQL=SELECT DISTINCT (convert(char(5),SkillsetID)+'='+Skillset), SkillsetID FROM iagentbySkillsetStat iagentbySkillsetStat WHERE (iagentbySkillsetStat.ApplicationID>10000)

DB- Intersystems Cache

Error details for the log files are below.

14/09/2016 11:20:05 a.m.
6
0 4438
Question Eduard Lebedyuk · Sep 16, 2016

Let's say I have a global named ^a and I need to export its nodes 1, 2, 3, 5 only.

Currently I write something like this:

Write $SYSTEM.OBJ.Export("a(1).gbl,a(2).gbl,a(3).gbl,a(5).gbl", "C:\Users\eduard\Desktop\a.xml")

Is there a way to write it shorter? I want to write global node once and list all the subscripts I need.

1
0 774
Question sansa stark · Sep 14, 2016

Hi,

  I was set one session in user namespce (%session.Data("sup")="login User ").but i couldn't get this session(%session.Data("sup")) in  another namespace.

Cache version:cache 16

but i can acces in cache 5.02.

4
0 1153
Question Ponnumani Gurusamy · Sep 15, 2016

I got a input to user . How to I print the input in another method

ClassMethod sample() As %String
{
Set Name=##class(Eam.Empdetails).%New()
"enter your name :",NameStr
Name.EmpName=NameStr
"enter your address:",NameStr1
Name.Address=NameStr1
"Enter your Phone number:",NameStr2
Name.PhoneNo =NameStr2
"Enter Your Id:",NameStr3
Name.id = NameStr3
set status = Name.%Save()
}

3
0 587
Question sansa stark · Sep 15, 2016

Hi All,Cache is not starting ,I checked the cconsole log it is showing the below error. The following parameters are missing from section [Journal]: '2,12' at line 143,but i checked in last cpf file, In cpf file consist of that particular line [Journal] AlternateDirectory=C:\InterSystems\CACHE16\mgr\journal\ BackupsBeforePurge=2 CurrentDirectory=C:\InterSystems\CACHE16\mgr\journal\ DaysBeforePurge=2 FileSizeLimit=1024 FreezeOnError=0 JournalFilePrefix= JournalcspSession=0

2
0 436
Question Paster-Bachar Gadi · Sep 12, 2016

Hi All

I have a BP which has a transformation. 

when I run the process I end up with the following error: 

----

ERROR <Ens>ErrBPTerminated: Terminating BP Propirion.BP.GetServices # due to error: ERROR <Ens>ErrGeneral: Object is immutable
+
ERROR <Ens>ErrGeneral: Object is immutable 

----

I have created a context named : HL7Message  type of: EnsLib.HL7.Message  and in the start of the BP assigned the request to it  (using set in assigned activity)

What did I miss ?

Thanks 

Gadi

2
0 1180
Article Jonathan Schulman · Sep 14, 2016 4m read

A “Dummy” SOAP Web Service

When dealing with SOAP in Caché, it is sometimes necessary to debug errors by directly accessing (and sometimes editing) the XML which is sent, i.e. the SOAP request and subsequent SOAP response. If you’re debugging a Caché web service, it is often useful to use a tool such as SoapUI (https://www.soapui.org/) to manually create and control the SOAP request, so that the effect of adjustments can easily be seen on the Caché web service.

But what if you have a web service (possibly not Caché), and you want to debug the associated Caché web client?

0
1 4131
Question Ponnumani Gurusamy · Sep 7, 2016

Caché Application Developer certification:

How to I prepare developer certification of cache .What are the topics are preparing certification . Please give the topics .I will start learning of certification course .

3
0 1716
Question Marek Bernád · Sep 12, 2016

Hello community,

Is there a way in Caché to trigger some method when any class changes? For example, if I edit any class in any namespace, when I save this class I want some method to be triggered with the class name parameter or any available data about the class.
Concretely, I tried to add a %OnAfterSave() callback to the %Dictionary.ClassDefinition  class, but this method is not triggerred when any class saved as I expected. I am writing a project in Caché and the purpose of my project is to show editing history of the edited classes in the Caché studio.

Thank you in advance for your response.

2
0 656
Question Paster-Bachar Gadi · Sep 7, 2016

Hi

 
I'm looking for help with the LDAP adapter.
 
Beside the ensemble documentation does anyone has some "hands on" experience (e.g. production examples) with 'connecting to'  and 'updating data' in the AD?
 
Thanks 
Gadi 
6
1 899
Question Douglas Foster · Aug 10, 2016

@Mike Kadow and I are both having this issue.

When editing a post and trying to insert a link, I use the Internal link type to link to a different post.  I am able to search for the page and get the page name to show up in the dialog box, but then the "ok" button is non-responsive.  I can cancel properly.  If I change the link type to URL and paste in the full URL of the page, I can click "ok" and it will save the link.

I have tested this by trying to edit an existing link that is Internal, and while the dialog opens and shows the proper page in the internal link, the "ok" button is

2
0 290
Question Jose Antonio Cañizares · Sep 9, 2016

Hi all,

Do anyone know how to force to close the CSP connection used before redirecting to a different page so a new connection ( and therefore a new session id) is generated?

The idea is to generate new CSP session once we log off our application so the session identifiers are different.

Best Regards

4
0 608