Users of analytical applications often need to generate and send out PDF reports comprised of elements of the analytical panel. In the InterSystems stack, this task is solved using the DSW Reports project that is an extension of DeepSeeWeb. In this article, we will explain how to use DSW Reports for generating PDF reports and emailing them.
Hi,
We have Mirroring established between NODE 1 & Node 2 . We have set the "cachesys" database enabled for Journalling. But we dont see the User Accounts , Roles, Resources created on Node 1 ( favoured Primary) reflected on Node 2 . Is creating them manually again is the only option for this ? . Is there any way to sync them or would adding %SYS to MIRROR a possible solution. Would it be great if anyone has faced this as we have an issue that during failovers Team is locked out .
Best Regards,
Arun Madhan
Is it just set varName = 1 or is there an actual true/false value?
Hi every body
I hope it's the right place & I'm not offending any body.
I'm a veteran Mumps/Cache/Ensemble programmer . I think my only draw back is my age, although my brain is still young & bubbly.
I'm looking a long time for work without success.
I gathered a lot of knowledge & experience during those long years , developed many projects & i'm ready to do any work only to feel useful.
I'll add my resume, I hope & wish that this post will bring some change as I'm desperate to get some work.
Thank you very much Simcha my email is shiluvg@gmail.
Hi,
We have a few projects and some of these projects share code "libraries". Some of which are persistent classes that are used by multiple systems. All these are currently deployed on Ensemble. We want to move some of the smaller ones to the cloud and make use of IRIS.
The challenge is that once we synchronise the code to IRIS from Atelier, then IRIS changes the storage definitions, which then creates changes to the files. We do not want to commit all these changes to git as it will happen again once someone synchronises with Ensemble.
I want to do some logic based on what environment code is running in. I can't find a built-in function to retrieve this so I'd like to write a custom function. Does anyone know of a command that would get the current environment?
Here is the function I'm writing:
ClassMethod getParticipant(iSendingFacility As %String) As %String [ Final ]
{
set a = $PIECE(iSendingFacility,"^",1)
set b = $PIECE(iSendingFacility,"^",2)
set sc1 = Lookup("ParticipantCodeMap",a)
if sc1 = "" {
set sc1 = Lookup("ParticipantCodeMap",b)
}
q sc1
}
For some reason when I try to run it I get the following error:
set sc1 = Lookup("ParticipantCodeMap",a)
^
<UNDEFINED>
I tried adding the the default parameter in case it's not finding it but it didn't help. What am I missing?
I just downloaded and installed the latest WebTerminal into my local copy of Healthshare 2016.2.1
I installed via studio and everything compiled without error.
However when I run it I just see a black screen. The help window at the bottom of the screen pops open when I type '/' but I just can't get any response.
Any suggestions as to how to trouble shoot this?
Mike
Hi!
You can insert an image in a post with via three ways:
1. Upload it from disk
Drag-n-drop image from your disk to a post and adjust the width after that.
2. Copy and paste from clipboard
Copy the image to a clipboard (Ctrl+C) e.g. from another web page or from any text editor and paste it into the post.
See how it works:
Hi
I am trying to make transofromation of one stylesheet containg some Javascript.
transform.TransformStream fails each time xslt contains javasript. Is there a way of making it work?
Arek
Hello everyone,
I want to fill data into my select component with sql request and parameter.
I tried to follow this example https://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KE…
I need to call a method because my parameter can be different. I tried something like this but it doesn't work...
ClientMethod changeParams() [ Language = javascript ]{var query = zenPage.getComponentById('categorieBeneficiaire');query.setProperty('parameter', 1, 'OS');querHello all...
Is there two matching patterns in Caché, is there a difference in use one or the other?
Example:
USER>set a = "(1234)"
Using $match.
USER>w $match(a,"\([0-9]{4}\)")
USER>1
Using literal match (sorry if not correctly term expression)
USER>W a?1"("4n1")"
USER>1
What is different from using one or the other?
The 'a?1"("4n1")"' does this pattern exist only Caché.
Exists performance improvement with use pattern Caché?
I can directly order over a MultiDimensional property, e.g.
set key=$order(obj.prop(key))
However I have a generic method that has to use the $property method, if I know the keys then I can just fetch a value with...
set value=$property(obj,"prop","key")
But if I don't know the keys then I am not aware of a solution to do this, e.g.
set key=$order($property(obj,"prop",key))
will not work.
There must be an internal solution as a zw command on obj is able to list all of the keys. I'm wondering if there is a $zu function or other trick that can do this. Any ideas?
Thanks,
Sean.
The phone number field for the PID segment was customized to send email address in PID 13.4. How can I remove the email address to map only the phone number to the PID 13.1 field?
PID|1||098456||PRINCESS^TUMBELINA^^^^||19011201|F||W|4382 POTATO DRIVE^^SUGARLAND^TX^74845^^^^980||7839854885^^^LILKIM5@OUTLOOK.COM|||S|NON|||||||||||||N|
Recently, a partner company started to develop an Angular client for their Cache application. Together, we decided to leverage the power of Caché dynamic objects to exchange JSON encoded data between client and server parts. However, we realized that currently there is a gap in Cache JSON implementation that prevents simple use of traditional registered and persistent classes to exposed their data with the same ease as with XML. I wrote a small JSON adapter, that does the job and bridgers the gap. It's purpose is simple expose data described by a regular Cache class in a one-to-one fashion to a %DynamicObject. On the other hand, when a serialized JSON data comes in, it can be easily deserialized into dynamic object and subsequently bound to regular class by the newly created adapter.
I think I already know the answer to this but I thought I'd ask anyway. So the Node.js adapter allows you to perform operations directly on Globals. Does the InterSystems.Data.CacheClient.dll or InterSystems.CacheExtreme.dll provide a mechanism to access Gobals directly or are you accessing globals via Caché ObjectScript classes?
Hello!
How I can convert html code symbols to readable format:
Керимбай Нурия
This code snippet uses %ZEN.Auxiliary.jsonSQLProvider. The namespace and string of SQL can be edited for different situations. The class method "test" runs the code:
Class eduardlebedyuk.passQuestionParams
{
classmethod test(pValue = 50) {
s ns = $Namespace
zn "samples"
s tSQL = "SELECT ID, Name FROM Sample.Person WHERE Id > ?"
s tPR = ##class(%ZEN.Auxiliary.jsonSQLProvider).%New()
s tPR.sql = tSQL
s tPR.%Format = "tw"
s tPR.maxRows = 100
s tParam = ##class(%ZEN.Auxiliary.parameter).%New()
s tParam.value = pValue
d tPR.parameters.SetAt(tParam,1)
d tPR.%DrawJSON()
//d ##class(%ZEN.Auxiliary.jsonSQLProvider).%WriteJSONFromSQL(,,,,,tPR) //same thing
zn ns
}
}
(Originally posted to Intersystems CODE by @Eduard Lebedyuk, 5/13/15)
Here's a link to the code on GitHub
I have a ZEN page with nine tablepanes. Each tablepane queries a table in the same SQLServer db. I have a single SQLGateWay(odbc) to this SQLServer db. I need to get better performance when I query all nine table at the same time. Would my performance improve if I had nine SQLGateWays(nine odbc configurations/connections), one for each query? I would appreciate any and all suggestions for getting the very best performance when using SQLGateWays. Thank you.
I have created a view to stage some data in a different format and then want to reference that view in a SQL query from a table that filters the data from the view using a property of the table.
Example:
select
MsgId,
FileName,
(select
ReportName
from
custom_view
where
MsgId = ReportId
) as ReportName
from
main_table
Is this even possible? When I try this, I get an error table not found for the view?
David
All responses are appreciated. I am new to both scripting and CACHE so please bear with me. I am setting up a nightly backup script for freezing cache then backing it up and then thawing it back out. Currently when I enter the freeze command I am getting a response of access denied even though my id has %all access. I've tried passing the userid/password as a parameter in the externalfreeze command and passing it from a file. I've used my id and lastly I used the _system id in the file. What ID should I use for this or am I passing it wrong?
sample 1: .
Is there a way to use linked tables between 2 discrete Cache databases or is linked tables just for access to an external RDBMS?
David
Hello, our Team is trying to develop Ensemble DTL to transform incoming X12 files into persistent data records. We created a persistent class and we can insert data using SQL. We tried to verify that %Save() gets called by adding %AddToSaveSet() method to persistent class and there writing to a global. We had to extend our persistent class with Ens.VDoc.Interface class or we could not see %Save() being called from Ensemble DTL. We suspect that %Save() gets some kind of error. We tried to debug by overwriting Transform() method in our DTL class.
All,
Recently, a Cache 2017.2.2 system started printing “28” rather than clearing the screen when doing a “W #” in programmer mode.
Does anyone have any idea how this could happen?
This should clear the screen, but doesn't:
XXXX:YYYY>W #
28
I would like to know how to choose the "Development" installation type in silent mode.
When performing a normal installation:
Please review the installation options:
------------------------------------------------------------------
Instance name: CACHE
Destination directory: /cache
Cache version to install: 2015.2.1.705.0.17420
Installation type: Development
When I perform a silent install:
Please review the installation options:
------------------------------------------------------------------
Instance name: CACHE
Destination directory: /cache
Cache version to install: 2015.2.1.705.0.
Hi,
I ran the Cache ODBC Driver installer as Administrator on my Windows 7 PC this morning. It completed successfully with o indication of any issues. When I check installed programs and features via Win 7 Control Panel, I see it listed as Intersystems ODBC Driver 1.00.000.
However, when I try to configure the driver via Control Panel - Administrative Tools - Data Sources (ODBC), I cannot find it. The only driver listed under the Drivers Tab is SQL Server.
I am not sure how to proceed.
I appreciate any suggestions.
Thanks,
Bill
In our language we have scandic letters like ä (a with two dots on it).
In Angular we use login like this:
let headers = new Headers();
password = Base64.fromBase64(password);
headers.append('Authorization', 'Basic ' + Base64.encode(username + ':' + password));
let options = new RequestOptions({ headers: headers, withCredentials: true });
return this._http.get(_param.baseUrl + this._loginUrl, options)
.map((res: Response) => {
It works, but not with these letters.
Hi All,
I need some help with sending PDF files to printer using cache instead of using third party tools(Adobe, foxit reader, etc..).
Sometime i getting access issue with the exe files.
Can able to send text data to printer using below code.
Set Dev="|PRN|PrinterName"
OPEN Dev:(/DATATYPE="TEXT"):80
USE Dev Write "Test printing",!
CLOSE Dev
Any suggestions on sending PDF to printer?
Method1(){
Set OID1=##class(Table).%OpenId(100)
// do Kill OID
}
&SQL(Update Table Set Column=88)
Method2(){
Set OID2=##class(Table).%OpenId(100)
// Or do %Reload()
Set OID.Column=99
Do OID.%Save()
}
// Column 1 still holds value as 1
For getting the updated value I should do Kill OID in Method1
Hi,
How to code the client and what all we have to code and set on server?
