- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2015 01:18 AM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2015 03:38 AM
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 |
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-12-2015 04:08 AM
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