How to write the script for attached the file in workspace in popup window in sow workspace

reenak446674965
Tera Expert

I want  to write the  workspace client script ( pop up window ) for upload new version behavior it is just like the attachment functionalities as shown in screen shot in sow workspace . Could you please help me on this.

reenak446674965_0-1768565266266.png

 

11 REPLIES 11

sunilsargam
Kilo Sage

Hi @reenak446674965 ,

Could you explain bit more about the requirement please?

 

Thank you

Hi @sunilsargam 

reenak446674965_0-1768688150518.png

I want to convert this code into workspace client script so that It will execute, this code is not work for sow workspace. this code is for "upload new version code"  ui action for knowledge table

Hope you understand my requirement, same behavior which is working in Ui 16, I am implementing the same functionalities for SOW (for  upload new version button)

Tejas Adhalrao
Tera Guru

Hi @reenak446674965  ,

paste your code in Workspace Client Script. and check workspace form button .

 

function onClick(g_form) {
 
    var currentSysId = g_form.getUniqueValue();

 
    var importModal = new GlideModal("kb_import_dialog");

     importModal.setPreference("knowledge_sys_id", currentSysId);

 
    importModal.setTitle("Import a Word File");

 
    importModal.render();
}

 

 

 

 If you found my solution helpful, please mark it as Helpful or Accepted Solution...!

thanks,

tejas

Email: adhalraotejas1018@gmail.com

LinkedIn: https://www.linkedin.com/in/tejas1018

 

Hi @Tejas Adhalrao 

this code is not working because GlideModel is not supported in workspace client script.