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!

  • 0

    I am also looking for an answer to this. I am trying to launch an EXE from Visual Process flow and that is proving difficult. 

  • 0

    BY any chance have you had any luck?

  • 0 in reply to Jeff_T

    Unfortunately no

  • +1 in reply to Surya IT
    verified answer

    I tried a couple years ago to build a process using external resources (batch files, starting an external program...), but had to give up because it did not appear as though the VPF feature was designed to work with anything other than internal Sage 100 tasks.

  • 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.