I'd like to store the value ri!available using this code
a!integerField( label: "Available Racks", labelPosition: "JUSTIFIED", value: if(isnull(ri!bicycleInfo.stationId), "",rule!PEDS_QueryStationStatusInfoByStationId(id: ri!bicycleInfo.stationId).availableRacks ), saveInto: ri!available, refreshAfter: "UNFOCUS", readOnly: true, validations: {} )
Discussion posts and replies are publicly visible
The saveInto is only executed on user interaction. Check the documentation for how to set default values.