PDA

View Full Version : Submit doesn't save data



boris
9 Mar 2007, 11:13 PM
I'm using yui-ext 0.33, panal layout and editable grid on a domino form. When I submit the form nothing gets saved. I got the submit to fire by using something like this; document.forms[3].submitit.click().
But still none of my data gets saved.
What do I have to do to get the submit to work properly?

galdaka
11 Mar 2007, 11:30 AM
same problem. If you use a border layout the problem is present. load content into a iframe is solution for me.

tryanDLS
11 Mar 2007, 11:36 AM
Are you expecting to submit the grid changes back to the server?? The grid control has no functionality to send updates to the server. You have to manually pass the changed data from the grid back to the server, which means you also have to manually track what's changed, unless you're going to send the entire data structure back.

In 1.0 alpha, there is functionality to track the changed status of cell, but the ability to marshall all the changes back to the server is not there yet (not sure if this is going to make the 1.0 release).

boris
11 Mar 2007, 5:09 PM
I am saving the data from the grid, that works well. However, each panel is it's own form and some fields are on one panel and some fields are one another panel hence what used to be one form with tables is now 3 forms with panels.

Animal
12 Mar 2007, 1:11 AM
If you want to submit data from 3 forms, you'll have to use base YUI.

Connection.setForm now returns the collected urlencoded data string, so collect the result of calling setForm on the 3 forms, clear Connection._sformData (which will contain the result of the last setForm call) and submit the whole lot as the 4th parameter to a POST using Connection.asyncRequest.