Visual Process Flow: Open file instead of download.

SOLVED

Hello, 

I'm curious if it is possible to have a visual process flow button simply open a file instead of download it? I have a button set up linked to an excel document and another linked to a crystal report, but clicking these buttons causes an internet explorer "Open or Save" box to pop up. Is there a way around this? The file is already located on my computer and I would like for it simply to open up.. 

Thanks!

Parents Reply Children
  • 0 in reply to Kevin M
    SUGGESTED

    This is doable but only if you add a function to "MAS90\Launcher\VPF\xstart_portal.html".

    Here is the code needed.



    case "fxhelp":

    if(createObject())
    {
    var sURL = "";
    var sWDX = "";
    //sWDX = "[WDX]"; //Comment this out if on Sage 100 Standard / Uncomment this if on Sage 100 Advanced
    sURL = 'INVOKE "' + sWDX + '""' + args.replace('xhfunc,','').replace(/&#(\d+);/g, function(match, dec) {return String.fromCharCode(dec)}) + '"""';
    objPvX.Execute(sURL);

    }

    break;

     

     

    It should be added just before the "default:" switch case line.

    I tested this on sage 100 running in MAS90 (Standard) mode so i modified the server html file. If on advanced, i suspect you will need to modify both the workstation and server.

    I am also not sure if whether the "[WDX]" tag is needed on advanced as i'm not certain how the ProvideX object driving the process flow is spawned. 

    If on advanced, i would suggests first trying it with the "sWDX" variable line uncommented, if it doesn't work, you will get an error message saying it can't locate the file, you can then try it with the line commented out.

    In order to set up the link, you need to use this option.