Invalid SQL: INSERT INTO `swsessions` (`sessionid`, `ipaddress`, `lastactivity`, `useragent`, `isloggedin`, `sessiontype`, `typeid`, `dateline`, `status`) VALUES('6ca5b14f87bc1cfaa6c5860804edaf93', '54.81.154.223', '1498227103', 'CCBot/2.0 (http://commoncrawl.org/faq/)', '0', '40', '0', '1498227103', '0'); (The table 'swsessions' is full)
Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\support.inm.com\includes\functions.php:410) in C:\Inetpub\support.inm.com\includes\functions.php on line 1612
Getting current form control data with GetPageText() - Support Center
inm logo
Corporate Website | Contact | Store | Support | Login  
     


Knowledgebase
View categorized listing of all common frequently asked questions.
Downloads
View our categorized library of downloads for all necessary manuals, software, etc.
 Article Options
Support Center » Knowledgebase » INM Impressario for Director » Getting current form control data with GetPageText()
Support Page Banner
 Getting current form control data with GetPageText()
Product:Platform:Area:Version:
Impressario for DirectorAllPDF Forms

v1.1

Summary

The GetPageText() sprite method retrieves the text of the current page of an Impressario sprite, with the data in any fields appended to the end of the fixed PDF text.

However, after an initial call to GetPageText () on a given page, if you modify a text field on that page, the modification will not appear in subsequent calls to GetPageText(). This problem occurs because the text of the page is cached on the first call to GetPageText().

Solution

The workaround is to "flush" the cache, by calling the GetPageText() member method on a different page of the document, before calling it on the page you are really interested in. Your PDF form document must have more than one page in order to use this workaround solution.

Example:

on GetMostRecentText
   -- retrieve all text of the page, including any updated form data
    x = member("myPDF").GetPageText(2) -- do it for page 2, just to clear the cache
    --here's the page you really want
   member("myPageText").text = member("myPDF").GetPageText(1)
end

Notes

 The Impressario methods GetFields() and GetAllFields() are preferred, if you want to retrieve just the form data. These methods return the form control names and values in a list of Lingo property lists.



Article Details
Article ID: 21
Created On: 30 May 2006 01:38 PM

 This answer was helpful  This answer was not helpful

inm general footer
Services Xtras Go Products Support Gallery Store Download About Us Contact Newsroom