The CreatorCon Call for Content is officially open! Get started here.

Intercepting lists

Mauricio G Raud
Tera Expert

Hi!,

I have a requirement to intecept a list of records (custom table), essentially I need 2 modules: 'All records' and 'Open records'. But my records can be of different categories (almost 20) and I need to create an interceptor on these modules that will redirect to the list with the appropiate filter applied, but it's not working.

For example, let's say the table have categories A, B and C, with states Open and Closed, when I click on 'All records' an interceptor will came into play and ask what category do I want, if I select category A, then all records with category A will be displayed on the list, if I select B then only those of category B and so on.

This is my interceptor

 find_real_file.png

and my answers are like this

find_real_file.png

I have created the interceptor when I need to create a new record (intercepts custom_table.do) and that one is working correctly, just this list interceptor it's not working, can you help?

1 ACCEPTED SOLUTION

Anil Lande
Kilo Patron

Hi,

Create interceptor lie below:

find_real_file.png

 

And create module of type URL from Arguments:

find_real_file.png

 

Use argument by replacing sys_id of your interceptor.

/wizard_view.do?sys_target=&sysparm_stack=_list.do&sysparm_wizardAction=sysverb_new&sysparm_parent=06b57bd82f378110ae17debcf699b676

 

Thanks,
Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

View solution in original post

5 REPLIES 5

Anil Lande
Kilo Patron

Hi,

Create interceptor lie below:

find_real_file.png

 

And create module of type URL from Arguments:

find_real_file.png

 

Use argument by replacing sys_id of your interceptor.

/wizard_view.do?sys_target=&sysparm_stack=_list.do&sysparm_wizardAction=sysverb_new&sysparm_parent=06b57bd82f378110ae17debcf699b676

 

Thanks,
Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Ok, I got that part working and they are triggering the interceptor.

find_real_file.png

but now for redirecting to the list it's showing 'Page not found', how do I pass the filters?

find_real_file.png

I want to show the records filtered by Category, I tried using sysparm=u_category=a in the target URL, but its not working

find_real_file.png

I also tried using custom_table.do instead of custom_table_list.do, and tried removing the sysparm_stack=_list.do.

 

Hope you can help.

Hi,

You can use query like below:

/table_name_list.do?sysparm_query=category=a^state=open

 

 

Thanks,
Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

In your query you have made mistakes on highlighted parts:

find_real_file.png

 

After table_name_list.do use ?, but you have used &. Also two sysparm_querie detected. 

 

Thanks,
Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande