Adding Part Drawings to Job Receipt to Inventory

The part attributes for many of our parts contain a part image which can be seen on the ‘part tracker’ and then viewing the attributes.

We would like to add these images to the ‘Job receipt to inventory’ page as a visual guide for workers to verify they have the right part.

I was attempting to simply put a picture box or a website widget, but I cannot seem to add any component or widget to this page in application studio even when I make a new layer.

I’ve had it suggested to use a function to get the Base64 image , then have the UI call the function and then bind it to a Transview variable then use that variable for the picture box.

Does anyone have any suggestions on how to add this picture box to this screen and if this is the best methodology ?

Thanks!

You are probably on the wrong page.

1 Like

Thanks for reply Kevin,

Scratch that, I may have not been on the details page or perhaps I didn’t realize when I clicked and dragged the picture box that it did put it there because if you don’t have it selected you cant hardly tell there is anything there (once you select it, you can see the dotted outline)

That solves my first question of how to add something, but the next question is what would the best methodology be to add this image?

May depend on where you’re storing your images. I’ve done this on Receipt Entry, but I would assume the set up for Job Receipt to Inventory would be similar…

I did this with a simple BAQ linking the Part and Image tables based on the ImageID columns.


The Image_ImageSysRowID is the critical one for this approach.

I then create a BAQ dataview on the form I’m working on and a Get event to populate it.

I set a where clause in the BAQ Execute options so it only returns the Part I’m looking for:

For the Picture Box settings:
I set the Binding of my Picture Box to my BAQ DataView.Image_ImageSysRowID
I set the Image Type to fileStore

When your BAQ “Get” event runs, it populates your BAQ dataview, and your Picture Box then uses the Image_ImageSysRowID column to find the correct image in your fileStore to display.

The hardest part is finding all the event triggers (may need multiple events) to call your BAQ Get event. Every time you change a part number, or view row change, or navigating between views, etc. For example, when I did it on Receipt Entry, the user can navigate between multiple receipt lines. So, every time they do that, I need to fire that BAQ again so the value updates based on the part being referenced.

And again, your setup may be different depending on where you’re storing your images. But the above worked for me.

3 Likes

Thanks so much for your suggestion! This was was easier than the way I was trying to do. I was able to get it working the way I want.

I need to figure out how to get the image to clear when I do a clean/sweep of the page. Right now it stays until you search for new order and hit tab (triggers pulling new image by onBlur). I’m assuming I just need to tie the UI clear to also clear this out.

I was assuming I could do something with the AfterClearUI but that seems locked

Sorry new to this. What is the best way to clear out custom fields when using the Clear/sweep icon at the top?

Sorry think I answered my own question…

Just make a new event that uses the AfterClearUI as the trigger is the direction I’m trying

1 Like

That should work fine. Just add a data-clear action after that trigger and clear your BAQ Dataview.

2 Likes

Got it, that worked perfectly too.

Thanks again for the help!!!

1 Like