Redirecting to same page in Listbanner Button

nanisonline
Kilo Contributor

Hi Folks,

Can anybody help me with redirecting to same page using list banner button. I am using the similar code which is used in Form button

action.setRedirectURL(current);

action.setReturnURL(current);

 

but no luck, can anybody suggest how it works in List banner buttons.

 

Thank you,

Naveen Beswa

1 ACCEPTED SOLUTION

Try this in UI Action

 

action.setRedirectURL('u_table_2.do?sys_id=' + parent.sys_id);

 

 

 

Replace u_table_2 with parent table and u_reference_field_to_table2 to the reference field from parent to child.

This is working fine in my instance. Let me know if you face any problem

 

 

Mark as helpful or correct based on impact for you.

 

Thanks & Regards

Sai Krishna

View solution in original post

7 REPLIES 7

Rosie Page
Kilo Explorer

The above code must work but I don't understand why this code is not working. You can visit Hotmail Customer Service for the further suggestion in this regarding. 

action.setRedirectURL('u_table_2.do?sys_id=' + parent.sys_id);

this is working, thank you

Gurpreet07
Mega Sage

action.setRedirectURL(current.getTableName()+'_list.do');

Hi Gurpreet,

 

This button is present on a related list of "Service Request" from which is about "adjustment table"

so technically speaking this button is written on "adjustment" button which acts as current, but as this button is located in Service Request form(which acts as parent for adjustment). 

when this button is clicked it should remain in SR form only ie..on it parent.

 

Could you please suggest code changes which fulfills my requirement.

 

Thanks & appreciate your help,

Naveen