WE HAVE SUNSET THIS LISTSERV - Join us at collectionspace@lyrasislists.org
View all threadsI've set a custom date field, "valueDate", in a new procedure as a summary
field across the three layers,
services:
objectNameProperty in tenant-bindings
(types:keyobjectNameProperty</types:key>
types:valuevalueDate</types:value>)
in valuationcontrols_common.xsd
(<xs:element name="valueDate" type="xs:date"/>)
application:
in base-procedure-valuationcontrol.xml
(<field id="valueDate" ui-search="range" ui-type="date"
in-title="yes" mini="summary,search,list,relate"/>)
ui:
in defaults/config/valuationcontrol.json
("titleBar": {
"type": "cspace.titleBar",
"options": {
"fields": [
"fields.valuationcontrolRefNumber",
"fields.valueDate"
]
}
},
)
and I get this error when running a simple search in the UI:
[org.collectionspace.services.servicegroup.nuxeo.ServiceGroupDocumentModelHandler:151]
Caught exception java.lang.ClassCastException: java.util.GregorianCalendar
cannot be cast to java.lang.String
The error message makes sense as it's a casting issue.
Has anybody been able to use a date field as a summary in their deployment?
Or could there be an error in the documentation I listed above?
(One potential issue I just noticed is the use of the string "valueDate" in
the blobs and collectionobject procedures schemas. But I'm not convinced
just yet this is a real problem here.)
Thanks,
Hi Jesse,
We've had the same problem, and have not been able to use date fields as
the summary. Here's the jira:
CSPACE-5763http://issues.collectionspace.org/browse/CSPACE-5763
Ray
On Wed, Apr 24, 2013 at 2:51 PM, Jesse Martinez mjesse@gmail.com wrote:
I've set a custom date field, "valueDate", in a new procedure as a summary
field across the three layers,
services:
objectNameProperty in tenant-bindings
(types:keyobjectNameProperty</types:key>
types:valuevalueDate</types:value>)
in valuationcontrols_common.xsd
(<xs:element name="valueDate" type="xs:date"/>)
application:
in base-procedure-valuationcontrol.xml
(<field id="valueDate" ui-search="range" ui-type="date"
in-title="yes" mini="summary,search,list,relate"/>)
ui:
in defaults/config/valuationcontrol.json
("titleBar": {
"type": "cspace.titleBar",
"options": {
"fields": [
"fields.valuationcontrolRefNumber",
"fields.valueDate"
]
}
},
)
and I get this error when running a simple search in the UI:
[org.collectionspace.services.servicegroup.nuxeo.ServiceGroupDocumentModelHandler:151]
Caught exception java.lang.ClassCastException: java.util.GregorianCalendar
cannot be cast to java.lang.String
The error message makes sense as it's a casting issue.
Has anybody been able to use a date field as a summary in their
deployment? Or could there be an error in the documentation I listed above?
(One potential issue I just noticed is the use of the string "valueDate"
in the blobs and collectionobject procedures schemas. But I'm not convinced
just yet this is a real problem here.)
Thanks,
Talk mailing list
Talk@lists.collectionspace.org
http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org
Jesse,
I have no help regarding the casting issue, but a suggestion that if you're
blocked on this, you could substitute a structured date for the date picker
and use the displayDate value as the summary. In the structured date, your
users would need to enter the date as text, then enter values in the year,
month and date fields of the Single/Earliest Date row -- not as convenient
as picking a date, for sure, but a viable fix in a pinch.
Rick
On Wed, Apr 24, 2013 at 3:03 PM, Ray Lee rhlee@berkeley.edu wrote:
Hi Jesse,
We've had the same problem, and have not been able to use date fields as
the summary. Here's the jira: CSPACE-5763http://issues.collectionspace.org/browse/CSPACE-5763
Ray
On Wed, Apr 24, 2013 at 2:51 PM, Jesse Martinez mjesse@gmail.com wrote:
I've set a custom date field, "valueDate", in a new procedure as a
summary field across the three layers,
services:
objectNameProperty in tenant-bindings
(types:keyobjectNameProperty</types:key>
types:valuevalueDate</types:value>)
in valuationcontrols_common.xsd
(<xs:element name="valueDate" type="xs:date"/>)
application:
in base-procedure-valuationcontrol.xml
(<field id="valueDate" ui-search="range" ui-type="date"
in-title="yes" mini="summary,search,list,relate"/>)
ui:
in defaults/config/valuationcontrol.json
("titleBar": {
"type": "cspace.titleBar",
"options": {
"fields": [
"fields.valuationcontrolRefNumber",
"fields.valueDate"
]
}
},
)
and I get this error when running a simple search in the UI:
[org.collectionspace.services.servicegroup.nuxeo.ServiceGroupDocumentModelHandler:151]
Caught exception java.lang.ClassCastException: java.util.GregorianCalendar
cannot be cast to java.lang.String
The error message makes sense as it's a casting issue.
Has anybody been able to use a date field as a summary in their
deployment? Or could there be an error in the documentation I listed above?
(One potential issue I just noticed is the use of the string "valueDate"
in the blobs and collectionobject procedures schemas. But I'm not convinced
just yet this is a real problem here.)
Thanks,
Talk mailing list
Talk@lists.collectionspace.org
http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org
This should not be hard to fix, I think. It just needs to handle the case
in the code that builds meta-values. Probably a few lines of code. Just
needs attention, which means arguing for priority (that’s up to you folks
;-).
Patrick
From: Talk [mailto:talk-bounces@lists.collectionspace.org] *On Behalf Of *Ray
Lee
Sent: Wednesday, April 24, 2013 3:04 PM
To: Jesse Martinez
Cc: CollectionSpace Talk List
Subject: Re: [Talk] error using date field as summary
Hi Jesse,
We've had the same problem, and have not been able to use date fields as
the summary. Here's the jira:
CSPACE-5763http://issues.collectionspace.org/browse/CSPACE-5763
Ray
On Wed, Apr 24, 2013 at 2:51 PM, Jesse Martinez mjesse@gmail.com wrote:
I've set a custom date field, "valueDate", in a new procedure as a summary
field across the three layers,
services:
objectNameProperty in tenant-bindings
(<types:key>objectNameProperty</types:key>
<types:value>valueDate</types:value>)
in valuationcontrols_common.xsd
(<xs:element name="valueDate" type="xs:date"/>)
application:
in base-procedure-valuationcontrol.xml
(<field id="valueDate" ui-search="range" ui-type="date"
in-title="yes" mini="summary,search,list,relate"/>)
ui:
in defaults/config/valuationcontrol.json
("titleBar": {
"type": "cspace.titleBar",
"options": {
"fields": [
"fields.valuationcontrolRefNumber",
"fields.valueDate"
]
}
},
)
and I get this error when running a simple search in the UI:
[org.collectionspace.services.servicegroup.nuxeo.ServiceGroupDocumentModelHandler:151]
Caught exception java.lang.ClassCastException: java.util.GregorianCalendar
cannot be cast to java.lang.String
The error message makes sense as it's a casting issue.
Has anybody been able to use a date field as a summary in their deployment?
Or could there be an error in the documentation I listed above?
(One potential issue I just noticed is the use of the string "valueDate" in
the blobs and collectionobject procedures schemas. But I'm not convinced
just yet this is a real problem here.)
Thanks,
Talk mailing list
Talk@lists.collectionspace.org
http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org
This is a good workaround, Rick. Thanks for mentioning it!
On Wed, Apr 24, 2013 at 6:05 PM, Rick Jaffe rjaffe@berkeley.edu wrote:
Jesse,
I have no help regarding the casting issue, but a suggestion that if
you're blocked on this, you could substitute a structured date for the date
picker and use the displayDate value as the summary. In the structured
date, your users would need to enter the date as text, then enter values in
the year, month and date fields of the Single/Earliest Date row -- not as
convenient as picking a date, for sure, but a viable fix in a pinch.
Rick
On Wed, Apr 24, 2013 at 3:03 PM, Ray Lee rhlee@berkeley.edu wrote:
Hi Jesse,
We've had the same problem, and have not been able to use date fields as
the summary. Here's the jira: CSPACE-5763http://issues.collectionspace.org/browse/CSPACE-5763
Ray
On Wed, Apr 24, 2013 at 2:51 PM, Jesse Martinez mjesse@gmail.com wrote:
I've set a custom date field, "valueDate", in a new procedure as a
summary field across the three layers,
services:
objectNameProperty in tenant-bindings
(types:keyobjectNameProperty</types:key>
types:valuevalueDate</types:value>)
in valuationcontrols_common.xsd
(<xs:element name="valueDate" type="xs:date"/>)
application:
in base-procedure-valuationcontrol.xml
(<field id="valueDate" ui-search="range" ui-type="date"
in-title="yes" mini="summary,search,list,relate"/>)
ui:
in defaults/config/valuationcontrol.json
("titleBar": {
"type": "cspace.titleBar",
"options": {
"fields": [
"fields.valuationcontrolRefNumber",
"fields.valueDate"
]
}
},
)
and I get this error when running a simple search in the UI:
[org.collectionspace.services.servicegroup.nuxeo.ServiceGroupDocumentModelHandler:151]
Caught exception java.lang.ClassCastException: java.util.GregorianCalendar
cannot be cast to java.lang.String
The error message makes sense as it's a casting issue.
Has anybody been able to use a date field as a summary in their
deployment? Or could there be an error in the documentation I listed above?
(One potential issue I just noticed is the use of the string "valueDate"
in the blobs and collectionobject procedures schemas. But I'm not convinced
just yet this is a real problem here.)
Thanks,
Talk mailing list
Talk@lists.collectionspace.org
http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org
This isn't critical for my current work, but I think it deserves some
attention especially if it ends up being a minor patch and can be fit into
the current schedule/timeline. And I can see this being a common case for
future deployers too.
On Wed, Apr 24, 2013 at 6:14 PM, Patrick Schmitz pschmitz@berkeley.eduwrote:
This should not be hard to fix, I think. It just needs to handle the case
in the code that builds meta-values. Probably a few lines of code. Just
needs attention, which means arguing for priority (that’s up to you folks
;-).
Patrick
From: Talk [mailto:talk-bounces@lists.collectionspace.org] *On Behalf
Of *Ray Lee
Sent: Wednesday, April 24, 2013 3:04 PM
To: Jesse Martinez
Cc: CollectionSpace Talk List
Subject: Re: [Talk] error using date field as summary
Hi Jesse,
We've had the same problem, and have not been able to use date fields as
the summary. Here's the jira: CSPACE-5763http://issues.collectionspace.org/browse/CSPACE-5763
Ray
On Wed, Apr 24, 2013 at 2:51 PM, Jesse Martinez mjesse@gmail.com wrote:
I've set a custom date field, "valueDate", in a new procedure as a summary
field across the three layers,
services:
objectNameProperty in tenant-bindings
(<types:key>objectNameProperty</types:key>
<types:value>valueDate</types:value>)
in valuationcontrols_common.xsd
(<xs:element name="valueDate" type="xs:date"/>)
application:
in base-procedure-valuationcontrol.xml
(<field id="valueDate" ui-search="range" ui-type="date"
in-title="yes" mini="summary,search,list,relate"/>)
ui:
in defaults/config/valuationcontrol.json
("titleBar": {
"type": "cspace.titleBar",
"options": {
"fields": [
"fields.valuationcontrolRefNumber",
"fields.valueDate"
]
}
},
)
and I get this error when running a simple search in the UI:
[org.collectionspace.services.servicegroup.nuxeo.ServiceGroupDocumentModelHandler:151]
Caught exception java.lang.ClassCastException: java.util.GregorianCalendar
cannot be cast to java.lang.String
The error message makes sense as it's a casting issue.
Has anybody been able to use a date field as a summary in their
deployment? Or could there be an error in the documentation I listed above?
(One potential issue I just noticed is the use of the string "valueDate"
in the blobs and collectionobject procedures schemas. But I'm not convinced
just yet this is a real problem here.)
Thanks,
Talk mailing list
Talk@lists.collectionspace.org
http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org