Hi,
I am using CMDBuild2.0 in window xp/tomcat 7.0.30.
I have done as follow:
Create Class "Room"
Create Class "PC"
Create Domain "Room_PC", 1:N between the classes "Room" and "PC" with the integer attribute "desk".
Add a REFERENCE attribute "RoomAt" in Class "PC", pick the domain "Room_PC"
Create card "room1" in Class "Room"
Create card "room2" in Class "Room"
Create card "pc1" in Class "PC"
Create card "pc2" in Class "PC"
Change "pc1"."RoomAt" to "room1" with "desk"= 1
Change "pc1"."RoomAt" to "room1" with "desk"=2
Change "pc1"."RoomAt" to "room2" with "desk"= 1
And my questions are:
1.
I called getCardHistory() by web service, and the result turned to be :
"pc1"."RoomAt"= "room2"
How can I get the attributes and values of "RoomAt" ?
2.
I called getRelationHistory() by web service,
there were no "beginDate" and "endDate" information in the return result of "Relation" list.
How can I get more information about relation history?
Wish your help!
Thank you and Merry Christmas!
Jason Wu
Hi Jason,
1.
You must explicitly call another web service's method (e.g. "getCard") for have such informations.
2.
You must use "getCardHistory" for those purposes and extract from its respose how the reference attribute has changed.
Best regards.
Previously Jason wrote:
Hi,
I am using CMDBuild2.0 in window xp/tomcat 7.0.30.
I have done as follow:
Create Class "Room"
Create Class "PC"
Create Domain "Room_PC", 1:N between the classes "Room" and "PC" with the integer attribute "desk".
Add a REFERENCE attribute "RoomAt" in Class "PC", pick the domain "Room_PC"
Create card "room1" in Class "Room"
Create card "room2" in Class "Room"
Create card "pc1" in Class "PC"
Create card "pc2" in Class "PC"
Change "pc1"."RoomAt" to "room1" with "desk"= 1
Change "pc1"."RoomAt" to "room1" with "desk"=2
Change "pc1"."RoomAt" to "room2" with "desk"= 1
And my questions are:
1.
I called getCardHistory() by web service, and the result turned to be :
"pc1"."RoomAt"= "room2"
How can I get the attributes and values of "RoomAt" ?
2.
I called getRelationHistory() by web service,
there were no "beginDate" and "endDate" information in the return result of "Relation" list.
How can I get more information about relation history?
Wish your help!
Thank you and Merry Christmas!
Jason Wu
Thank you for reply!
Even if I called getCard(), I could only get
"pc1"."RoomAt"= "room2"
But I couldn't get the attribute of "RoomAt" -> "desk" and the value of "desk" -> 1
And it's same as getCardHistory().
Previously Tecnoteca wrote:
Hi Jason,
1.
You must explicitly call another web service's method (e.g. "getCard") for have such informations.
2.
You must use "getCardHistory" for those purposes and extract from its respose how the reference attribute has changed.
Best regards.
So, you mean the attributes of the relation not of the referenced card... sorry for the misunderstanding. Actually there is no way for get those attributes, we are planning to add the support for retrieving those values in the next release.
Best regards.
Previously Jason wrote:
Thank you for reply!
Even if I called getCard(), I could only get
"pc1"."RoomAt"= "room2"
But I couldn't get the attribute of "RoomAt" -> "desk" and the value of "desk" -> 1
And it's same as getCardHistory().
Previously Tecnoteca wrote:
Hi Jason,
1.
You must explicitly call another web service's method (e.g. "getCard") for have such informations.
2.
You must use "getCardHistory" for those purposes and extract from its respose how the reference attribute has changed.
Best regards.
Hi!
Which is release that solved it?
It's this fixes in realease 2.1.4?
"Card does not display relation attributes for reference fields"
Thanks,
F.
Previously Tecnoteca wrote:
So, you mean the attributes of the relation not of the referenced card... sorry for the misunderstanding. Actually there is no way for get those attributes, we are planning to add the support for retrieving those values in the next release.
Best regards.
Previously Jason wrote:
Thank you for reply!
Even if I called getCard(), I could only get
"pc1"."RoomAt"= "room2"
But I couldn't get the attribute of "RoomAt" -> "desk" and the value of "desk" -> 1
And it's same as getCardHistory().
Previously Tecnoteca wrote:
Hi Jason,
1.
You must explicitly call another web service's method (e.g. "getCard") for have such informations.
2.
You must use "getCardHistory" for those purposes and extract from its respose how the reference attribute has changed.
Best regards.