Hi guys,
sorry for my english.
In my scenario I have two button for open or close the attachment file display with the script 'app.execMenuItem("ShowHideFileAttachment");'.
But i don't know when the attachment file display its visible or hidden or detect when the user clicks on show/hidden in the display.
Anybody knows?
Thanks in advance.
ZAMPAZAMPA.
Solved! Go to Solution.
Views
Replies
Total Likes
You can do this the following way:
var obj = this.viewState.toSource().split(",");
if (obj[1].replace("overViewMode:","") == 7) {
//Your code here...
}
Views
Replies
Total Likes
Hi,
you can use another method to show or hide the attachment pane.
Here's an example.
http://thelivecycle.blogspot.de/2010/04/xfa-form-control-view-settings.html
Views
Replies
Total Likes
Thanks radzmar,
You help me a lot, but how i make to ask to pdf is it panel of attachment its open?
I make this:
event.target.viewState == {overViewMode:7}
but return false all the time when panel of attachment its open and when its close.
ZAMPAZAMPA.
Views
Replies
Total Likes
You can do this the following way:
var obj = this.viewState.toSource().split(",");
if (obj[1].replace("overViewMode:","") == 7) {
//Your code here...
}
Views
Replies
Total Likes
Thanks radzmar!! run perfectly!!
ZAMPAZAMPA
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies