Skip to main content
Solved

Mofify a Production ticket to Print attached PD Ffrom BOM

  • November 15, 2024
  • 5 replies
  • 89 views

  • Jr Varsity I
  • 7 replies

Hi Team, Can some help in showing some examples how to modify a Production ticket that once printed will also print a PDF file attached to the releviant BOM ie Part Drawing!

I understand the BOM Schema needs to be included in the Production Ticket Form, but how to link it to the BOM.

Best answer by TSburv

Hello ​@Remmy,

You can follow these steps:

1. Open the Production ticket report in the Report Designer and reference the BOM schema, specifically linking the Notes or File table associated with the BOM where the PDF is stored.

2. Use the production order's BOM ID to fetch the associated file. Ensure a data join between the Production Order table and the BOM table using the BOM ID field.

3. Use the File table's attachment reference to pull the PDF. You might need to configure the report to include an embedded object or dynamically link to the PDF file.

This should help you with your task

View original
Did this topic help you find an answer to your question?

5 replies

  • Freshman II
  • 3 replies
  • Answer
  • November 18, 2024

Hello ​@Remmy,

You can follow these steps:

1. Open the Production ticket report in the Report Designer and reference the BOM schema, specifically linking the Notes or File table associated with the BOM where the PDF is stored.

2. Use the production order's BOM ID to fetch the associated file. Ensure a data join between the Production Order table and the BOM table using the BOM ID field.

3. Use the File table's attachment reference to pull the PDF. You might need to configure the report to include an embedded object or dynamically link to the PDF file.

This should help you with your task


  • Author
  • Jr Varsity I
  • 7 replies
  • November 25, 2024

Hi TSburv Freshman II, do you have any examples I could follow please?


  • Freshman II
  • 3 replies
  • November 25, 2024
Remmy wrote:

Hi TSburv Freshman II, do you have any examples I could follow please?

Hello, here is an example setup: Link the BOM file to the production ticket.

First, you need to add the BOM schema in the report designer. Open the Production ticket report in report Designer. In the database schema panel, right-click and select Add schema -> Select the BOM table/scheme and include the necessary fields, such as:
BOM ID
Description
NoteID (These link attachments).

Then join BOM to production order. Create a join between Production Order.BOMID and BOM.BOMID to fetch BOM-related data. For the PDF, you also need to add the File table:
Join BOM.NoteID with File.RefNoteID.
Include fields like FileName or FileURL.

Now embed the PDF in the layout. In the Layout Editor, add a new Subreport or Image field to display the PDF.

Option 1: For embedding, bind the field to File.Data (if your system supports file embedding).

Option 2: Use a hyperlink to the PDF file by binding a text box to File.URL.

Example: Create a text box with the formula [=File.URL] and format it as a clickable link.

SELECT  
    ProductionOrder.OrderNbr,  
    BOM.BOMID,  
    File.FileName,  
    File.URL  
FROM  
    ProductionOrder  
JOIN BOM ON ProductionOrder.BOMID = BOM.BOMID  
JOIN File ON BOM.NoteID = File.RefNoteID  
WHERE  
    ProductionOrder.OrderNbr = @OrderNbr  

An example of a test
1. Create a test production order with an attached BOM.
2. Attach a PDF (like a drawing) to the BOM via the File Attachments section.
3. Run the Production Ticket report to ensure the file reference or PDF appears.

I hope this helps to clarify it more 


  • Author
  • Jr Varsity I
  • 7 replies
  • November 25, 2024

Hello TSBurv, Thank you for your Reply,  As I am new to this, please find following current active tables in my BOM.

See available BOM tables

These are the File Elements

with the attached file I wish to Print?

Kind Regards  Andrew


dominicpolicicchio03
Freshman I

Hi, ​@TSburv . I am also struggling with this. I have the proper joins to the file table, but I cannot get the pdf to display as an image on the report. Can you please provide screenshots of how you got Option 1 to work with file embedding? Thank you!

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings