I think it is a "Best practice", but the information is scattered throughout the conversation.
Why not create a last comment with a brief of the conversation, with pros and cons?
It could be more clear.
Regards
- Log in to post comments
I think it is a "Best practice", but the information is scattered throughout the conversation.
Why not create a last comment with a brief of the conversation, with pros and cons?
It could be more clear.
Regards
None of them. The best practices is "Do what you want"... hehe
Now seriously. I think the best practices is use according to the explication of each comment. Use brace to delimit the scope, not use if you have one line and precondition, etc..
Last time, we have a value of 10 and the error increases more frequently, even when I was loading files.
So, the idea is to put a value like 30 seconds to allow that time the TCP disconnection. If I change the value to 30 (or 60), can the process open the TCP connection automatically and try to connect to FTP? If I leave it indefinitely (-1), is there a way to make the connection again?
This is the configuracion in DEV environment, in Prerelease it has that value in SSL configuration.
I'm thinking to create a framework with some utilities for Rest, utils functionst, etc... When it works fine, I'll do
Hi Vikram,
Have you checked if you have granted privileges?

Best regards,
Francisco Lopez
It's a great plugin. Works in server side like Studio IDE. I need to check debug plugging.
I just miss a way to to push my code into a repository (Git, TFS,...) because there is not a copy in my disk folder (like Atelier). To do it, I need to synchronize all my code in Atelier and push into Git.
4.9 over 5
Best regards,
Francisco López
As says the song.... "Words don't came easy to me, How can I find a way to say.. THANKS"
I see you in Spanish Developer Community and this community too ![]()
Best regards
Francisco López
Good point.
I'll do it.
It's not as elegant as <foreach> but...
Maybe is not elegant, but this idea is from a gentleman, so it has glamour ![]()
Best regards,
Francisco Lopez
So it is not possible to do in a DTL?
As you say, I need to do it as code, instread of DTL.
Thanks for the answer
Exactly... using %Save aftewards RemoveItem in Ens.Config.Production works
Thanks for all
it is a mistake when I've copied it in the post. The original code is the same name, and I get the idItem, thanks
Yep, I've used DeleteId(idItem) also, and it doesn't work
Cache for Windows (x86-64) 2017.2.1 (Build 801_3U) Thu Apr 12 2018 10:02:23 EDT
According to github, it is a copy from intersystems-ru

and that link redirect to Cache-visual-Editor https://github.com/intersystems-ru/cache-visual-editor
I think, the latest release is in the following link
https://github.com/intersystems-ru/cache-visual-editor/releases
Please, @Nikita Savchenko correct me if I'm wrong
Best regards,
Francisco Lopez
Yes I have,
but it doesn't work, the item is removed from database but it still into production.cls, so the production is unestable. I should to remove the item manually.
Congratulations to all Spanish community and, in particular, congratulations to @David Reche for this great work.
Muchas gracias
Local disk, the same code that you can see in Atelier
The source of the project in my folder
Yes, using Serenji extension.
You say that is only server-side code? it's strange, because the client-side is changed too
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 intellisense
Thanks for all
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
Hi George,
I'm trying to configure Serenji in server and client. In workspace configuration I've got the following code:
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.html
Now, 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:
(Real IP is changed)
The server hasn't any firewall that is blocking it. Any idea?
WOW !!!! IT WORKS !!!!
Thanks for all.
I going to add this method in my utility library
Best regards,
Francisco Lopez
I'm afraid not. I'm using Healthshare Ensemble 2017.2
Thanks for the comment...
As you says, it works with all superclass that it has, i.e. %Library.Base or Ens.Request
The %IsA(superclass) is more effective
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
Don't forget mark the answer as "Accepted answer" ![]()
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
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
Best regards,
Francisco López