And here is the link https://community.intersystems.com/post/how-resend-large-number-messages-ensemble
- Log in to post comments
And here is the link https://community.intersystems.com/post/how-resend-large-number-messages-ensemble
Maybe it makes sense introduce sorting of answers based on votes in addition to current sorting based on time.
See, for example, reddit (https://www.reddit.com/r/javascript/comments/3u7l76/microsoft_wont_support_ie8_ie9_and_ie10_anymore/). Most voted comment is shown first, then most voted reply to this comment, etc.
The same on members list (https://community.intersystems.com/members).
Also, once new part is uploaded my browser scrolls to the top of list, so I need to scroll already shown items again.
Can you please provide more information about this utility. Google shows no results for query 'stzzpass'
For immediate help you should contact InterSystems‘ Worldwide Response Center (WRC) http://www.intersystems.com/services-support/for-immediate-help/
John,
I get the same error as you if I disable repo http://download.eclipse.org/releases/neon in "Available Software sites" in Settings.
Please check that you have this repo enabled.
Regards, Alexander.
FOLLOWS gives wrong result in some cases:
USER>set date1 = $zdth("2016-01-02 00:15",3)
USER>set date2 = $zdth("2016-01-02 01:00",3)
USER>zwrite date1,date2
date1="63919,900"
date2="63919,3600"
USER>write date1]date2
1
Caché Programming Orientation Guide explains this in details. Please read: http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=GORIENT_ch_classprog#GORIENT_classprog_method
Hi.
If this is urgent issue please contact InterSystems Support: http://www.intersystems.com/services-support/for-immediate-help/
Regards, Alexander.
You don't need to set DSTIME parameter in the secondary class.
However, OBJ.DSTIME and SynchronizeCube does not see changes in objects of secondary class.
That is the case mentioned as
The changed record is not in the extent of the base class used by the cube.
in documentation (http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=D2IMP_ch_current#D2IMP_current_overview_cannot_use_dstime)
For example, let's say that you have cube Person based on Sample.Person class.
And that class Sample.Person has property Job that references persistent class Sample.Company.
If you just modify object of Sample.Company as follows:
set p = ##class(Sample.Company).%OpenId(100)
set p.Name = "New Company Name"
write p.%Save()
Then this change will not be seen by SynchronizeCube and you'll need to update cube manually: http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=D2IMP_ch_current#D2IMP_current_manual_updates
Adding DSTIME parameter to the Sample.Company does not help as original cube Person is not based on this class.
Do you think it is worth adding post on how to ask questions? Something similar to https://stackoverflow.com/help/how-to-ask
Hi Ponnumani.
You cannot run class itself in Caché. You can run some classmethod of this class.
For example from terminal you can run classmethod 'PrintPersons' of class Sample.Person as follows:
USER>zn "samples"
SAMPLES>do ##class(Sample.Person).PrintPersons()
Name: Klein,Agnes E.
Name: Willeke,Imelda R.
Name: Vanzetti,Rhonda Y.
...
I encourage you to read "Caché Programming Orientation Guide". http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=GORIENT
Particularly it contains information on how you can use terminal to test your programs: http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=GORIENT_ch_devtools#GORIENT_devtools_terminal
Also please see http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=GCGI_win#GCGI_trouble
It references the " HTTP Error 503. The service is unavailable." error that you see
http://10.10.10.xx/csp/bin/Systems/Module.cxw is a system path to CSP Gateway Configuration. There should not be Systems folder in /csp/bin.
What error do you see when you open http://10.10.10.xx/csp/bin/Systems/Module.cxw?
I would suggest you to open
http://<ip_address>/csp/bin/Systems/Module.cxw
and check server connection.
If you cannot open this page, check that you have /bin url enabled in IIS: http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=GCGI_win#GCGI_url_bin
On Window 7 following works:
USER>w $zf(-1, "start http://community.intersystems.com")
0
Also, there are considerations for all IIS versions: http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=GCGI_win#GCGI_iisall
Sansa,
there is step-by-step guide under section "Recommended Option: Using Native Modules (CSPms*.dll)" http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=GCGI_win#GCGI_iisv7
Did you try that? If yes, what failed?
Internal documentation is very detailed about this: http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=GCGI_win#GCGI_iisv7
Hi Fernando.
By default it is $Increment, that is fine in most cases. You can use storage parameter IDFunction to modify this.
Regards, Alexander.
That is good question, Joel. I don't know why.
I can speculate that this is ^%SYS.MONLBL being not very accurate -- notice, amount of lines for example is not exactly 2'000'000. But that is just speculation -- I don't know for sure. Maybe someone who understands how this metrics in ^%SYS.MONLBL are calculated can comment.
I've just repeat the test on another system with Caché 2016.2 FieldTest and got pretty much the same results -- ~40 seconds with $Increment and ~5 seconds with $Sequence.
I compiled %Library.PopulateUtils with source code:
do $system.OBJ.Compile("%Library.PopulateUtils","ck")
And ran ^%SYS.MONLBL.
Call to FirstName took 31.62 for ten processes with $Increment. And 17.37 for ten processes with $Sequence.
Here is counts for FirstName when we use $Increment:
; Call to FirstName
11 1992818 8.744534 31.619480 set name = ##class(%Library.PopulateUtils).FirstName()
; Source code of FirstName
95 1983658 8.763054 8.776989 New list
96 1993042 3.019774 3.020288 s:$g(gender)="" gender=($zu(165,1,2))+1
97 1993392 1.112629 1.112751 If (gender = 1) {
98 1000154 1.411869 1.411946 Set list = $LB("Al","Alfred","Alvin","Andrew","Angelo","Aviel",
99 0 0 0 "Bart","Bill","Bob","Brendan","Brian","Buzz","Chad",
100 0 0 0 "Charles","Chris","Clint","Dan","Dave",
101 0 0 0 "David","Dick","Dmitry","Ed","Edgar","Edward",
102 0 0 0 "Elmo","Elvis","Emilio","Fred","Geoffrey",
103 0 0 0 "George","Howard","James","Jeff","Joe","John",
104 0 0 0 "Jose","Joshua","Jules","Keith","Kenny","Kevin",
105 0 0 0 "Lawrence","Mark","Mario","Martin","Marvin","Michael","Milhouse",
106 0 0 0 "Mo","Neil","Norbert","Orson","Patrick","Paul",
107 0 0 0 "Peter","Phil","Quentin","Quigley","Ralph",
108 0 0 0 "Richard","Rob","Robert","Roger","Sam","Stavros",
109 0 0 0 "Stuart","Ted","Terry","Umberto","Vincent",
110 0 0 0 "Will","William","Wolfgang","Xavier","Zeke")
111 998702 0.459684 0.460028 }
112 0 0 0 Else {
113 996337 1.426439 1.427385 Set list = $lb("Agnes","Alexandra","Alice","Amanda","Angela","Ashley",
114 0 0 0 "Barb","Barbara","Belinda","Brenda",
115 0 0 0 "Charlotte","Chelsea","Christine","Christen",
116 0 0 0 "Danielle","Debra","Debby","Diane","Elvira","Emily","Emma",
117 0 0 0 "Filomena","Frances","Gertrude","Greta","Hannah","Heloisa","Imelda",
118 0 0 0 "Jane","Janice","Jocelyn","Josephine","Juanita","Julie",
119 0 0 0 "Kim","Kirsten","Kristen","Kyra","Laura",
120 0 0 0 "Linda","Lisa","Liza","Lola","Lydia",
121 0 0 0 "Maria","Mary","Maureen","Michelle","Molly",
122 0 0 0 "Nataliya","Natasha","Nellie",
123 0 0 0 "Olga","Pam","Pat","Patricia","Phyllis",
124 0 0 0 "Rhonda","Roberta","Sally","Samantha","Sophia","Susan",
125 0 0 0 "Tara","Terry","Thelma",
126 0 0 0 "Uma","Usha","Valery","Violet","Wilma","Yan","Zelda","Zoe")
127 0 0 0 }
128 1981723 7.896435 7.902909 Quit $LI(list,($zu(165,1,$LL(list)))+1)
Here is for $Sequence:
; Call to FirstName
11 1862630 4.837207 17.372511 set name = ##class(%Library.PopulateUtils).FirstName()
; Source code of FirstName
95 1834226 4.289204 4.389613 New list
96 1902287 1.877691 1.891898 s:$g(gender)="" gender=($zu(165,1,2))+1
97 1925621 0.863039 0.865561 If (gender = 1) {
98 980468 0.815338 0.817548 Set list = $LB("Al","Alfred","Alvin","Andrew","Angelo","Aviel",
99 0 0 0 "Bart","Bill","Bob","Brendan","Brian","Buzz","Chad",
100 0 0 0 "Charles","Chris","Clint","Dan","Dave",
101 0 0 0 "David","Dick","Dmitry","Ed","Edgar","Edward",
102 0 0 0 "Elmo","Elvis","Emilio","Fred","Geoffrey",
103 0 0 0 "George","Howard","James","Jeff","Joe","John",
104 0 0 0 "Jose","Joshua","Jules","Keith","Kenny","Kevin",
105 0 0 0 "Lawrence","Mark","Mario","Martin","Marvin","Michael","Milhouse",
106 0 0 0 "Mo","Neil","Norbert","Orson","Patrick","Paul",
107 0 0 0 "Peter","Phil","Quentin","Quigley","Ralph",
108 0 0 0 "Richard","Rob","Robert","Roger","Sam","Stavros",
109 0 0 0 "Stuart","Ted","Terry","Umberto","Vincent",
110 0 0 0 "Will","William","Wolfgang","Xavier","Zeke")
111 969898 0.302964 0.306063 }
112 0 0 0 Else {
113 971397 0.836977 0.843322 Set list = $lb("Agnes","Alexandra","Alice","Amanda","Angela","Ashley",
114 0 0 0 "Barb","Barbara","Belinda","Brenda",
115 0 0 0 "Charlotte","Chelsea","Christine","Christen",
116 0 0 0 "Danielle","Debra","Debby","Diane","Elvira","Emily","Emma",
117 0 0 0 "Filomena","Frances","Gertrude","Greta","Hannah","Heloisa","Imelda",
118 0 0 0 "Jane","Janice","Jocelyn","Josephine","Juanita","Julie",
119 0 0 0 "Kim","Kirsten","Kristen","Kyra","Laura",
120 0 0 0 "Linda","Lisa","Liza","Lola","Lydia",
121 0 0 0 "Maria","Mary","Maureen","Michelle","Molly",
122 0 0 0 "Nataliya","Natasha","Nellie",
123 0 0 0 "Olga","Pam","Pat","Patricia","Phyllis",
124 0 0 0 "Rhonda","Roberta","Sally","Samantha","Sophia","Susan",
125 0 0 0 "Tara","Terry","Thelma",
126 0 0 0 "Uma","Usha","Valery","Violet","Wilma","Yan","Zelda","Zoe")
127 0 0 0 }
128 1839043 3.943282 4.006857 Quit $LI(list,($zu(165,1,$LL(list)))+1)
Lucy,
if you are using Studio for the first time, why did you start with copying system class?
Class Security.Users is in 'deployed mode'. You can see properties and method's headers, but you cannot see code behind the methods. The class that you copied Security.Users to -- UCDavis.Security.Users -- now is also in deployed mode.
More info about deployed mode: http://docs.intersystems.com/cache20161/csp/docbook/DocBook.UI.Page.cls?KEY=GOBJ_classes#GOBJ_deploy_classes_details
Please tell us, what is the end goal, that you are trying to achieve? Why do you need to copy Security.Users?
Thank you, Alexander.
What version of Caché do you use?
You can use Caché from Java via
Paul,
Please notice that CentOS 7 is not supported platform for deployment.
CentOS 7 is supported only as a development platform http://docs.intersystems.com/ens20161/csp/docbook/DocBook.UI.Page.cls?KEY=ISP_technologies#ISP_platforms_devonly
Whether to keep $Increment or replace it with $Sequence you should decide based on what your code is doing. If $Sequence is suitable in some particular case, then after testing you might try to replace $Increment with it.
Hi Trevor.
The other question is why do you need this? What is the end goal that you want to achieve?
Thank you, Alexander.
We need polls on Community!
And fetch_all() can be implemented using fetch().
Hi Raghu.
I don't know about XPath, but maybe using XSLT might help you here:
Class Sample.XSLTransform [ Abstract ]
{
ClassMethod test()
{
set tXML= ##class(%GlobalCharacterStream).%New()
do tXML.Write("<HHSOS><DIAGNOSES><DIAGNOSIS_DATA><DIAGNOSIS_DATA_GUID>3762875</DIAGNOSIS_DATA_GUID><DIAGNOSIS_DATA_GUID>37628752</DIAGNOSIS_DATA_GUID></DIAGNOSIS_DATA><DIAGNOSIS_DATA></DIAGNOSIS_DATA><DIAGNOSIS_DATA></DIAGNOSIS_DATA><DIAGNOSIS_DATA_GUID>37628753</DIAGNOSIS_DATA_GUID></DIAGNOSES></HHSOS>")
set tXSL=##class(%Dictionary.CompiledXData).%OpenId(..%ClassName(1)_"||ExampleXSL").Data
set tSC=##class(%XML.XSLT.Transformer).TransformStream(tXML,tXSL,.tOutput)
zwrite tSC
set tSC=tOutput.OutputToDevice()
}
XData ExampleXSL
{
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<xsl:copy-of select="//DIAGNOSIS_DATA_GUID[1]"/>
</xsl:template>
</xsl:stylesheet>
}
}
SAMPLES>d ##class(Sample.XSLTransform).test()
tSC=1
<?xml version="1.0" encoding="UTF-8"?><DIAGNOSIS_DATA_GUID>3762875</DIAGNOSIS_DATA_GUID><DIAGNOSIS_DATA_GUID>37628753</DIAGNOSIS_DATA_GUID>
Conrad,
your question have two parts
a) For queries like
WHERE a = (select ...)
if subquery returns more than one row, Caché will compare left part with first value of subquery.
b) If several people are tied for the minimum age, then following query prints all of them
SELECT Age,Name,home_state
FROM Sample.Person p1
WHERE age = (
SELECT min(age)
FROM Sample.Person p2
WHERE p1.home_state = p2.home_state)