Thanks for all replies in advance.
Is it possible to modify a users security from a batch script? If it is possible can someone point me to some examples or documentation?
An object data model is that data or code is composed of modules that combine data and procedures that work on the data.
Thanks for all replies in advance.
Is it possible to modify a users security from a batch script? If it is possible can someone point me to some examples or documentation?
Hi
I have been working on changing a web application from using %FileBinaryStream to storing and serving the file content from a %Stream.GlobalBinary property, stored in a new database. I have managed to migrate the data across, and have also been able to redirect the stream so that it is being served through the web link. However, the previous method set attributes on the File stream to have the stream be rendered as the original file type through MIME, using this code
This method is not supported by %Stream.
Hello, guys.
I need to copy the text from one stream to another filestream and save it. I am using
do fileStream.CopyFromAndSave(rtn.Code)
However, if "rtn" stream contains Russian characters I get something like "???". Is there any way to convert stream to Unicode? Something like $zc(str, "O", "UTF8") for streams.
Hi all,
We're creating a series of RESTful APIs that output data from a Cache database (made up of global storage that we've mapped to classes). I'm running into some problems with object-to-JSON conversions when relationships are involved.
Is the possible for Multiple Streams using in single method?
Hi All,
We are Using Ensemble 2014, Windows Server 2012 64 bit operating System.
We need to sense whether Htpps is alive or not.
In Cache we tried %HttpsRequest Library we set https property and port=443. But it doesn't work.
Anyone help us plz.
Thanks, Sansa
We're developing Ensemble PoC and one day our frontend developer (who doesn't have Ensemble production running) said that Populate just doesn't cut it and he needs to see the real data. He needed only one object, but the problem was - it's a big object. Still, I checked ids of everything related and wrote this command (parts omitted, but you get the idea):
w
$SYSTEM.OBJ.Export("project.model.contract.ContractD(6456).gbl,project.model.coA7F9.ObjectAddressD(6741).gbl,project.model.meter.DeviceD(23398).gbl,project.model.StatusHistoryD(7977).gbl,project.model.StatusHistoryD(48006).gbl,project.I get a input from user.How to I retrieve the data from these input. I enter the program but its occurred Some error .So give an idea of how to retrieve the data from properties.
ClassMethod Getvalue()
{
S Details = ##class(Sample.Employeedetails).%New()
r "Enter Your Name:" , Name1
s Details.Name = Name1
r "Enter Your Address :", Address1
s Details.Address = Address1
r "Enter your Phone Number:",Phonenumber1
s Details.Phonenumber = Phonenumber1
r "Enter your Blood Group:", Bloodgroup1
s Details.Bloodgroup = Bloodgroup1
r "Enter Your Desination:",Desiation1
s Details.
Hi,
The OnHTTPHeader method not support in cache 14 but it support cache 13.
OnHTTPHeader(ByRef OutputBody As %Boolean) As %Status [ ServerOnly = 1 ] this method return Some special character.
Thanks,
sanasa
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.
Hi all,
In CSP page we get data from Class via Query method.
The problem is we couldn't get the stream property value.
(Property Comments As %Stream.GlobalBinary)
Thanks,
sansa.
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()
r "enter your name :",NameStr
s Name.EmpName=NameStr
r "enter your address:",NameStr1
s Name.Address=NameStr1
r "Enter your Phone number:",NameStr2
s Name.PhoneNo =NameStr2
r "Enter Your Id:",NameStr3
s Name.id = NameStr3
set status = Name.%Save()
}
What are the difference between method() and ClassMethod() in Cache Class definition
Listout the Difference between Cache object script and Mumps
Below object creation is correct or not .Suppose wrong as how to get the values to user.
Set Name=##class(Example.Team1).%New()
r "enter your name :",Name.EmpName.
r "enter your address:",Name.Address
r "Enter your Phone number:",Name.PhoneNo
r "Enter Your Id:",Name.id
set status = Name.%Save()
How to I add a data in properties and what are the relationship with properties and methods . How to use a properties in method and properties to add a data or object.
Hi ,
We upgraded the cache 5.02 to cache 16.
we are using stream property in one class .(i.e. Property notes As Stream;) but it not support in cache 16.
how handle this problem?
Thanks, sansa.
Why we are not using database of join (inner join and outer join) concept. How to we are retrieving the data from different tables in cache. Any Concepts are using in Cache database to retrieve the data.
Hi ,
We upgraded cache 5.02 to cache 16.In this version it is having problem with "$$$" macros.
These are the error's eating my time. i tried to figure it out but there is no exact solution .
MPP5610 : Referenced macro not defined: 'CSPSessionTimeout'
MPP5610 : Referenced macro not defined: 'CacheError'
I checked the check list also "These macros will be the only ones displayed by StudioAssist when the sequence, “$$$”, is recognized during program input. The full set of macros and their definition can be displayed via the $SYSTEM.OBJ.Dear Colleagues,
Recently I am working on a Cache project should enable the customer, to update our Cache application independently from us. Our idea is a client (preferred .net) application that will copy all the necessary Cache stuff (classes, routines) into a cache database. For this, we are looking for the appropriate technology – in old times this would be a CacheDirect.
Hello, guys.
Is there a way to get all object properties, parameters and so on and put it inside a string. I know that I can use
zw obj, but this does not work if I want to put it inside a string.
Hello Fellow Cache Developers:
Has anyone ever created an index on values of a list property? If so, would you be willing to share an example?
Also, feel free to offer input and suggestions regarding use of indexes on List values.
I know that Cache files can be stored as XML and UDL based files. Is there any way to determine in which format the file(class, routine, dfi and so on) is stored? Because you can easily name your XML based file as class.cls and it will be perfectly valid.
I know that one way to check whether this file is in XML format is just try to parse it like
Set st = ##class(%XML.TextReader).ParseStream(contentStream)
if $$$ISERR(st) return $$$NO
else return $$$YES
However, is there a better way?
Hello, guys.
I need to find all web files, get their content in UDL format and to be able to export them. And, vice versa, to be able to import them in udl format.
I know that they are located in CSP folder. However, is there any way to do this using COS functions?
Hi -
I have 3 classes: "Class A" has a property X, "Class B" has a property which is a Class A, and I have a "Class C" which has a property of a Class B.
Class A definition
Class USER.ClassA Extends %Persistent
{
Property Propx as %String;
}
Class B definition
Class USER.ClassB Extends %Persistent
{
Property Record as USER.ClassA;
}
Class C defintion (which is where I'm having my problem)
Class USER.ClassC Extends %Persistent
{
Property BRecord As USER.ClassB;
Property ARecord As USER.ClassA [ Calculated, SqlComputeCode = { ????? }, SqlComputed ];
Method ARecordGet() as USER.ClassA
{
quit .
I ran %GSIZE and my ^cacheStream global is very large. How do I go about
1. Evaluating what data is in the global.
2. Clean it up.
Thanks!
Is there an API I can call to determine the size of a routine in a CACHE.DAT file so that I don't have to directly reference the ^ROUTINE global?
Difference Between Macro and routine?
Process-private Globals can be used as a data global in storage definition. That way, each process can have its own objects for the class with ppg storage. For example lets define a pool, which can:
Here's the class:
/// Stores unique identifiers
Class Utils.Pool Extends %Persistent
{
Property Value As %String;
Index IDKEY On Value [ IdKey, PrimaryKey, Unique ];
Method %OnNew(Value As %String = "") As %Status [ Private, ServerOnly = 1 ]
{
Set .