Hi,
i have an academicterm table with the following fields:
termid, startdate, enddate,termname, semesterid
i would like to get the semesterid of a term that is filtered out using a date parameter.
so user selects a date and my method finds the term that holds the selected date and returns its semesterid.
i did it by running a getmulti with startdate <= date and enddate >= date filter on academicterm collection.
then i ve selected the 0. index of whatever gelmulti has returned as an academictermentity and returned its semesterid value.
i wonder if there is a better way to this.
maybe getscalar?
or do you think what i ve done is the proper way?
thanks
-shane