Perfect, that's the problem. Thanks a lot!
- Log in to post comments
Perfect, that's the problem. Thanks a lot!
Hello Ashok Kumar
I may not have explained the problem correctly.
The program "PropList" works when used directly in the terminal, but when used from the CSP it also works partially, except for the SELECT that is in the program.
Everything works perfectly when I use the same CSP code in the "USER" namespace.
Perfect!!! Thanks a lot.
There is only one Property at Contatos.Empresa
Property Nomedaempresa As %String;
s emp=##class(Contatos.Empresa).%OpenId(IDt) If $isObject(emp) Do objcontato.Tr
^
abalho.Insert(emp)
<INVALID OREF>C+5^cont
USER 2d0>zw
IDt=1
NInd="NomeIndex"
emp=<OBJECT REFERENCE>[2@Contatos.Empresa]
objcontato=<OBJECT REFERENCE>[1@Contatos.Amiguinho]
pakobj="Contatos.Amiguinho"
Do objcontato.Trabalho.Insert(##class(Contatos.Empresa).%OpenId(IDt))
Simple and perfect, I just added "ORDER BY SequenceNumber" to suit my needs. Thanks