Maybe this??
--check to see if mdi form is open and if so then just update pdf
IF (IFWINDOW('Assembly_Drawing')) = 0 THEN
EDIT USING bomlist2pdfviewercontrol2 MDI AS 'Assembly_Drawing'
ELSE
PROPERTY 'Assembly_Drawing|PDFViewer' CLEAR 'TRUE'
PROPERTY 'Assembly_Drawing|PDFViewer' FILENAME .vfilename
ENDIF
PROPERTY <Component ID> CLEAR 'TRUE'
From: "'Daniel Goldberg' via RBASE-L" <[email protected]>
To: "[email protected]" <[email protected]>
Date: Thu, 30 Jan 2025 15:48:25 +0000
Subject: [RBASE-L] - MDI forms refresh pdf view control
I am playing with MDI forms.
I have a form with a variable lookup list view that has a column that has
links to a folder/file location. Currently I have a button that will open
the pdf viewer form and display the pdf file inside of it. It has been
working good for years.
I would like to change it so when the user clicks on an item in the list it
will open the pdf form and keep it open. Then as the user clicks on other
items in the list it will change the pdf in the pdf viewer form.
Here is a snippet of the code:
--check to see if mdi form is open and if so then just update pdf
IF (IFWINDOW('Assembly_Drawing')) = 0 THEN
EDIT USING bomlist2pdfviewercontrol2 MDI AS 'Assembly_Drawing'
ELSE
PROPERTY 'Assembly_Drawing|PDFViewer' FILENAME .vfilename
ENDIF
It opens the first time but when I click on another row in the variable
lookup list view it does not refresh the pdf. Not sure what I am doing
wrong.
Anyone have any blues clues on how to get the pdfviewer control to change to
the new filename?
TIA
Dan Goldberg
--
For group guidelines, visit
http://www.rbase.com/support/usersgroup_guidelines.php
---
You received this message because you are subscribed to the Google Groups
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/rbase-l/BY3PR19MB5027A91726F79D16604C8F9DD4E92%40BY3PR19MB5027.namprd19.prod.outlook.com.
--
For group guidelines, visit
http://www.rbase.com/support/usersgroup_guidelines.php
---
You received this message because you are subscribed to the Google Groups
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/rbase-l/WC20250130185130.940204%40jjcalibrations.com.