Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

ConfiForms - how to trigger filter rules after data changed?

Markus
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 27, 2022

Hei there!

I have a small TableView with some filter rules. Really simple - filter apply to a status field. You can also edit the entries inline. If you change a status for a entry I want that the filter rules is triggered oder the table rerendering. Is there any chance?

Best regards,

 

Markus

1 answer

1 accepted

0 votes
Answer accepted
Alex Medved _ConfiForms_
Community Champion
June 27, 2022

Hi

What a "filter rules" - could you please explain this a bit more?

Alex

Markus
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 27, 2022

Hi Alex,

of course:

In the properties of the TableView I configured "Filter to apply on entries dataset". filter.PNG
When I edit a entry, I want that the view is refreshing and the entries disappear which not matching the filter.

Markus

Alex Medved _ConfiForms_
Community Champion
June 27, 2022

I believe the best option would be to switch from inline editing to dialog mode with form submit and page refresh

As unfortunately, the server version (and I believe you use that) does not refresh the "view" automatically after the data change (inline update)

Alex

Like Markus likes this
Pascal Salm October 24, 2022

@Alex Medved _ConfiForms_ 
Is there any way to force a page refresh after an "inline-edit"?

Alex Medved _ConfiForms_
Community Champion
October 24, 2022

Hi

Are you using ConfiForms for Server/DC? On cloud this is done automatically, but on server there is no automatic refresh. And you can see my previous answer on this thread.

However, page refresh might be achieved with a custom IFTTT function though

Demo:

http://recordit.co/zrJPouiw5z

Configuration example:

<ac:structured-macro ac:macro-id="379b2347-e20e-48b6-8603-10d0777c4ba4" ac:name="confiform" ac:schema-version="1">
<ac:parameter ac:name="formName">f</ac:parameter>
<ac:rich-text-body>
<ac:structured-macro ac:macro-id="ed1777c8-1f9d-435f-86c1-020c3d45a7cf" ac:name="confiform-entry-register" ac:schema-version="1">
<ac:rich-text-body>
<p>
<br/>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<p>
<ac:structured-macro ac:macro-id="9c7fcc65-11b1-4dca-9dca-7f3208ebc110" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">t</ac:parameter>
<ac:parameter ac:name="fieldLabel">t</ac:parameter>
<ac:parameter ac:name="type">text</ac:parameter>
</ac:structured-macro>
</p>
<ac:structured-macro ac:macro-id="13dcd797-6ae0-4357-a214-0d637c4f06ac" ac:name="confiform-ifttt" ac:schema-version="1">
<ac:parameter ac:name="condition">hasChanged():true</ac:parameter>
<ac:parameter ac:name="action">Redirect to URL</ac:parameter>
<ac:parameter ac:name="event">onModified</ac:parameter>
<ac:parameter ac:name="title">https://YOURSERVER/pages/viewpage.action?pageId=[entry._page.id]</ac:parameter>
<ac:rich-text-body>
<p>
<br/>
</p>
</ac:rich-text-body>
</ac:structured-macro>
</ac:rich-text-body>
</ac:structured-macro>
<p>
<br/>
</p>
<p>Static table</p>
<ac:structured-macro ac:macro-id="caf253c2-914d-456a-9ee6-f0104d9698e3" ac:name="confiform-table" ac:schema-version="1">
<ac:parameter ac:name="formName">f</ac:parameter>
<ac:rich-text-body>
<p>
<br/>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<p>Table with inline edit</p>
<ac:structured-macro ac:macro-id="9fcd03f5-7aec-4b6d-aa61-c9378c3d6b32" ac:name="confiform-table" ac:schema-version="1">
<ac:parameter ac:name="formName">f</ac:parameter>
<ac:parameter ac:name="enableGridEdit">true</ac:parameter>
<ac:rich-text-body>
<p>
<br/>
</p>
</ac:rich-text-body>
</ac:structured-macro>

Alex

Like Pascal Salm likes this
Pascal Salm October 25, 2022

Hi, thanks for your quick answer. I'm using the server edition.

I tried the way you described, and it seems the IFTTT refresh starts, but it's not refreshing.

I would like to have a form edit button (edit controls) for an inline edit. after the status is set to ready, a second "edit controls" should be active (done by a show/hide filter) which is for modal edit (not inline).

The switch of the to edit controls are not working automatically. The filter is working, because when i execute a page refresh, everything works.

That's why I would like to perform an auto-refresh after the status change

Alex Medved _ConfiForms_
Community Champion
October 25, 2022

No quite sure I understand this. You cannot have multiple edit controls per view, as far as I remember

You can see in my demo that the page refresh is performed, if you follow the instructions and the configuration precisely. Hard to tell what is not working for you without seeing the configuration. But please see what I have demonstrated - using that will refresh your page

Alex

Pascal Salm October 25, 2022

Everything fine, just a beginner mistake.

I messed up with http and https in my link. Everything works as you mentioned!

Thank you very much for your quick help!!!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events