Daily Log for #alfresco IRC Channel

Alfresco discussion and collaboration. Stick around a few hours after asking a question.

Official support for Enterprise subscribers: support.alfresco.com.

Joining the Channel:

Join in the conversation by getting an IRC client and connecting to #alfresco at Freenode. Our you can use the IRC web chat.

More information about the channel is in the wiki.

Getting Help

More help is available in this list of resources.

Daily Log for #alfresco

2019-02-06 07:59:08 GMT <alfresco-discord> <bhagyas> @LuisColorado Was good to attend your talk

2019-02-06 11:19:45 GMT <fwu2018> hello all

2019-02-06 13:03:07 GMT <alfresco-discord> <douglascrp> hello guys

2019-02-06 13:03:53 GMT <alfresco-discord> <douglascrp> I am trying to use attributeServices through javascript, but when I try to set a new value, it complains with Can't find method com.sun.proxy.$Proxy143.setAttribute(number,string,string)

2019-02-06 13:04:25 GMT <alfresco-discord> <douglascrp> is there a way to make number and string objects to be interpreted as serializable using javascript console?

2019-02-06 13:04:35 GMT <alfresco-discord> <douglascrp> my code: var context = Packages.org.springframework.web.context.ContextLoader.getCurrentWebApplicationContext(); var attributeService = context.getBean('AttributeService', Packages.org.alfresco.service.cmr.attributes.AttributeService);

2019-02-06 13:04:41 GMT <alfresco-discord> <yreg> myNumber+""

2019-02-06 13:04:50 GMT <alfresco-discord> <yreg> ?

2019-02-06 13:05:19 GMT <alfresco-discord> <yreg> your code is not complete by the way

2019-02-06 13:07:06 GMT <alfresco-discord> <douglascrp> I am trying to send what is missing, but this Linux client is misbehaving badly

2019-02-06 13:07:18 GMT <alfresco-discord> <douglascrp> I can only use my phone

2019-02-06 13:08:22 GMT <alfresco-discord> <douglascrp> attributeService.setAttribute(item.sequencial, KEY, type);

2019-02-06 13:08:28 GMT <alfresco-discord> <douglascrp> Something like that

2019-02-06 13:08:44 GMT <alfresco-discord> <douglascrp> First parameter should be a Java Long

2019-02-06 13:08:57 GMT <alfresco-discord> <douglascrp> The others String

2019-02-06 13:09:42 GMT <alfresco-discord> <douglascrp> @yreg if I use your myNumber+"" idea, wont it be stored as string?

2019-02-06 13:10:02 GMT <alfresco-discord> <yreg> it will

2019-02-06 13:10:38 GMT <alfresco-discord> <douglascrp> when I recover that value for the next execution, in Java, I read it as Long

2019-02-06 13:10:46 GMT <alfresco-discord> <douglascrp> so I guess it will fail

2019-02-06 13:11:08 GMT <alfresco-discord> <douglascrp> is there anyway to force the number to be interpreted as Long in javascript?

2019-02-06 13:11:34 GMT <alfresco-discord> <yreg> wasn't sure of your exact requirements

2019-02-06 13:12:10 GMT <alfresco-discord> <yreg> could you use Packages.java.lang.Long.parseLong(String) ?

2019-02-06 13:12:31 GMT <alfresco-discord> <douglascrp> aahhh, good idea

2019-02-06 13:12:31 GMT <alfresco-discord> <douglascrp> let me try

2019-02-06 13:14:04 GMT <alfresco-discord> <douglascrp> failed with the same exception

2019-02-06 13:25:45 GMT <alfresco-discord> <douglascrp> I can't believe I will have write javacode for such a simple task

2019-02-06 13:29:41 GMT <alfresco-discord> <douglascrp> ahh.... https://github.com/jgoldhammer/alfresco-jscript-extensions/blob/master/src/main/java/de/jgoldhammer/alfresco/jscript/attributes/ScriptAttributeService.java

2019-02-06 13:29:42 GMT <alfbot> Title:alfresco-jscript-extensions/ScriptAttributeService.java at master · jgoldhammer/alfresco-jscript-extensions · GitHub (at github.com)

2019-02-06 13:33:11 GMT <alfresco-discord> <mbui> @douglascrp You can format code by enclosing code between two (single line) or tree (multi line) backticks ` like this: synchronized (lock) { if (messageWithoutStackTop == null) renderMessages(); return messageWithoutStackTop; }

2019-02-06 13:33:51 GMT <alfresco-discord> <douglascrp> just like markdown?

2019-02-06 13:34:57 GMT <alfresco-discord> <douglascrp> var context = Packages.org.springframework.web.context.ContextLoader.getCurrentWebApplicationContext(); var attributeService = context.getBean('AttributeService', Packages.org.alfresco.service.cmr.attributes.AttributeService); attributeService.setAttribute(item.sequencial, KEY, type);

2019-02-06 13:35:02 GMT <alfresco-discord> <mbui> Yes

2019-02-06 13:35:10 GMT <alfresco-discord> <douglascrp> tks for the tip

2019-02-06 14:17:19 GMT <alfresco-discord> <douglascrp> yes, using the alfresco-jscript-extensions, it worked

2019-02-06 14:17:40 GMT <alfresco-discord> <douglascrp> now my "sequencial generator" ir working as expected, with the right initial values for each type

2019-02-06 16:00:19 GMT <alfresco-discord> <edw24> When I try to download ACS or APS trial from alfresco.com, the download page hangs. Does anyone else get this behavior and/or know when the fix will be made?

End of Daily Log

The other logs are at http://esplins.org/hash_alfresco