E9.2 Image Media Object attachment Issue in BIP

GauriP24

Active Member
We are printing Purchase orders using BI Publisher. There have been cases where our users have saved images as "text" media objects by copy-pasting screenshots. This is causing problems in BI Publisher in production.
The media object is saved as GTITNM= Text1 although it has image in the blob content.
Is there any way to determine if media object contains image, basically the final goal is to not print media object if it contains image in the ube.

1604359686581.png

I have tried to get the text of TXFT blob object and obviously not been successful.
Is there any way to get around this. I really appreciate any input


Thanks,
JDE Enterprise One 9.2
Tools 9.2.3.4
 
Is there is any fix for this, We have similar issue?

Is there a way to stop user from copy paste image in Text Media Object
 
Is there is any fix for this, We have similar issue?

Is there a way to stop user from copy paste image in Text Media Object
I recommend the finger removal process improvement method. Usually 1 little finger is enough to stop the behavior.
Alternatively you could create a db table trigger that checks the field value for image markers and cancels the add/update if found.
 
We use the StripHTMLTag business function (B0500725) to strip out the image from the Media Object Text after retrieving it. Pass "<img src=" into szStartTag and <Blank> into szEndTag and map your Media Object text field to the szSourceText parm as Input/Output. This will remove everything from "<img src=" to the end of the data string and return back any text that might have been entered before the pasted image. You can pass "<\img>" into szEndTag and it will only strip out the image info, but I've found that sometimes there is no <\img> end tag in the media object text so the image data doesn't get removed and you end up with the same issue so it's best to just wipe out everything from the image on.
 
It's not too much effort to write a clean up tool to process all F00165 records. But those images are probably valuable and it's not necessarily something you would want to do. Just musing.
 
We use the StripHTMLTag business function (B0500725) to strip out the image from the Media Object Text after retrieving it. Pass "<img src=" into szStartTag and <Blank> into szEndTag and map your Media Object text field to the szSourceText parm as Input/Output. This will remove everything from "<img src=" to the end of the data string and return back any text that might have been entered before the pasted image. You can pass "<\img>" into szEndTag and it will only strip out the image info, but I've found that sometimes there is no <\img> end tag in the media object text so the image data doesn't get removed and you end up with the same issue so it's best to just wipe out everything from the image on.
To be clear, we only do this inside the report before writing the attachment text out to the report variable. We keep the image intact in the media object record.
 
Back
Top