go to post Kurro Lopez · May 21, 2019 Ok, I'll try.I've checked that it compile, is synchronized server-client and vice versa.It's good. Only I'm missing the intellisenseThanks for all
go to post Kurro Lopez · May 21, 2019 Ok, it was due server port. Now it is connected with the server, but ObjectScript VSCode extension is disabled. Now, I'm not able to compile :(All previous configuration for ObjectScript VSCode extension was working, and the configuration still in folder configuration and workspace configuration.Edited: If I disable Serenji, ObjectScript VSCode begin to work
go to post Kurro Lopez · May 21, 2019 Hi George,I'm trying to configure Serenji in server and client. In workspace configuration I've got the following code:"settings": { "objectscript.conn.host": "1.1.1.1", "objectscript.conn.label": "DEV", "objectscript.conn.password": "<myPassword>", "objectscript.conn.version": 2, "objectscript.conn.active": true, "objectscript.autoCompile": true, "objectscript.autoPreviewXML": true, "serenji.servers": { "1.1.1.1":{ "host": "1.1.1.1", "port":43221, "username":"_SYSTEM", "password": "<myPassword>" } } }I've replaced IpServer and myPassword for security.In server I've installed as is explained in https://georgejames.com/files-cgi/doc/serenji/3.0.2/GettingStarted.htmlNow, my question is... How to sync the code? I'm not see any menu item or something to do it, maybe I'm not using correctly.Best regards.Edited: I've created the worspace and it is trying to connect, but I have the following error: [trace] stat /[error] Timed out connecting to Serenji Service at 1.1.1.1:43221 (1.1.1.1) (Real IP is changed)The server hasn't any firewall that is blocking it. Any idea?
go to post Kurro Lopez · May 17, 2019 WOW !!!! IT WORKS !!!!Thanks for all.I going to add this method in my utility libraryBest regards,Francisco Lopez
go to post Kurro Lopez · May 10, 2019 Thanks for the comment...As you says, it works with all superclass that it has, i.e. %Library.Base or Ens.RequestThe %IsA(superclass) is more effective
go to post Kurro Lopez · May 10, 2019 Well, next time I need to read the documentation in depth.There is a base method to check if a class extends of other one set obj = ##class(MyLibrary.ChildClass01).%New() ## this retrieves 1 w obj.%Extends("MyLibrary.ParentClass") ## this retrieves 0 w obj.%Extends("MyLibrary.ParentClassFake") This has been a "Rubber duck", this is a sample of guide-book of rubber duck. More info Clase %Library.SystemBase Best regards, Francisco López
go to post Kurro Lopez · May 3, 2019 Hi,Try the following code. It only works if the class parent is Ens.DataTransformDTL // Create a query to get only my class (in MyClass and sub folders) set query="SELECT ID FROM %Dictionary.ClassDefinition WHERE ID LIKE 'MyClass.%' AND super='Ens.DataTransformDTL'" set tStatement = ##class(%SQL.Statement).%New() set qStatus=tStatement.%Prepare(query) set tResult = tStatement.%Execute() while tResult.%Next() { set dtlName = tResult.%Get("ID") set classObject = $CLASSMETHOD(dtlName ,"%New") write !,"DTL: "_dtlName write !,"Source type: "_classObject.GetSourceType() write !,"Target type: "_classObject.GetTargetType() write ! } Remember: It works only if the class inherits from Ens.DataTransformDTL , if you know which class is the one that inherits the DTL you want to examine, change the name of the value of 'Super' in the previous query Best regards, Francisco Lopez
go to post Kurro Lopez · Apr 30, 2019 Please, use the DTL class properties set obj=##class(EXC.DTL.Lamont).%New() write 'Source type: '_obj.GetSourceType() write 'Target type: '_obj.GetTargetType() Have a look the following documentation Ens.DataTransformDTL Best regards, Francisco López
go to post Kurro Lopez · Apr 18, 2019 Please, you have to map the class too. It is into Routine database.Check previously what is the Global name to map it.
go to post Kurro Lopez · Apr 18, 2019 Hi,You need to map the other Global database into your namespace. This is the only way to have visibility of other database
go to post Kurro Lopez · Apr 12, 2019 Please, have a look the following links:Ensemble XML Virtual Document Development GuideLoading XML Schemas into EnsembleUsing File Adapters with EnsembleOnce you have the content of the file, you will be able to make the necessary transformations in HL7 to make the outbonding operation to out the content.Best regards,Francisco López
go to post Kurro Lopez · Feb 21, 2019 Thanks Eduard,Note: I've udpdated my comment, to show that there is two customersCurrently we are not able to rename the link of the Client1 to http://localhost:57772/api/myprocess/Client1/method1, the new customer will have this prefix without problem (http://localhost:57772/api/myprocess/Client2/method1)Now we have solved this problem adding the forward in Class1, and not using the My.Code.BS.ApiRoute.Of course, In Security - Applications - Web Applications, I've defined the Dispatch class to My.Code.BS.Class1Next iteration we'll try to change the URL of Client1 and use the ApiRoute class.Best regards
go to post Kurro Lopez · Feb 21, 2019 I've tried to forward to "class1" when Prefix is nothing (or "/") and other prefix ("/client2") to "class2" XData UrlMap [ XMLNamespace = "http://www.intersystems.com/urlmap" ] { <Routes> <Map Prefix="/" Forward="My.Code.BS.Class1" /> <Map Prefix="/Client2" Forward="My.Code.BS.Class2" /> </Routes> } In Security - Applications - Web Applications, I've defined the following entry Then I've called using the following links http://localhost:57772/api/myprocess/method1 (I'm calling to a method in Class1)http://localhost:57772/api/myprocess/Client2/method1 (I'm calling to a method in Class2) The first link doesn't work (404 Not found), the second one works fine. Is not possible to add a prefix for link 1 because this is the current link for class1 in production environment, the new deploy is for class2 Any idea?
go to post Kurro Lopez · Feb 20, 2019 Great... I've seen also this option in https://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY..., I going to apply this changeThanks mate
go to post Kurro Lopez · Jan 11, 2019 Congratulation @Eduard Lebedyuk, you are the best.And congratulation to everybody, this community is great thanks to all of you
go to post Kurro Lopez · Oct 30, 2018 Yes, the account has permission to write and delete. Also to create and remove folders.
go to post Kurro Lopez · Oct 30, 2018 Done !!!I wanna be a Master Developer of Full Stack Cosmic and all universe like you