Kurro Lopez · May 17, 2019 go to post

WOW !!!! IT WORKS !!!!

Thanks for all.

I going to add this method in my utility library

Best regards,

Francisco Lopez

Kurro Lopez · May 21, 2019 go to post

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.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:

 
[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?

Kurro Lopez · May 21, 2019 go to post

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

Kurro Lopez · May 21, 2019 go to post

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

Kurro Lopez · May 21, 2019 go to post

Yes, using Serenji extension.

You say that is only server-side code? it's strange, because the client-side is changed too

Kurro Lopez · May 22, 2019 go to post

Congratulations to all Spanish community and, in particular, congratulations to @David.Rechefor this great work.

Muchas gracias

Kurro Lopez · May 22, 2019 go to post

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.

Kurro Lopez · May 22, 2019 go to post

Cache for Windows (x86-64) 2017.2.1 (Build 801_3U) Thu Apr 12 2018 10:02:23 EDT

Kurro Lopez · May 23, 2019 go to post

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

Kurro Lopez · May 23, 2019 go to post

Exactly... using %Save aftewards RemoveItem in Ens.Config.Production works

Thanks for all

Kurro Lopez · May 24, 2019 go to post

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

Kurro Lopez · May 24, 2019 go to post

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 wink

Best regards,

Francisco Lopez

Kurro Lopez · May 30, 2019 go to post

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 wink

Best regards

Francisco López

Kurro Lopez · May 31, 2019 go to post

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

Kurro Lopez · Jul 17, 2019 go to post

I'm thinking to create a framework with some utilities for Rest, utils functionst, etc... When it works fine, I'll do

Kurro Lopez · Sep 4, 2019 go to post

This is the configuracion in DEV environment, in Prerelease it has that value in SSL configuration.

Kurro Lopez · Sep 5, 2019 go to post

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?

Kurro Lopez · Oct 18, 2019 go to post

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..

Kurro Lopez · Oct 19, 2019 go to post

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
 

Kurro Lopez · Oct 31, 2019 go to post

Good approach, thanks for your answer.

The methods will be exactly the same as before. The changes in version is a slight change in BP, so I need which version is calling. If I user the version number as parameter, I can add into a message and calls to BP with the version and not replay all methods for each version.

I'll be in mind for future versions.

Thanks

Kurro Lopez · Oct 31, 2019 go to post

It's just I need... By this way, I have the version number

Many thanks

Kurro Lopez · Jan 30, 2020 go to post

Great, I have some questions about VSCode-ObjectScript. It is the best occasion to ask the creator of the application directly.

Kurro Lopez · Mar 3, 2017 go to post

In addiction to that answer, don't forget to set the Application Role to %All (or other role that you need), or it always returns a "Forbidden" error.

Best regards,

Francisco

Kurro Lopez · Mar 3, 2017 go to post

Solved...

I'm very sorry for this question, the answer was in my face and I didn't see it.

The plus sign is a special character in URL, so it should be replaced with "%2b" to escape the character.

I'm ashamed to think that this problem was too simple

I should call

http://localhost:57772/MyApp/login?login=flopez@salutic.es&password=7d%2brcUBPWF0wtMs4PHiluA==&app=MYAPP

Best regards,

Francisco

Kurro Lopez · Mar 6, 2017 go to post

It's easy,

As Eduard has exposed, you can pass a JSon as content of your Api

check that application/json is included into headers collection