Search only to hide resulted pdf pages when search results will require a readjustment

Hi all

I have a pdf of dynamic xml form, when open the pdf doc, only one page will be visible on this page I have search features. Once I do a search on this page according to research he reveals these pages (which are satisfied with the search conditions). In each page of search results I have a "Return to Homepage" button, when the user click of button on the search results needs to be reset (need to hide all no hidden page and update should come to the search page).

Actually, I got this feature but here when the user clicks on the "Back to Home Page" button, I'm hidding all the pages in pdf doc. Here, I need to hide only the pages that are displayed not all pages in pdf format. My code snippet as follows (assume that doc pdf has 8 pages)

topmostSubform.Page1.presence = 'hidden ';
topmostSubform.Page2.presence = 'hidden ';
topmostSubform.Page3.presence = 'hidden ';
topmostSubform.Page4.presence = 'hidden ';
topmostSubform.Page5.presence = 'hidden ';
topmostSubform.Page6.presence = 'hidden ';
topmostSubform.Page7.presence = 'hidden ';
topmostSubform.Page8.presence = 'hidden ';

How to hide only search pages has resulted. Because if I have 500 pages in pdf doc, I need to write to hide for each page. I need to avoid this.

Thanks in advance

Prasad Salvan

Hi Prasad,

Since you had the search criteria to make the required pages visible, I would put in place a global variable (in the file / form properties / Variables tab) and then the search script put the search criteria in the global variable (when accessing the global variable, you must only .value, instead of .rawValue).

When you set the global variable you must give a name and an initial value of "0".

Then the button "go to the search page" would include script to hide the page references in the global variable.

Good luck

Niall

Tags: Adobe LiveCycle

Similar Questions

Maybe you are looking for

  • iOS 10 Mail does not work

    OK, I have a problem with Mail after 10 iOS installed. None of my three email accounts receive mail - each returns an error indicating the password is incorrect. I returned to each password, but this made no difference. All accounts are IMAP. Any ide

  • LabVIEW Terminal connects not to the EV3 EV3 software retail will be (but pilot LEGO will not uninstall)

    Windows connects successfully to the LEGO EV3 via USB or Bluetooth. However, the Terminal LEGO of LabVIEW 2015 do not recognize. I installed the software at retail EV3 for check and it * is * connect to the EV3. I'm trying to fix the "LEGO Mindstorms

  • Scanner and Camera Wizard does not

    I placed my Kodak digital camera memory card into the slot on my computer, and the only answer is that it runs on my printer scanner.  How can I transfer my photos from my camera to my computer?

  • Missing/accessories

    my computer went crazy, I think I got a virus.it is working now... but now when I go to start / all programs... my accessories with all my system tools is not here... and all my favorites have disappeared... I had the extra memory of ram installed ev

  • If I saved photo on an external hard drive, now remove the laptop backup files to free up space?

    If I saved photo on an external hard drive, I can now delete backup files from the laptop for free space - my 'E' drive is full and cannot run backups more.  Also other documents that have now been removed still have backups that I need?  How will I