saveAttachment not working in workspace, need alternative

rohitbhadrasen
Tera Contributor

I've created one ui action on list and everything was working fine. I'm calling my data source after uploading attachment. 

I want to achieve same functionality, I want one ui action button on related list view on incident called - 'upload file'. 
Whenever user click on it, a popup will open to attach your file, and once submitted it should my one data source. 

Currently i'm using in normal UI action and its working fine, need same functionality in workspace


function uploadExcel(){
    saveAttachment('sys_data_source', 'sys_id');
}

Thanks in advance.

 

4 REPLIES 4

rohitbhadrasen
Tera Contributor

Looking for some solution

Carter Brezinsk
Tera Contributor

Experiencing the exact same issue as you. Let me know if you find anything!

Hi @Carter Brezinsk , yep I got the workaround. I've created declarative action on workspace and call ui page from there. And I'm calling saveattachment() from the UI page. 


Oh interesting, did you have to use g_modal.showframe() in the declarative action to get the UI Page to call successfully? Or how did you end up successfully calling the UI page? Every time I've tried to call one it fails.