Property parameters stored as an array of strings.
Since parameters are N:1 to property, your theoretical query isn't possible due to cardinality mismatch.
What do you want to get?
- Log in to post comments
Property parameters stored as an array of strings.
Since parameters are N:1 to property, your theoretical query isn't possible due to cardinality mismatch.
What do you want to get?
You need two task objects one of %SYS.Task class and another of your concrete implementation class. Call AssignSettings
to merge settings. Example:
Set tTaskDefClass = "User.Task.MessageArchive"
Set tTaskObj = ##class(%SYS.Task).%New()
Set tTaskObj.NameSpace = "<NameSpace>"
Set tTaskObj.Name = "<tTaskName>"
Set tTaskObj.TaskClass = tTaskDefClass
Set tTaskObj.Description = "<tTaskDesc>"
Set tTaskDefObj = $System.OBJ.New(tTaskDefClass)
Set tTaskDefObj.BaseDir = "your value"
Set tStatus = tTaskObj.AssignSettings(tTaskDefObj)
Quit:$$$ISERR(tStatus) tStatus
Kill tTaskDefObj
Set tStatus = tTaskObj.%Save()I'm not really sure why do you want to have a cube with 0 facts? Can you elaborate why you need this?
But yes, clearing the datasource and rebuilding would get you cube with 0 rows.
Cube rebuild clears all old data. This is enough:
Do ##class(%DeepSee.Utils).%BuildCube("MyCube.Cube")Can any Target Object be non-IRIS base?
Absolutely. The services you offer via IAM can be sourced anywhere. Both from InterSystems IRIS and not.
How can IAM help with non-IRIS services?
All the benefits you get from using IAM (ease of administration, control, analytics) are available for both InterSystems IRIS-based and non InterSystems IRIS-based services
Wow
UseEnableConfigItem method of Ens.Director class to enable/disable business hosts programmatically.
If you want to enable/disable/modify several ensemble hosts, it's better to update them without updating production first and after that
update production. Also add longer timeout on production update.
setsc = ##class(Ens.Director).EnableConfigItem("Item1", 1, 0)
write:'sc$System.Status.GetErrorText(sc)
setsc = ##class(Ens.Director).EnableConfigItem("Item2", 1, 0)
write:'sc$System.Status.GetErrorText(sc)
setsc = ##class(Ens.Director).UpdateProduction(600)
write:'sc$System.Status.GetErrorText(sc)
Is there any interest in English Webinar?
Please reply in comments if you would like a rerun of this or similar webinar but in English!
You are trying to change % routines, which are available in all namespaces.
Most system routines start with %, so they would be available everywhere.
User routines should not start with % (they may start with %Z).
Are you sure you want to change system routine?
Is there any particular reason why you want to replace Cache for IRIS in code?
Anyway, is IRISLIB database writable?
Here's how you can make database writable.
It's really not recommended for IRISLIB.
I think virtual PDF printer can help in this situation.
From a cursory search LibreOffice does not seem to be ported to AIX. You can try to compile it from source with AIX Toolbox for Linux Applications.
Third parameter is expire:
d %response.SetCookie("XXXXX",%session.SessionId,"expirationdate")For example:
d %response.SetCookie("XXXXX",%session.SessionId,"Wed, 31 Oct 2020 00:00:00 GMT")
Are you able to open and login into System Management Portal?
http://ip:52773/csp/sys/UtilHome.csp
Have you specified Address? Looks empty.
If it's GCP do you have a static public IP address/hostname you can connect to?
Can you open management portal?
You need to use the IDE to edit routines.
For WRC access/Studio write to your InterSystems contact.
Have you tried installing Atelier or VS Code? They are available without registration.
Use one of the IDEs available to edit routines, classes, etc.
You can use Studio, Atelier or VS Code (Implementation 1, Implementation 2).
Check this discussion.
Yes, try this instead (in adaptor):
Method OnTask() As %Status
{
Set sc = ##super()
// all rows were just processed
// add your logic here
If '$IsObject(..%CurrResultSet) {
Set ^dbg($i(^dbg)) = "Last row"
}
Quit sc
}Worked for me.
It all depends on your locale.
In RUSW for example UTF8 is the default, bit not in English locales.
You can also use ^NLS to check/modify the defaults.
You can use both:
[ SqlComputeOnChange = (%%INSERT, %%UPDATE) ]
You can change the charset by setting this global:
set ^%SYS("CSP","DefaultFileCharset")="utf-8"
Do you want for each Movie object (row) to guarantee that it's Actors property would be unique (containing only distinct Actors)?
Or is it something else?
Can you show us examples of correct and incorrect Movie records?
I'd try
application/zipas a Content-Type.
Some questions/notes:
1. Why are you not using relationships?
2. If you have an object, which references another object in a property and you save a base object all it's properties-objects are also saved automatically. Have you thought about setting all references before save and after that only calling %Save() once?
3. I'd really recommend against relying on auto-incremental ID matches. They are NOT guaranteed to be equal.
4. The answer to your original question depends on where the failure was. %OnAfterSave is in transaction and is rolled back. However $Increment used to get hew IDs is not rolled back (as per documentation).
Tomorrow!
If you want it stored, make it triggered computed like this:
Property LabCode As %Library.String(MAXLEN = 64) [
SqlColumnNumber = 5,
SqlComputeCode = { set {*}= $EXTRACT({LabName},0,3)_" "_{LabID}},
SqlComputed,
SqlComputeOnChange = LabName ];Docs.
Note that it wouldn't recalc LabCode values for existing rows. If you need that, trigger recalculation with trivial update.
Use {%%ID}.
Here's an example:
Class util.Calc Extends %Persistent
{
Property calc As %String [ Calculated, SqlComputeCode = {set {*} = {%%ID}}, SqlComputed ];
/// do ##class(util.Calc).Test()
ClassMethod Test()
{
set obj = ..%New()
set sc = obj.%Save()
do ..AllFunc().%Display()
}
Query All() As %SQLQuery
{
SELECT *
FROM util.Calc
}
}Calling:
do ##class(util.Calc).Test()Returns:
ID calc
1 1
Docs.
That would work storagetime but not at runtime.
I think runtime hook disallowing duplicate inserts would be better.
To OP. Age seems like a strange property to store in your use case. It's better to store DoB I think.