Sage 100

 View Only
  • 1.  I have a client asking for a button to launch an A

    Posted 04-05-2013 15:32
      |   view attached
    I have a client asking for a button to launch an Adobe pdf from within Item Maintenance. I've done this before in MAS pre-Business Object Framework with no problems. Following the same technique in MAS200v4.50.0.5, I'm generating a script error (error statement attached). Can one of our script gurus look at this and let me know what I've got wrong? Thanks!


  • 2.  RE: I have a client asking for a button to launch an A

    Posted 04-05-2013 16:17
    I have found that the strip function is now required. Try: [""..\IMAGES\ABC\"" + STP(CI_ItemCode_bus_Imagefile$,1)] Of course this is assuming your button is running as type ""Program"" instead of as a ""MS Script"".


  • 3.  RE: I have a client asking for a button to launch an A

    Posted 04-05-2013 16:17
    Your VB Script isn't complete. The script doesn't know how to launch a file. This script should get you started: Dim oShell Set oShell = CreateObject(""WScript.Shell"") oShell.run(Chr(34) & ""\\St-app02\data\Drawings\"" & CI_ItemCode_bus_UDF_DRAWING$ & Chr(34)) Edit: I don't remember ever using curly braces, either. Could that be part of the issue?


  • 4.  RE: I have a client asking for a button to launch an A

    Posted 04-05-2013 16:20
    As per @DanBurleson, if you do find that there is extra whitespace, you can use the VB Script function TRIM(), which is not nearly as naughty sounding as the Strip function in ProvideX.


  • 5.  RE: I have a client asking for a button to launch an A

    Posted 04-05-2013 16:45
      |   view attached
    Copied and pasted the script revision and generated a new error statement.


  • 6.  RE: I have a client asking for a button to launch an A

    Posted 04-05-2013 16:51
    I tried Dan's suggestion and it resolved the problem! Case closed before 5 pm PDT! Thanks everyone.


  • 7.  RE: I have a client asking for a button to launch an A

    Posted 04-05-2013 16:58
    Y'all come on back now! Hear?


  • 8.  RE: I have a client asking for a button to launch an A

    Posted 04-05-2013 17:07
    Thanks Dan, it takes a village! Have a nice weekend.


  • 9.  RE: I have a client asking for a button to launch an A

    Posted 01-08-2014 13:52
    Is there a way to synch UDF's that retain the drawing file name between Item Master and BOM Header?