In your code it doesn’t seem like you actually passing any item no in GET function as it is not initialised so no parameter is passing it wont go inside IF condition…
is that you want to filter the value of a specified item No. then why don’t you use the SetRange or setfilter in Onpredataitem… the you would directly get only records that have same Item no and you can look for Starting date…