Form does not show "new" records from SQL Database

I have a PDF form that pulls data from a SQL Server.  The fields in
the PDF are populated from the database after selecting a specific
record from a drop down and then clicking on a button labeled "Fill".
The problem is that the dropdown does not display new records that
have been recently added to the database.  I have to open the form up
in designer then save it, (*note - I change nothing at this point.)
Then when the form is opened back up in Adobe the dropdown show all
the records including the new ones.  I even put a manual refresh on
form to try and fix this an it did not help. Seriously stumped.
Any help is greatly appreciated.
Here is my code for the dropdown.
++++++++++++++++++++++++++++
topmostSubform.Page1.JobSelect::initialize - (JavaScript, client)
var sDataConnectionName = "BBCC"; // example - var sDataConnectionName
= "Test";
var sColHiddenValue = "ContractAdmin_Key"; // example - var
sColHiddenValue = "Dept_ID";
var sColDisplayText = "JobDescription"; // example - var
sColDisplayText = "Dept_ID"
// Search for sourceSet node which matchs the DataConnection name
var nIndex = 0;
while(xfa.sourceSet.nodes.item(nIndex).name != sDataConnectionName)
nIndex++;
var oDB = xfa.sourceSet.nodes.item(nIndex);
oDB.open();
oDB.first();
// Search node with the class name "command"
var nDBIndex = 0;
while(oDB.nodes.item(nDBIndex).className != "command")
nDBIndex++;
// Backup the original settings before assigning BOF and EOF to stay
var sBOFBackup =
oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("bofAction");
var sEOFBackup =
oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("eofAction");
oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayBOF",
"bofAction");
oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayEOF",
"eofAction");
// Clear the list
this.clearItems();
// Search for the record node with the matching Data Connection name
nIndex = 0;
while(xfa.record.nodes.item(nIndex).name != sDataConnectionName)
nIndex++;
var oRecord = xfa.record.nodes.item(nIndex);
// Find the value node
var oValueNode = null;
var oTextNode = null;
for(var nColIndex = 0; nColIndex < oRecord.nodes.length; nColIndex++)
{ if(oRecord.nodes.item(nColIndex).name == sColHiddenValue)
{ oValueNode = oRecord.nodes.item(nColIndex); } else
if(oRecord.nodes.item(nColIndex).name == sColDisplayText) { oTextNode
= oRecord.nodes.item(nColIndex); } }
while(!oDB.isEOF())
  this.addItem(oTextNode.value, oValueNode.value);
   oDB.next();
// Restore the original settings
oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sBOFBackup,
"bofAction");
oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sEOFBackup,
"eofAction");
// Close connection
oDB.close();
++++++++++++++++++++++
Here is code for the refresh button
+++++++++++++++++++++
topmostSubform.Page1.Button27::click - (JavaScript, client)
sourceSet.BBCC.requery();
+++++++++++++++++++++

pguerett wrote:
The other thing that might be happening is a refresh issue on the DropDownList. Try adding the command xfa.layout.relayout() after the database connection has been closed.
Paul
Good catch Paul!  Would you believe that I have been trying to get this resolved for almost two years! Works perfect now.
Thank you,
  - Eric

Similar Messages

  • Form does not display all records from table

    Hi guys
    I modified one form that was based on a signle DB table. I removed certain fields from the table and added some extra fields to that table. Then based on the new table I also modified the form and removed the text items related to old fields in the table and added new text items pointing to the new fields now. II have checked all the new items properties and they have don't seem to be wrong or so. But now the problem is the form does not display all the records from the table. before it used to display all records from the table when qureied but not now. It only certain records from the table containing all new data and also old data but the form does not display other records though I don't see any obvious discrepancy. Remember that the before doing the modifications, I have table back for the old, created another table that contained new records for the new fields, and then I inserted the old records and updated the new table data in the new table with these new table values. So this way I have got my new table. Could someone help why the new modified form fails to display all records from the new table updated table though it display some of them successfully.
    Any help will be appreciated.
    Thanks

    hi
    Set the block property of "Query All Records" to "YES"
    hope it will work.
    Faisal

  • Incomplete Data on report (report does not show all records from the table)

    Hello,
    I have problem with CR XI, I'm running the same report on the same data with simple select all records from the table (no sorting, no grouping, no filters)
    Sometimes report shows me all records sometimes not. Mostly not all records on the report. When report incomplete sometimes it shows different number of records.
    I'm using CR XI runtime on Windows Server 2003
    Any help appreciated
    Thanks!

    Sorry Alexander. I missed the last line where you clearly say it is runtime.
    A few more questions:
    - Which CR SDK are you using? The Report Designer Component or the CR assemblies for .NET?
    - What is the exact version of CR you are using (from help | about)
    - What CR Service Pack are you on?
    And a troubleshooting suggestion:
    Since this works on some machines, it will be a good idea to compare all the runtime (both CR and non CR) being loaded on a working and non working machines.
    Download the modules utility from here:
    https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip
    and follow the steps as described in this thread:
    https://forums.sdn.sap.com/click.jspa?searchID=18424085&messageID=6186767
    The download also includes instructions on how to use modules.
    Ludek

  • Pprnav does not show new page from top.

    In webcenter we can perform navigation from one page to another using pprnav
    <af:commandLink text="#{node2.title}"
    id="cl1"
    actionListener="#{navigationContext.processAction}"
    action="pprnav">
    <f:attribute name="node"
    value="#{node2}"/>
    </af:commandLink>
    I have two pages A, B. A has some lengthy content so user needs to scroll down to see complete content. Now if he tries to navigate to another page B, scroll position remained as it is. It means page B shows bottom content. How can I make focus on top section of page B after navigating to it using pprnav.
    Thanks
    Sanjeev.

    pguerett wrote:
    The other thing that might be happening is a refresh issue on the DropDownList. Try adding the command xfa.layout.relayout() after the database connection has been closed.
    Paul
    Good catch Paul!  Would you believe that I have been trying to get this resolved for almost two years! Works perfect now.
    Thank you,
      - Eric

  • Execution results panel does not show deleted records

    Hi,
    For OWB 10.2.0.2, i can succesfully run the mapping. But the Excution Results panel does not show deleted records. Shows 0 eventhough it actually did delete the records.
    Does anyone have suggestions?
    Thanks,
    Raj

    Hi,
    According to your post, my understanding is that you saw the different results for everything and people search tabs.
    It is by design in SharePoint 2013.
    There are four search experiences that are available on a default enterprise Search Center results page. Each search experience uses a different result source.
    Everything search experience use Local SharePoint Results sources.
    People search experience use Local People Results sources.
    Local SharePoint Results specify all items from the local SharePoint search index except People items.
    Local People Results specify People items from the profile database of the User Profile service application.
    More information:
    Understanding result sources for search in SharePoint Server 2013
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Mail info panel top line does not show subject or from subsequent lines do.

    mail info panel top line does not show subject or from, subsequent lines do.

    DOrk4L,
    Have you tried re-calibrating the battery? To re-calibrate it, let the battery drain completely and then charge it fully. You should see correct battery usage after that.
    Hope this helps,
    Jennifer B.

  • "edit" link from report to form does not show values

    I created a report and an attached form on two different pages. The report is a query combining two tables with outer joins. When I click on the "edit" button on the report, I get forwarded to the form page.
    My problem: When I get forwarded to the forms page, I get an empty form, and not the data from the column as expected. The "edit" button behaves more like the "create" button. Anybody an idea what I could change to be able to edit the column data?
    Thank you.

    I've met the similar problem with previous releases (1.5.0 and 1.5.1) without any objective reason.
    As I suggests, sometimes HTMLDB lost current session state. When this occurs, ALL links from reports to it's forms does not transit primary keys. I've just completed application development and I've met this behaviour every months.
    As a workaround I found folowwjing process:
    Come into administration tab, selet "Report with option to purge current session state". When I purge current session state and re-login to application, all report-form links will start to work.
    I don't know, what is the issue, but I met it so soon on my local HTMLDB environment.

  • Finder does not show new files, does not acualize

    In Mountain Lion I realize that the finder more than once does not show the actual content of folders. Even a "start new" from the stop-dialog did not change it.
    A restart of the whole system did.
    Pathfinder in opposite did show the new files immediatly.
    Does anyone have the same problem?
    Any suggestions?
    Thx.
    H.K.

    limey1
    Welcome to the Apple Discussions.
    It's a while since i used v5 but I think this is true.
    Whereas with early version of iPhoto there was a separate folder for each album, starting at v5 the app doesn;t do that. Instead the album information is stored as part of the main database file. At heart, it's a direction to the app to display certain pics together. The advantage being that a single pics can be many, many albums with no wasted disk space.
    Regards
    TD

  • Finder does not show new files with older creation dates

    Short story: when I somehow create new files or folders with older dates, Finder does not show them.
    This happens e.g. when I unrar archives created some time ago: the files or folders coming out of the archive get their original date, which is earlier than today.
    I can see those files and folders without problems in a terminal (using ls). But they don't show up in Finder when I visit the same directory.
    When I use terminal to go into some directory that is not yet visible in Finder, and I open a new Finder window for that directory from within terminal (using "open ."), the new directory and its contents will show up in Finder.
    My best guess is that some things have changed in the way Finder and the indexing of my flle system co-operate. In any case, this is higly annoying.
    Does anyone know how to fix this?
    OS X Yosemite 10.10 (14A389)
    Macbook Air - 13 Inch - Mid 2013

    I have the same problem.  I create files and they do not show up in their respective Finder window.  I know the files are there because I created them and I can see them using Terminal and applications can open them.  If I refresh the window by going to the parent directory and back again, the files do not show up.  If I close all windows and open that specific  window again, the files still do not show up.  If I leave the computer overnight, the new files still do not show up.  As brdsutte stated, after rebooting the computer, the files show up in the Finder window.  Anyone have any suggestions?
    iMac 27 inch, mid 2011
    Yosemite 10.10.1

  • The capture window in Premiere Pro does not show video feed from Beta SP

    Dear Sirs
    The capture window in Premiere PRO CC with blackmagic 4k extreme (Desktop Video 10.1 for Windows) does not show a live video feed in, from analog beta sp, It works only in media express.
    Can you help us?
    Thanks
    Alessandro

    Starting from a fresh new win7 installation, all problems solved
    Bye
    Alessandro

  • Form does not show up after been put in portal page

    I have created form application and tested it in 9iAS but when I put it in Portal page, It does not show up in the Portal page. The report that I created under the same Application does show up. However, it does not show the form. I have check the Access and everything looks right. (I even grant it to the public and still does not work).
    Any help would be appreciated.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by chetan.kashyap ([email protected]):
    Johnny,
    This looks strange. We haven't encountered such problem. Could you pls give us more details. Like:
    Are you using "Inherit Privilege from Application" ?
    Are you using Tab page/ Normal Page.
    If tab pages, have you set tab level security?
    Are you able to run that particular form from application? (Pls check it has a Valid production version).
    Are both forms & reports in the same application?
    Is this problem occuring for only a particular form or for all the forms?
    If you could provide the STEPS that you did..
    Thanx,
    Chetan.<HR></BLOCKQUOTE>
    Chetan and Johnny,
    I have the same problem as Johnny. Chetan, in answer to your questions:
    1. Yes, I am using "Inherit Privilege from Application"
    2. I tried it both on a page and on a tab and checked security, following the directions in "Building Portals, Release 3.0.8" Using "Portal30" login, access "Manage" etc.
    3. Yes, the form runs in Application, but not as a portlet on a portal page. We are using the standard demo configuration, Oracle 8i (enterprise ed.) and Oracle9i Application Server (minimal ed.).
    4. Yes, valid production version.
    5. I tried running reports and forms from same application and from different applications. Still does not show up on portal page.
    6. It occurs for all forms.
    7. Steps: As I indicated, I followed the directions closely in "Building Portals" which builds "Form based on table or view", "Publish to Portal" I even tried the database sequence (see page 4-27) and added that to the form configuration. I'm running it on NT 4.0 (service pack 5). The software was downloaded from the Oracle site.
    null

  • Open/Save Dialog does not show new files?

    Say you are working on a logic file in a folder and you have
    a few audio and movie files in that folder, and you launch
    Logic and via the open/save dialog window you add a few
    files to your song and in that dialog window you can see
    all the files in that folder.
    Then, in the Finder you add a few more files and movies to
    that folder and again use the open/save dialog window to
    add more files BUT the new files you added since launching
    logic are NOT SHOWN in the dialog window ! ?
    What's the deal with that?
    Every other app can show files added since the launch of the
    application, why not Logic?
    PowerBook G4 1GHz   Mac OS X (10.3.9)  

    project manager
    um, yeah.
    Should not need the project manager simply to see new files added to a directory in a Open/Save dialog window since last opening the app.
    I did a scan, a extended scan, opened all the little turn down arrows of the
    full path to the directory I knew there to be the new files and yes, Logic
    shows them there in the "Project manager".
    BUT Logic still does not show the files in the Open/Save dialog windows.
    This is strange because even simple app like TextEdit can show
    new files in it's Open/Save dialog function windows without the need of
    a project manager.
    I have to quit and re-launch each time to see any new files?

  • Finder does not show all colors from selected color Labels

    Since a view days finder does not show all Color Label colors. When I select either yellow or green it is selected, but it does not show in the file list with details, I can see it in icon and 3 pane view, but not in the detail list view.
    does anybody know why or how? Or what plist files I might need to delete to get this reset?

    Create a new account, name it "test" and see how your labels work in that User acct in list view? (That will tell if your problem is systemwide or limited to your User acct.) This account is just for test, do nothing further with it.
    Open System Preferences >> Accounts >> "+" make it an admin account.
    Let us know and we'll troubleshoot this further.
    -mj
    [email protected]

  • Date field submited via my custom form does not show in mysql database

    I created a form with the custom form wizard with a birthdate field having the date picker feature. i set the birthdate field to sumit date as date datatype. My birthdate column in mysql database is datatype date. but when i submit the form the date does not show in mysql database. what should i do pls. is the problem with my form or with my database birtdate column.
    Thanks

    zeeztaz wrote:
    iis the problem with my form or with my database birtdate column.
    Thanks
    please post the complete code of the page which contains that form, otherwise it will be impossible to detect the possible reason for this error.
    Cheers,
    Günter

  • Print Preview in RFx does not show new Adobe Interactive Form

    Hello Experts,
    I am trying to assign a standard Adobe Interactive form as the output form for SRM RFQ.  I have carried out the following steps in customising under "Define Actions for Document Output".
    - Selected bid invitation Action Profile = BBP_PD_BID
    - Go to "Processing Types"
    - Create a new Processing Type called "External Communication"
    - Set the following values to the new processing type:
         - Form Name = BBP_BID_INV_ADB
         - Form Type = P PDF-Based Forms
         - Format = BBP_BID_INV_ADB_MAI
         - Personalization Type = 5 - Recipeient Variable Replacement
    - Save Changes
    My problem is that when I go to into the BID (RFx) and click "Print Preview" it picks up the standard Smartform, not the new Adobe form I have added as required.
    Please can you advise of any additional config settings or other steps required to ensure that the Adobe Form is called when I click "Print Preview"?
    We are on SRM 7.0.
    I look forward your response.
    Regards,
    Matt

    Hi Matt could you please tell me how do you solve your issue? I have the same and I cant find the solution.
    Thanks a lot
    Kind Regards

Maybe you are looking for

  • What will happen if I change the name of my Apple Id?

    I have only one Apple Id, which is my email address "[email protected]". My Apple Id and primary email are the same. I now have a new email address, and want to change my Apple Id to my new email address. I've been to the Apple Id support page, and ha

  • Email Notification of Items Awaiting Approval

    Is there any way to email the approver when a user adds an item that requires approval? I'm thinking that might be a good portlet if that functionality doesn't already exist.

  • Problem in publishing master catalog

    Hi, I am not an SAP expert. I would like to ask your help about our current issue at hand. I need to publish the master catalog but I dont know how to do it. We have installed SRM 5.0 and CCM 2.0. Can you give me a detailed steps on how to do it? And

  • ZBAPI in Visual Composer

    Hi Can we call ZBapi Function modules in  our Visual Composer. Thanks Latha

  • SQ01:Copy of SAP query.

    Please tell me. When query is copied with SQ01, can different infoset be selected?