Andrew Pollack's Blog

Technology, Family, Entertainment, Politics, and Random Noise

Ran into a really oddball bug while working on a 7.03 Domino web app.

By Andrew Pollack on 10/30/2009 at 09:53 AM EDT

It took me a long time to figure out just what was going on, but here's the detail:

There is a FORM with an embedded View. The embedded view uses the "ShowSingleCategory" value to change what is shown. There is a picklist field on the form, which is populated by a lookup and allows you to pick the category, which is then used by the view. The picklist field is marked "RefreshFieldsOnChange" so that the page will reload using the new value, and thus repopulate the embedded view with data from the newly selected category.

That's all standard stuff, and it works fine -- HOWEVER -- When the document refreshes, none of the included SUBFORMS get loaded. It doesn't matter if they're loaded by static name or by computed value. They just don't load. If I take the same stuff from the subforms and put it directly on the main form, it works fine. Moved to a subform -- nothing.

It only fails in this very specific circumstance. Damn if I know why. I ended up doing some javascript trickery instead of using the build it "Refresh" on that field, but instead doing a document.location() call in the onChange() event of the picklist field, then having my own parameter on the URL, which is picked up by the formula for the "ShowSingleCategory" value. That workaround allowed me to keep using the subforms, but ugh.


  • car icon

    On Site Training

    We can bring the same kind of top quality training you get at conferences right to your offices. If your team needs training in a single topic, or you want to do a whole series on site, we can put a mini-conference together just for your team. For more information, Contact Me.
  • There are  - loading -  comments....

    by the way....By Andrew Pollack on10/30/2009 at 10:07 EDT
    Comment Loading
    re: by the way....By Mark Crosby on10/30/2009 at 14:34 EDT
    Comment Loading


    Other Recent Stories...

    1. 03/18/2010File this under "Damn, I should have known that" -- CSS and Relative PathsI was whining about a feature being missing in Designer 8.5.x yesterday in a closed forum for "Design Partners" when I learned something I wished I'd known a long time ago. I'm writing this to share it with you, so you can be saved the work I've been doing. The feature I wanted (and still want) is for file resources that use the new editors (e.g. CSS, HTML, JAVASCRIPT) to allow "" values or at least some form of tokenization to allow you to include things like "@webdbname" and profile document values in ...... 
    2. 03/16/2010The CKEditor - with Domino -- will be better than rolling your own!If you don't know the CKEditor, you soon will. Maureen (and others) have recently gone public with the announcement that starting in near term release of 8.5.x, that fantastic rich text editor will be shipped built in with the Domino server and will be integrated for easy use for XPages. One thing that's hard to do at present with the CKEditor when you integrate with Domino, is handle the built in browsing/uploading/embedding for file attachments, images, flash, and so on. There are plug-ins for ftp and ...... 
    3. 02/14/2010Great weekend sleddingI'm from "away" -- a term which in Maine speak means that I wasn't born here, and while I've been here for nearly 20 years I am very easily spotted as a non-native to pretty much anyone with long time family roots in the area. Being from away, there are things I just hadn't had a chance to do that most Mainer's take for granted. This weekend, I got the chance to scratch a few of those off the list. These included going 'upta camp', being significantly north of Bangor, and spending a fair bit of time on a ...... 
    4. 02/10/2010Is anyone really considering a move to a hosted Exchange system? 
    5. 02/06/2010When does an application stop belonging to its owner? 
    6. 01/29/2010Lotusphere 2010 - Session Survey Results 
    7. 01/27/2010Is UPS just plain broken? * Updated 
    8. 01/25/2010My presentations posted here from Lotusphere 2010 
    9. 01/24/2010Me - in bobblehead form 
    10. 01/23/2010Announcing the C.U.L.T. Shirt 2010 Winner 
    Click here for more articles.....


    pen icon Comment Entry
    Subject
    Your Name
    Homepage
    *Your Email
    * Your email address is required, but not displayed.
     
    Your thoughts....
     
    Remember Me  

    Please wait while your document is saved.