This topic contains 3 replies, has 0 voices, and was last updated by WittyTGC 8 years, 8 months ago.

  • Author
    Posts
  • #2054

    WittyTGC

    We are only a couple months into our NS deployment so I appreciate any help I can get!

    When viewing a PO we need the ability to print the PO both as it prints normally in NS as well as in a different PDF format based on some of the data found within the PO. This different PDF will serve as a contract with the vendor, so we want to add all pertinent vendor info, some contract lingo, and signature lines.

    I successfully followed the video instructions here: https://netsuite.adobeconnect.com/_a…9/p1oouo3aexk/

    I created the button to load when either entering or viewing a PO. I deployed all the scripts as well, so you click the button and the different PDF page opens but I get an xml parse error. I know it’s because my code is bad, but I also know I’m making progress.

    My challenge is with modifying the suitelet js file to bring in all elements from the current PO form. If I can be successful with this, I expect to be able modify the elements of the output PDF (extra contract lingo and signature lines). I debugged a lot of my “code” already but now I’m stuck. I know there are problems with my attached file, so please have mercy! I’m trying!

    Finally, it would be really nice if I could only have the button load on viewing PO’s (not entering) for purchase of matrix items (not every item).

    Please see attached screen shot, and please see attached working txt file for the javascript.

    Thank you.

    Attached Files

    PrintItemGrowerContract_working.txt

    (10.3 KB, 1 view)
    This is a cached copy. Click here to see the original post.

  • #2055

    ashishshukla

    Hi,

    You can have your print button only on view mode of PO by having following code is your user event script file (script that creating button) –

    if(type == ‘view’)

    {

    form.addButton(‘custpage_mybutton’, ‘Print PO’, ‘Write here your client script code’);

    }

    Thanks,

    Ashish

  • #2056

    WittyTGC

    Hi Ashish,

    Thank you! This worked for the button.

  • #2057

    WittyTGC

    Does anyone know how I can get a list of record ID’s for the PO?


    dansteg replied on 03/03/2016, 02:01 PM: SuiteScript Records Browser? https://system.netsuite.com/help/hel…d/account.html

You must be logged in to reply to this topic.