Page 1 of 1

workin with meta data using sdkphp

PostPosted:Thu Sep 17, 2015 2:57 pm
by rashedmohajer
Hello
openkm work team..
I want to retrieve documents in a particular file based on history(form date to date) and some metadata.
itry all sdk test search with propartygroup but not work .
Precisely the method( lastModyfidfrom and to)
my metadata are
Code: Select all
<property-group label="جامعة السودان" name="okg:sust">
    <input label="subject" type="text" name="okp:sust.subject"/>
    <input label="subject_date" type="date" name="okp:sust.subject_date" />
    <input label="details" name="okp:sust.details"/>
    <textarea label="status" name="okp:sust.status"/>
    <textarea label="comment" name="okp:sust.comment"/>
my openkm vesion is 6.3.0 communty

hint..
my document and folder name in arabic languge

Re: workin with meta data using sdkphp

PostPosted:Fri Sep 18, 2015 11:18 am
by jllort
This is an special case on future documentation we will explain more clear. When filtering from metadata field of type date the format is:
'20150918000000,20150919000000' ( from 2015-09-18 at 00:00:00 to 2015-09-19 at 00:00:00).
Code: Select all
$properties = array();
$properties['okp:sust.subject_date'] = '20150918000000,20150919000000';
Pattern is 'yyyyMMddHHmmss,yyyyMMddHHmmss'
The "," is the separator between from and to date.