Try:
CHCP 65001in the beginning of your script.
Also you need to check that your console font has required symbols.
- Log in to post comments
Try:
CHCP 65001in the beginning of your script.
Also you need to check that your console font has required symbols.
Would process user not cut it?
You can later convert it into app user if you have 1:1 matching.
It would work faster than getting local variables.
Do you want to convert XML into Cahce object? If so, check this docs on how to project XML into objects.
Do you want to get some value(s) from the XML? If so, check XPATH docs.
Do you want to convert XML into another XML? If so, check XSLT docs.
If you just want to pass XML as string, you can pass it as is.
Some general advice:
This seems to work for me:
set x = "%sqlcq.something.value.foo"
write x?1"%sqlcq".EThat said, I assume you're iterating over some list of classes. If so, it may be better to add this or equivalent condition to the builder of the class list. If you do it via SQL and %Dictionary package, then excluding System classes, or generated classes or even classes that %STARTSWITH '%sqlcq' may be a better solution.
I thought you could.
Use REST client. Check this article.
Any particular reason to prefer:
$system.Dictionary.comMemberKeyGet
over
$$$comMemberKeyGet
?
Please modify your answer to point to InterSystems online documentation.
You can easily develop your own custom function. Here's an example of a custom function which checks that the number is valid.
/// Functions to use in rule definitions.
Class Custom.Functions Extends Ens.Rule.FunctionSet
{
/// Returns 1 if a string is a number, 0 otherwise
ClassMethod IsValidNumber(string As %String) As %Boolean [ CodeMode = expression, Final ]
{
$ISVALIDNUM(string)
}
}COS Faker is for generating random data.
I'm more interested in meaningful initial data.
Download them from wrc.intersystems.com

Are you using EnsLib.FTP.InboundAdapter?
Deletion happens after file is processed.
What error are you getting?
File size absolutely should not affect deletion result.
Two ways to solve this error:
You can have a device which holds the connection and read from it when you want to.
#) I know websocket server works from the browser client, just not from Cache client.
#2) I do not have control (or even dev access) to the websocket server. It's not Cache-based through.
Looks like there's a character stream somewhere. You should always use binary streams to upload binary data such as images, PDFs and so on.
First of all you need to understand where the problem is: on sending or on receiving.
To do that upload PDF using your BO and download it from AWS website manually (using your browser). If you can open downloaded file, then it means that your upload code is correct and the problem is with download code. If you can't open the file it means that you need to check upload code.
Redefine HTTP adapter like this:
Class Production.Adapter.HTTPOutboundAdapter Extends EnsLib.HTTP.OutboundAdapter
{
Method PostURL(pURL As %String, Output pHttpResponse As %Net.HttpResponse, pFormVarNames As %String, pData...) As %Status [ CodeMode = expression ]
{
..SendFormDataArray(.pHttpResponse, "POST", ..GetRequest(), .pFormVarNames, .pData, pURL)
}
ClassMethod GetRequest() As %Net.HttpRequest
{
set request = ##class(%Net.HttpRequest).%New()
set request.ContentType = "application/pdf"
quit request
}
}And use it instead of default adapter.
For better performance it would be better to reuse the request.
Alternatively, you can call SendFormDataArray adapter method directly and it accepts request object.
Please provide sample code.
Please share the code from
%0AmBx1^%sqlcq.PRD.2249To do that open %sqlcq.PRD.2249 routine (int routine, afaik mac routine wouldn't have this )
If you can't find routines check that system saves sources for cached queries. If it doesn't set the setting to save routines, purge this query and run it again. After that you should be able to see the source.
Also can you determine which part of SQL causes this error?
Check Cache Security Administration Guide. And also this article.
Can I always use just DependsOn keyword?
What status does this line return:
set sc=conn.Connect("Production","username","password") Can you execute a trivial statement such as:
SELECT 1or (depenting on your target DBMS):
SELECT 1 FROM dualor is it the same error?
Thank you,. Alexander.
Really didn't think that it could be any undefined variable.
Thank you, Robert!
I'll file a prodlog (about the docs), so we'll see.
Yes, tested it in Ensemble 2017.2 and InterSystems IRIS 2018.1.
About everything quoted is a valid property name:
You need to do these three steps in order:
In can be done via ^DATABASE utility or in management portal.
Thank you, John!
Looks like it is exactly what I heed.
If you have an XSD, it's as simple as importing it and using imported classes.
If you do not have a schema, you'll need to either generate an XSD from XML (there are many tools online) or just plain create Caché classes and make them XML-enabled.
Documentation:
That said, is XML really a part of the url?