john.smith4237 · Jul 17, 2024 go to post

Its a class that doesn't extend  %ZEN.Component.page, but it is a .cls and my understanding is that a CSP pages are pages saved as .csp and my class (.cls) as shown below is considered as a Zen page?

here is my class definition 

  and in content section 

and the problem that I've tried adding a component eg. a textbox or label in the XData Content section (where the time is) but its not showing up in the page, only my html called in my classmethod !? 

john.smith4237 · Jul 17, 2024 go to post

Yes David I see your point, will update and see how it goes, but it doesn't have to be programmatically all I'm looking for if I can add a component in my classmethod as I'm doing with html?

  
Thanks

john.smith4237 · Jul 31, 2024 go to post

Yes some tasks doesn't finish before the next one and for that I've expand the interval but when we had the system on Ensemble 2014 we don't get those messages so if one task doesn't finish the next one will just start whenever the previous one finishes, so it's the same scenario but in the new 2018 we receive these messages !?

john.smith4237 · Aug 1, 2024 go to post

I made a typo I meant how  do I check the status for Prepare and Execute methods? 

but yes I've checked the status and it was a security where the user set in the task didn't have all privileges 

Thanks Guys   

john.smith4237 · Aug 14, 2024 go to post

Yep I know that but that doesn't help in my case, because I need the most specific in a separate database and as i mentioned I have more that 100 classes (globals) so yes I can map and specify my Global.pkg.MyClassGlobal in the new database but I already mapped Global.pkg* in the old because I have many classes in  Global.pkg and I don't want to map one by one in my pkg and exclude Global.pkg.MyClassGlobal ?
So I guess I'll have to go pkg then classes that starts with eg. A, B ...etc (eg. Global.pkg.M*) in the pkg, exclude Global.pkg.MyClassGlobal and map it by itself in the new DB instead.
All good thanks Chris

john.smith4237 · Sep 29, 2024 go to post

Thanks Rodolfo looks good now.
I thought that the fact I'm using write command (response) , the response would always be text type ? 
Thanks

john.smith4237 · Nov 1, 2024 go to post

Hmm, is there a way or a call that I can make to maybe loop through and expand all nodes?

LIST didn't work but the Join did, thanks you very much Robert.

As I recall, Nest queries didn't work well if all in the old Cache versions so not sure if they improved it !?

I tried to export my Zen report to PDF but didn't work.

here is my report 

ClassMethod GeneratePdf() As %String
{
Set Fpath="D:\ItemRpt.pdf"
//Set Fpath="D:\ItemRpt"
Set obj=##class(Business.Report.BSReport).%New()
Set ret=obj.GenerateReport(Fpath,2)
Quit ret
}

you mean Java or Javascript?
This same code is running fine in Ensemble 2018 in windows, but now we moved to IRIS 2024 in Linux we are getting this error!? 

Thanks you very much that one worked.

The reason why I'm asking this is because I'm using the below code to connect & download files from AWS and it works fine but after using it say 100 times it stops and can not create the client, and if I stop & start Java Server it start working again not sure why !?

   set file="/Persistent/US-SERENITY/AWSCredentials"
   set endpoint="https://s3.amazonaws.com
   tStatus=""
   output=""
   res=##CLASS(%Net.Cloud.Storage.Client).CreateClient(,0,file,"us-east-1",.tStatus,endpoint)
    list=res.ListBuckets()
   set list=res.ListBlobs("vibjson")
        if (res.BlobExists("vibjson",JobId_".json.gz"))
        {
   res.DownloadBlobToFile("vibjson",JobId_".json.gz","/Persistent/S3DOWNLOADS/"_JobId_".json.gz")
   output="/Persistent/S3DOWNLOADS/"_JobId_".json.gz"
        }
        
       res.Close()
   output