Cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

PDF viewer refresh

Experimenter
Experimenter

I'm building a frame layout with a custom part family form and a PDF viewer as second step on the Custom UI Designer. I actually use the PDF viewer to load a htm file. The PDF file is displayed "from property". My goal is to be able to switch from a PDF file to another acting just on the second step, in the custom part family form where the property linked to the PDF viewer can be changed by user.

The property is beeing refreshed when changed by user, but the HTM won't refresh unless I move to previous step and then back to this step (re-loading).

 

Thanks in advance to anyone that could help me

 

 

3 REPLIES

Re: PDF viewer refresh

Valued Contributor
Valued Contributor

Hi Carico,

 

I believe you need to trigger the call to refresh the model views in the 'When Changed' formula of the property that is tied to the custom form..here's how the formula could look like:

 

If Value IsNot Nothing AndAlso Value <> OldValue Then

    g_rsEngineer.RefreshModelViews(-1)

End If

 

I think it should work..

 

Regards,

Dharmesh

Re: PDF viewer refresh

Experimenter
Experimenter

Hello DharmeshS

 

Thanks for your answer. What shown in the attachment is the situation on the property tied to the custom form. I've updated what shown in the "when changed" tab. Nothing changed actually in the behaviour of the application. Is this what you meant?

 

Re: PDF viewer refresh

Valued Contributor
Valued Contributor

Hi Carico,

 

This is indeed what I meant but I also notice that your property formula is just simply Result = ""...the WhenChanged formula is triggered when the value of the formula changes.

 

I have a feeling I might've misunderstood the original issue. If you could re-phrase it, it would help.

 

Regards,

Dharmesh