Page 1 of 1

File upload and open file in subform

Posted: Thu Nov 15, 2018 11:38 am
by sandeepgumudelli
Hi,

Is this something possible to do ??

I have sub form in that i need 2 buttons , one button to upload pdf file and second button to view the uploaded file that is related that row.

Thank you very much for your support in advance.

Regards,
Sandeep

Re: File upload and open file in subform

Posted: Sun Nov 18, 2018 12:49 am
by admin
Sandeep,

The easiest way to save and call a file is by

1. Using the File Form as a Lookup.

2. A Button that opens the same Form with a Popup() that opens just the record selected by the Lookup.
sg2.PNG
sg1.PNG

Code: Select all


function showFile(e){
    
    var p = $(e.target).attr('data-nu-prefix');
    var f = $('#' + p + 'pro_zzzzsys_file_id').val();
    
    if(f == ''){
        nuMessage(['No File Selected']);
    }else{
        nuPopup('nufile', f);
    }  
    
}


Steven