Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
anyone knows ? :(
thank you
Angelo
Hi,
Could you elaborate a bit on your question?
Say you have all the values, you can use linq to ger the min / max value. If you have a lot of documents, I would do two searches (examine) and sort on the value asceding and descending respectfully, and take value from the first result.
HTH, Søren
hello Soren thank you for your answer :)
so i want to get the value of this prop programaticaly
something like
GetSomeDataTypeInADocumentype(someIdOfDatatype).Minimum
GetSomeDataTypeInADocumentype(someIdOfDatatype).StepSize
GetSomeDataTypeInADocumentype(someIdOfDatatype).Maximum
solved :)
for anyone o need this functionality ... (pseudocode)
var somePropertyOfSomeDocumentType = PropertyType
var dataTypeService = ApplicationContext.Current.Services.DataTypeService; IDataTypeDefinition dataType = dataTypeService.GetDataTypeDefinitionById(somePropertyOfSomeDocumentType.DataTypeDefinitionId); IDictionary
and you get the max value of that property Type
Just make sure you don't use this in the frontend - at least not without caching
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Get Min and Max value of a numeric Document/Member type property programaticaly
anyone knows ? :(
thank you
Angelo
Hi,
Could you elaborate a bit on your question?
Say you have all the values, you can use linq to ger the min / max value. If you have a lot of documents, I would do two searches (examine) and sort on the value asceding and descending respectfully, and take value from the first result.
HTH, Søren
hello Soren thank you for your answer :)
so i want to get the value of this prop programaticaly
something like
GetSomeDataTypeInADocumentype(someIdOfDatatype).Minimum
GetSomeDataTypeInADocumentype(someIdOfDatatype).StepSize
GetSomeDataTypeInADocumentype(someIdOfDatatype).Maximum
thank you
Angelo
solved :)
for anyone o need this functionality ... (pseudocode)
var dataTypeService = ApplicationContext.Current.Services.DataTypeService; IDataTypeDefinition dataType = dataTypeService.GetDataTypeDefinitionById(somePropertyOfSomeDocumentType.DataTypeDefinitionId); IDictionary
and you get the max value of that property Type
thank you
Angelo
Just make sure you don't use this in the frontend - at least not without caching
is working on a reply...