View Full Version : Two problems
galdaka
1 Feb 2007, 9:49 AM
1) Dialog box with layout => GridPanel fails. ContentPanel OK.
2) for Lotus Notes developers. I have a form with two regions. In north region I have a toolbar and in the center region the form with fields. When I save the form with document.forms[0].submit, @Command([FileSave]) or with WebQuerySave Agent the data not saved.There aren´t errors but the data not saved. If I put the fields out of BorderLayout the fields save correctly. Has a Borderlayout anormal effect in HTML fields?? The data in client is OK but in server is empty.
Animal
1 Feb 2007, 11:04 AM
1. Use a LayoutDialog. This has a layout manager built in - the "layout" property. It's config options are BasicDialog's and BorderLayout's
2. Check using Firebug that the DOM structure is as you expect it with the form where you expect it to be and the elements within that. Adding ContentPanels to Regions moves things around, so if you have a div inside a form, and the fields are in the div, and you create a ContentPanel out of the div, it's going to move that div (and of course all the fields) from out of the form, and into the Region.
For forms, try creating the ContentPanel from a form element directly.
You might want to use an "Ajax"* type submit (UpdateManager.formUpdate()) rather than submitting the whole page and rebuilding it.
* I don't like that term, it's sloppy and meaningless, and script fiddlers love it.
galdaka
2 Feb 2007, 2:50 PM
1) Now I use LayoutDialog. But not work. Is similar to http://www.jackslocum.com/deploy/yui-ext/examples/dialog/layout.html. With this example add gridpanel to center region and not work.
2) Is a Lotus Notes Web problem. Domino server generate extra html code to forms. But I dont´t understand the problem, the fields are OK in client, when submit form the fields are OK but in server the fields not contains the changes.
galdaka
3 Feb 2007, 6:34 AM
I post the link to code form problem 1): http://www.jackslocum.com/forum/viewtopic.php?t=2294&highlight=gridpanel
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.