cancel
Showing results for 
Search instead for 
Did you mean: 

doclib2 boolean property behaviuor

Not applicable
Hi,
I am migrating a software from 4.0 to 4.2.
In my model i have a properties:

<property name="my:example">
   <title>example</title>
   <type>d:boolean</type>
</property>


I create a custom renderer in share where i read "my:example" property value.
In "record.node.properties" i have:

ALFRESCO 4.0.e

properties: {
   "my:example":true
}


ALFRESCO 4.2.c

properties: {
   "my:example":"true"
}


I write many "if" where i check "my:example" value and in alfresco 4.2 my software behavior is wrong.
I see that the difference is in a webscript: "/slingshot/doclib2/node".
Is it a bug? Or a desired change?

I need to know this because I must migrate my software correctly.

Thanks
             Federico Tarantino
3 REPLIES 3

Not applicable
Any suggestion?

mitpatoliya
Star Collaborator
Star Collaborator
your problem is not clear could you explain little bit more
also the diff in both version are based on what?

Simply,
in json object that return from webscript "/slingshot/doclib2/node" of alfresco api, boolean custom properties are:
- alfresco 4.0: true or false
- alfresco 4.2: "true" or "false"
In alfresco 4.0 are javascript boolean, in alfresco 4.2 are javsacript string.

Is it a bug? Or a desired change?

I need to know this because I must migrate my software correctly.

Federico