- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 12:59 AM
Hi All,
I have a requirement to create UI action in workspace. E.g "Create task" UI action will be on Case table. When clicked on it; it should open a Task table form in a pop-up window. On this window, I want to set current case number as a parent. How can I achive this?
Thanks,
Monika
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 01:28 AM
Hi @monika94
Instead of entire form in Pop-Up you can open the form in Sub-Tab of workspace. Try the following workspace UI Action script.
function onClick(g_form) {
var case_sys_id = g_form.getUniqueValue();
g_aw.openRecord("sn_customerservice_task", "-1", {
"query": "^parent=" + case_sys_id
});
}
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 01:28 AM
Hi @monika94
Instead of entire form in Pop-Up you can open the form in Sub-Tab of workspace. Try the following workspace UI Action script.
function onClick(g_form) {
var case_sys_id = g_form.getUniqueValue();
g_aw.openRecord("sn_customerservice_task", "-1", {
"query": "^parent=" + case_sys_id
});
}
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 01:56 AM - edited 09-26-2023 02:07 AM
Hi Anvesh,
I need to open specific view if the task table. that is the reason I was using g_modal.showFrame. How can I open specific view using g_aw.openRecord()? Also I need to glide different table and set that value on task. Can I use GlideRecord in this script section?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 09:00 AM