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

UI action condition - related table condition

Pastupe
Mega Guru

Hello

I have form on table SC_TASK

Under form is related list displaying also button

Button is on table u_test

My problem is that I want hide button when TASK is not active and dont know how to refer from u_test table to sc_task table through condition on UI action form

How to do this when button must be on table u_test ?

Please help me to understand how to build such UI action condition for above screnario

thank you

/Petr

1a.jpg

2a.jpg

1 ACCEPTED SOLUTION

Gurpreet07
Mega Sage

You could use following type of code in a onLoad Client script of sc_task table



if(g_form.getValue('state')==1){   //1 for active
gel('sysverb_edit_o2m').style.display = 'none' ;         //get Id of ui action by developerTool

}


View solution in original post

5 REPLIES 5

Hello Gurpreet and Ashish,


Sorry that I was not able to come here because of project.



Solution which you proposed seems to be working. Thank you for your time on this.


However I was able to find solution by extending UI action condition



AS UI action is on table u_test   and button needs to be hidden on sc_task I added this condition parent.active == true



this makes button unvisible when task is not active.


I wish you a nice day and one more thank you for your time and effort ont his


/Petr