Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

File upload and open file in subform

Questions related to using nuBuilder Forte.
Post Reply
sandeepgumudelli
Posts: 41
Joined: Thu Jan 25, 2018 3:51 pm

File upload and open file in subform

Unread post 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
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: File upload and open file in subform

Unread post 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
You do not have the required permissions to view the files attached to this post.
Post Reply