You can use the Item Id value from the form as follow, then you can use the value in where condition to select sales price.
_itemId =ItemId.valueStr(); // ItemId is stringEdit which you are going to make for Item Id and should change the property "AutoDeclaration" to Yes.