3

How can I make a filter for null values of my order ID

<column name="order_id">
 <argument name="data" xsi:type="array">
 <item name="config" xsi:type="array">
 <item name="bodyTmpl" xsi:type="string">ui/grid/cells/html</item>
 <item name="filter" xsi:type="string">text</item>
 <item name="editor" xsi:type="array">
 <item name="editorType" xsi:type="string">text</item>
 <item name="validation" xsi:type="array">
 <item name="required-entry" xsi:type="boolean">false</item>
 </item>
 </item> 
 <item name="label" xsi:type="string" translate="true">Order ID</item>
 </item>
 </argument>
 </column>

enter image description here

If a enter NULL in my filtering it should just show all row where Order ID is NULL or Blank

enter image description here

asked Nov 22, 2019 at 7:01
1
  • Did you make this work ? Commented Apr 3, 2021 at 20:31

1 Answer 1

-1

This can be done easily, first make you sure if there are no values then column has null value instead of empty. Then when use filter it will wo

answered May 21, 2020 at 9:09
1
  • dafuq? Is something missing on the comment? Commented Jun 25, 2020 at 2:22

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.