Joao Palma · Sep 14, 2020 go to post

Great. Thank you both.

I will do this next time.

- Backup class

- Drop table

- Reimport table

Best Regards,

Joao

Joao Palma · Jan 30, 2020 go to post

In case someone would like to add the Mirror Monitor to the app I managed to do it using the following:

rs = ##class(%ResultSet).%New()
rs.ClassName="SYS.Mirror"
rs.QueryName = "MemberStatusList"
rs.Execute("MIRRORNAME")

arrayMessage = []

While rs.%Next() {
obj  = {}
  DO obj.%Set("MirrorMemberName", rs.GetData(1))
  DO obj.%Set("CurrentRole", rs.GetData(2))
  DO obj.%Set("CurrentStatus", rs.GetData(3))
 
  Do arrayMessage.%Push(obj)
}

Joao Palma · Jan 30, 2020 go to post

Hi @Joan Cruz 

Can you tell me how you managed to get the information?

I am trying to do something similar but to show the information in a CSP page.

Best Regards,

Joao Palma

Joao Palma · Jan 30, 2020 go to post

Thank you, Henrique.

I've had a look at it yesterday. The whole project is very well structured.

Well done again for it.

I'm creating another page rather than adding in more stuff to the dashboard as I don't want to fill it more. 

Then using a new classmethod and javascript as you've said I'm going to get the properties out of %SYSTEM.Mirror I think.

That is the bit I am not completely sure about. But I will eventually get there.

Kind Regards,

Joao Palma

Joao Palma · Jan 29, 2020 go to post

Hi Henrique. 

This is very nice. I started using this at work and I was wondering if it would be too complicated to add a Mirror Monitor Widget to the CSP page.

Could you give me any clues?

Kind Regards.

P.S.: Obrigado.

Joao Palma · Dec 10, 2019 go to post

I use a similar approach but in a routine file.

So, I just have an  include at the top and then I do 

$$$TryCatch 

...

$$$TryEnd

Joao Palma · Nov 21, 2019 go to post

Hi Dinesh

I'm not sure whether you still need help with this.

In summary what you need to do is to create a message of your own and then pass that string as a message property and do something like

 Set request.StringValue="test"
Set tSC = ..SendRequest( "Tutorial.ExampleOperation" ,request)
 

Joao Palma · Nov 6, 2019 go to post

Thank you Robert. 

Ended up adding a dummy property to Ping with a default value and XMLPROJECTION = "Attribute" as "None" would error.

Joao Palma · Nov 6, 2019 go to post

Thank you Robert. 

I've tried that before and it didn't work though.

This is what I've tried:

pRequest As Conexes.Request.PingRequest

with Property parameters As Conexes.tns.Ping;

----------------------------------

Conexes.tns.Ping :

Parameter ELEMENTQUALIFIED = 1;

Parameter NAMESPACE = "mynamespace";

Parameter XMLNAME = "Ping";

Parameter XMLSEQUENCE = 1;

Parameter XMLPREFIX = "ns";

Parameter XMLIGNORENULL = 0;

Parameter XMLNIL = 1;

-----

Set tSC = ..Adapter.InvokeMethod("Ping",.pOutput, pRequest.parameters)

Joao Palma · Nov 4, 2019 go to post

Found out on my own...

I had enabled HTTP Trace on the WebGateway and I'd completely forgotten about it...

Joao Palma · Oct 29, 2019 go to post

I've seen that option now. 

It does show up in some files but not with classes for me. 

Thanks anyway. :-)

Joao Palma · Oct 29, 2019 go to post

I see. You have Iris for Health I suppose.

We have HealthConnect. It's a Different destribution.

Thank you.

Joao Palma · Oct 28, 2019 go to post

Windows. Are you able to attach a screenshot to show what you mean so I can find it here?

Joao Palma · Oct 7, 2019 go to post

Hi Laura

Did you get your answer? I know one has nearly past... I may be able to help you out if you still need it.

Joao Palma · Jul 31, 2019 go to post

Hi Paul.

I would like to have a look into that package is it possible to send it to me?

Kind Regards, 

Joao Palma

Joao Palma · Jul 31, 2019 go to post

Hi Paul.

I would like to have a look into that package is it possible to send it to me?

Kind Regards, 

Joao Palma

Joao Palma · Feb 22, 2019 go to post

To add up so we can help someone else...

This is what I really needed for this to work

Set reader = ##class(%XML.Reader).%New()
    Set status = reader.OpenString(messagedata)

    Do reader.Rewind()

    If $$$ISERR(status) {do $System.Status.DisplayError(status)}
    
    // Associate a class name with the XML element name
    Do reader.Correlate("MIU","Message.Request")
 

Joao Palma · Feb 19, 2019 go to post

<Oceano>
    <Header>
        <DataSource>Oceano</DataSource>
        <DataType>EDAttendance</DataType>
    </Header>
    <Body>
        <MIU>
            <Department>BCH</Department>
            <TotalNumber>6</TotalNumber>
            <NumberWaitingToBeSeen/>
            <LongestWaitMin/>
        </MIU>
        <MIU>
            <Department>BOS</Department>
            <TotalNumber>1</TotalNumber>
            <NumberWaitingToBeSeen>1</NumberWaitingToBeSeen>
            <LongestWaitMin>109293</LongestWaitMin>
        </MIU>
    </Body>
</Oceano>

Hope this helps

Joao Palma · Feb 19, 2019 go to post

That's correct Robert. Althougth, I always get the following error for the parse

comment or processing instruction expected while processing Anonymous Stream at line 1 offset 

Joao Palma · Oct 24, 2018 go to post

Sorry I did not get back to you. 

It did not work so I opted for a Code activity in the Business process and do

Set context.myvar = request.GetValueAt("/root/mynode")

Joao Palma · Oct 9, 2018 go to post

Hi guys

I'm trying something similar to this. I am call a bpl from another bpl.

When I do a trace for a context variable in the second bpl it shows up as empty.

I've also set the context super class in the 2nd bpl to be the context of the first one. I can see the context properties in the 2nd one in settings but they don't seem to be passed over.

How can I get the context of the main bpl?

Hope this makes sense...

Regards

Joao Palma · Aug 14, 2018 go to post

Thank you Tani. 

The issue here is Ensemble does not retroactively index messages that were received before you added the search table class. 

I need some information from the Past. I must create a report on the XML received messages since April based on one of the xml nodes values which distinguishes the document types.