Is it possible to put in a button on the tracker view of a dashboard and have it open an Attachment…
I have a serial number dashboard where they can select by job or part and would like to show an attachment (drawing ) for the selected part.
I can do the BAQ portion to have the attachment URL show up – just want to know how I could have them click on a button and have the PDF file display.
I’m not using Epicor on the web either. But Allow Epicor Web Access is an option in the user account which allows the user to open links from within Epicor. If it’s not enabled, they can click on the link and it won’t do anything
I can’t figure out where to put this code –
I tried on my dashboard, it is not available as View Rule, Then tried to add it by deploying the dashboard and using the Wizards / script editor, to no avail… I’m new to coding, actually old, but haven’t done any in decades so this is kind of new to me.
Can you give me some specifics on where / how to insert the code.
You’ll need to do a customization in order to use that code.
You’ll need to declare a variable to hold the grid. This should be done in the section under script underneath where it says // Add Custom Module Level Variables Here **
EpiUltraGrid grid1;
Underneath the InitializeCustomCode() function you’ll need to add:
this.grid1 = (EpiUltraGrid)csm.GetNativControlReference(“special code here”);
the special code is here:
then use the form event wizard to create a form load event and add this in the MaintController_Load section
I don’t know if this would meet your needs as you specified a button or something to click. I have a couple dashboards that publish the file URL/link from a query and then use the URL/XSLT view to subscribe to that. This means every time they click on a new line it shows the doc. Works fine for us as they are small files, if you are loading large drawings or files imagine it could slow them down so you’re back to a button or link to click.