Vivek Ranjan · Nov 24, 2017 go to post

Thanks @Robert Camper. 

If the DATEPART() always takes logical mode value irrespective of display mode selected in SQL query viewer, I was wondering there is implicit conversion of  Timecreated Column(column1 in abobe example) to the mode selected in SQL query window.

Vivek Ranjan · Dec 10, 2017 go to post

I tried your quey and it ran successfully.

SELECT * FROM Config.IO WHERE ID IN ('1||1||9852553062' , '1||1||9852553061' ) order by 1 desc

The error you got seems very generic. Kindly check the table again.

The SQLCODE -400 error “Fatal error occurred” is a general error. It is generated when a more specific SQLCODE error code is not available. 

Vivek Ranjan · Jan 2, 2018 go to post

Works like charm in local windows machine.  I was trying to configure the same where the ensemble instance is hosted on Linux machine and there is no path for .net gateway service. 

There isn't any folder with dotnet where  DotNetGatewaySS.exe can be found.

InterSystems\Ensemble20162\dev\dotnet\bin\v4.0.30319

Vivek Ranjan · Feb 1, 2018 go to post

My question is whether .net gateway service can be used when you have to call class library(dll) on Linux hosted ensemble instance.

I know it's ridiculous to expect .net framework on Linux(can be done with .net core, mono), but how you can overcome a situation where complex logic is built in c# class and a dll is given to you for quick implementation.

Vivek Ranjan · Jan 8, 2018 go to post

Port 57772 is for local host. The remote hosted instance runs on port 80(xyz.x.edu)

Vivek Ranjan · Jan 8, 2018 go to post

IM Renderer Page

Cache for Windows (x86-64) 2017.1.1 (Build 111_0_17521U) Wed Jul 26 2017 13:08:05 EDT

Vivek Ranjan · Feb 1, 2018 go to post

Language integrated query is a concept where you tend to query data like SQL. My question about the same. I've given a simple example of c# LINQ at the top.

Vivek Ranjan · Feb 1, 2018 go to post

Would be good if we get this for Object Script. May be better to understand how Atelier editor does format the code.

Vivek Ranjan · Feb 21, 2018 go to post

Task Type in UI is nothing but the Class in which you are wrapping your code.

Class Task.Classname Extends %SYS.Task.Definition

{

Set tSC ##class(Ens.Director).CreateBusinessService("service name",.tService)
If ($IsObject(tService)) {
   Set input ##class(service class??).%New()
   Set input.Value = 22
   Set tSC tService.ProcessInput(input,.output

}

}

Vivek Ranjan · Mar 22, 2018 go to post

Something like when you are inside a class, just right click on 'get related associated project' and get the all the projects which contains that class.

Idea is to add extra menu option on right click.

Vivek Ranjan · Mar 29, 2018 go to post

You can try referring the multiple jar files as list to  gateway.

Set AssemblyFileNameWithPath1="jar path 1" 

Set AssemblyFileNameWithPath2="jar path 2"
 Set gateway=##class(%Net.Remote.Gateway).%New()
 Set classpath=##class(%ListOfDataTypes).%New()
  Dclasspath.Insert(AssemblyFileNameWithPath1)

Dclasspath.Insert(AssemblyFileNameWithPath2)
 Set status=gateway.%Connect(Host,Port,NameSpace,10,classpath)

Vivek Ranjan · Apr 13, 2018 go to post

To make it more clear, I've a REST service which takes 'SOAP Request' in it's body and forward the request to SOAP endpoint. Now I have to call this service where I need to frame a SOAP envelope. I created the SOAP client and it can call only SOAP service(end point is a class with SOAP webmethod class). But in this case a SOAP envelop needs to be created to pass it to REST's POST.

Vivek Ranjan · Apr 13, 2018 go to post

The trace can be captured through outside app. I need the string to be populated in objectscript.

Vivek Ranjan · Apr 13, 2018 go to post

Well my question has to scoped within object script. Trying to find the way. How about creating the request using %XML.Writer.

Expected Output for class 'Myclass'

Class User.Myclass
{
Property Username As %String;
Property Password As %String;
 
}

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:s="http://www.w3.org/2001/XMLSchema">
    <SOAP-ENV:Body>
        <Myclass xmlns="http://www.xyz.com/test">
            <Username>123</Username>
            <Password>123</Password>
        </GetSecurityToken>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Vivek Ranjan · Apr 15, 2018 go to post

I guess the output is written to i/o device. Do we need to change the i/o device to store in variable. May be we can use ^SPOOL global?

Vivek Ranjan · May 16, 2018 go to post

Is it so. Before the SP is executed on target DB, the statement must be prepared and a exec statement is run in the below form. I am expecting this to capture.

exec pSPName '1', '2', '3'

Vivek Ranjan · May 16, 2018 go to post

Well, I am looking to capture this for analysis purpose. I need not frame those exec statement manually. 

Vivek Ranjan · Jun 12, 2018 go to post

I too faced the same problem when my PC host name changed. After deleting  cache.ids file it worked.