- 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-05-2015 01:43 AM
Could you please provide the screenshot of the List Control of Add Roles..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2015 02:17 AM
- 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-05-2015 03:58 AM
Hi,
Try Below.
Create a on load Client Script in sc_task table.
add the below code.
function onLoad() {
var gr = g_form.getValue('active');
//alert(gr);
if(!gr){
gel('sys id of UI action Add role').style.display = 'none'; //hide the button
}
}
Let me know the outcome.