Skip to content

Commit 5793b78

Browse files
Merge pull request #70 from ianf-mongodb/DOCSP-27646
DOCSP-27647 Add Delete and Edit Table Filter Content
2 parents c8ab056 + f9645d3 commit 5793b78

File tree

4 files changed

+146
-22
lines changed

4 files changed

+146
-22
lines changed

source/table-filters/apply-table-filters.txt

Lines changed: 35 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,42 @@ clause, a row limit clause, or both.
2626
Steps
2727
-----
2828

29+
.. procedure::
30+
:style: normal
2931

30-
#. From the :guilabel:`Schema model` pane, click the table that you want to apply a filter to.
31-
#. On the :guilabel:`Filter on` section in the edit :guilabel:`mapping rule` pane, click :guilabel:`+ Add`.
32-
#. Under the :guilabel:`SQL query` header, enter a SQL where criteria. The
33-
SQL you specify must be ANSI SQL compliant with your relational database.
34-
The following are examples of SQL where clauses used to apply
35-
:guilabel:`SQL query` table filters:
36-
37-
- ``LASTNAME LIKE '%SMITH%'``
38-
- ``LASTNAME = 'SMITH'``
39-
- ``LASTNAME IN('SMITH')``
40-
- ``LASTNAME IN(SELECT LASTNAME FROM ASIA_CUSTOMERS WHERE ID < 100000)``
41-
- ``LASTNAME IN(SELECT LASTNAME FROM ASIA_CUSTOMERS
42-
WHERE PAYMENT_DATE >= 05/25/2015)``
43-
44-
#. (Optional) Under the :guilabel:`Row limit` header, click the :guilabel:`Limit number of rows`
45-
radio button and enter a value. This applies a limit clause at the
46-
end of your SQL query.
47-
#. Click :guilabel:`Save and close`.
48-
After you save your filter, the :guilabel:`Schema model` pane
49-
displays a :icon-fa5:`filter` icon for any tables containing a filter
50-
under the :guilabel:`Relational` header.
32+
.. step:: Apply a table filter
33+
34+
a. From the :guilabel:`Schema model` pane, click the table
35+
that you want to apply a filter to.
36+
#. On the :guilabel:`Filter on` section in the edit
37+
:guilabel:`mapping rule` pane, click :guilabel:`+ Add`.
38+
#. Under the :guilabel:`SQL query` header, enter a SQL where
39+
criteria. The
40+
SQL you specify must be ANSI SQL compliant with your relational
41+
database.The following are examples of SQL where clauses used
42+
to apply :guilabel:`SQL query` table filters:
43+
44+
- ``LASTNAME LIKE '%SMITH%'``
45+
- ``LASTNAME = 'SMITH'``
46+
- ``LASTNAME IN('SMITH')``
47+
- ``LASTNAME IN(SELECT LASTNAME FROM ASIA_CUSTOMERS
48+
WHERE ID < 100000)``
49+
50+
.. step:: (Optional) Add a row limit
51+
52+
Under the :guilabel:`Row limit` header, click the
53+
:guilabel:`Limit number of rows` radio button and enter a value.
54+
This applies a limit clause at the end of your SQL query.
55+
56+
.. step:: Save your table filter
57+
58+
Click :guilabel:`Save and close`.
59+
60+
.. note::
61+
62+
After you save your filter, the :guilabel:`Schema model` pane
63+
displays a :icon-fa5:`filter` icon for any tables containing a
64+
filter under the :guilabel:`Relational` header.
5165

5266
Learn More
5367
----------
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
.. _rm-delete-table-filters:
2+
3+
====================
4+
Delete Table Filters
5+
====================
6+
7+
.. contents:: On this page
8+
:local:
9+
:backlinks: none
10+
:depth: 1
11+
:class: singlecol
12+
13+
You can delete existing table filters. Deleting table filters removes
14+
SQL where statement and row limits when pulling data from your table.
15+
16+
Before you Begin
17+
----------------
18+
19+
At least one table filter must be applied to your table.
20+
For details on how to apply a table filter, see
21+
:ref:`rm-apply-table-filters`.
22+
23+
Steps
24+
-----
25+
26+
.. procedure::
27+
:style: normal
28+
29+
.. step:: Select a table filter
30+
31+
a. From the :guilabel:`Schema model` pane, click the table
32+
that has the table filter you want to delete.
33+
#. On the :guilabel:`Mappings` pane in the :guilabel:`Table Filter`
34+
section, click the :icon-lg:`Trash` icon next to the table
35+
filter.
36+
37+
.. step:: Confirm deletion of your table filter
38+
39+
Click the red :guilabel:`Delete` button to confirm deletion of
40+
the table filter.
41+
42+
.. note::
43+
44+
It can take a few seconds for the table filter to be removed
45+
from your project.
46+
47+
Learn More
48+
----------
49+
50+
:ref:`<rm-mapping-rules>`
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
.. _rm-edit-table-filters:
2+
3+
==================
4+
Edit Table Filters
5+
==================
6+
7+
.. contents:: On this page
8+
:local:
9+
:backlinks: none
10+
:depth: 1
11+
:class: singlecol
12+
13+
You can edit existing table filters. Editing table filters allows you to
14+
change the SQL where statement and row limits when pulling data from
15+
your table.
16+
17+
Before you Begin
18+
----------------
19+
20+
At least one table filter must be applied to your table.
21+
For details on how to apply a table filter, see
22+
:ref:`rm-apply-table-filters`.
23+
24+
Steps
25+
-----
26+
27+
.. procedure::
28+
:style: normal
29+
30+
.. step:: Select a table filter
31+
32+
a. From the :guilabel:`Schema model` pane, click the table
33+
that has the table filter you want to edit.
34+
#. On the :guilabel:`Mappings` pane in the :guilabel:`Table Filter`
35+
section, click the :icon-lg:`Edit` icon.
36+
37+
.. step:: Edit your table filter
38+
39+
a. On the :guilabel:`Edit Filter` pane, under the :guilabel:`SQL Query`
40+
header, enter the updated SQL where statement for your table filter.
41+
#. (Optional) You can also add or remove row limits when editing a
42+
table filter:
43+
44+
- To add a row limit, click the :guilabel:`Limit Number Of Rows`
45+
and providing a value in the row limit text field.
46+
47+
- To remove a row limit, click the :guilabel:`No Limit`
48+
radio button
49+
50+
.. step:: Save the updated table filter
51+
52+
Click the green :guilabel:`Save and Close` button to save the
53+
updated table filter.
54+
55+
Learn More
56+
----------
57+
58+
:ref:`<rm-mapping-rules>`

source/table-filters/table-filters.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,6 @@ Get Started
5555
:titlesonly:
5656
:hidden:
5757

58-
/table-filters/apply-table-filters
58+
/table-filters/apply-table-filters
59+
/table-filters/edit-table-filters
60+
/table-filters/delete-table-filters

0 commit comments

Comments
 (0)