[Xsltforms-support] Form data modification with Javascript
Brought to you by:
alain-couthures
From: Ivan P. <ipo...@ma...> - 2011-01-16 17:06:15
|
Hello, We are using xsltForms for quite a while. Great idea and a great implementation. Still our developers constantly face several problems that I can't solve. Probably someone has already overcome them. Help for any of these issues will be appreciated, and we'll be glad to provide further information, if needed. Instead of putting the whole list in one email, I decided to break it into several separate emails to make it easier to maintain separate conversations. 1. We sometimes need to select value from a huge list, stored in the database. Traditional comboboxes and scrollboxes is not a solution in this case, because the whole list of values (tens of thousands of records) can't be placed in a webpage source. We have written special Javascript (GWT) code, that shows a dialogue that allows one to filter and pick a value from a huge list using AJAX techniques. The dialogue saves chosen value (id and name) into the instance and refreshes the whole form (xforms.ready = false; xforms.refresh(); xforms.ready = true;). The problem of such an approach is that this type of refresh sometimes fails to refresh constraints. The question is: what is the most reliable way to automate insertion of data into form fields using Javascript? Regards, Ivan Ponomarev |