I have database of "date" "part" "heat" "defect" these all are child of defect
I tried to filter with date. It's working for 19/4/2021 fine. But not working for any other date. For any other that are present in database it showing result of first two data.
Please refer to these screenshots:
com.google.firebase.database.Query query = defect.orderByChild("date").equalTo(query);
ValueEventListener valuelistener2 = new ValueEventListener() {
@Override
public void onDataChange(DataSnapshot _dataSnapshot) {
map_list = new ArrayList<>();
try {
GenericTypeIndicator <HashMap<String, Object>> _ind = new GenericTypeIndicator<HashMap< String, Object>>() {};
for (DataSnapshot _data : _dataSnapshot.getChildren()) {
HashMap <String, Object> _map= _data.getValue(_ind);
map_list.add(_map);
}