Re: [Xsltforms-support] Form data modification with Javascript
Brought to you by:
alain-couthures
From: Ivan P. <ipo...@ma...> - 2011-01-22 11:10:16
|
Hello Alain! > Can you tell me how many developers are using XSLTForms? We wrote a software product that utilizes XForms for data collection. In some aspects our product resembles MS Infopath. So we have two kind of developers: 1) those who write Java/GWT code for the "platform" and are not very familiar with XForms, there are two/three of us who are continuing to develop this product (not full-time at the moment). 2) and those who write XHTML/XForms "templates" for our platform --- these people are not developers, they only have been taught HTML, XForms and very basic Javascript. AFAIK, there are 5 people of this kind, and the "form templates" they write are being utilized in half a dozen of projects in different fields. > Have a look at XFControl.prototype.valueChanged method: each time a node > value is modified by a control, it is added in a list maintained for > each model. This list is then read when refreshing. We will have to take some time to investigate this and then we will send you a feedback. Thank you for suggestion! Regards, Ivan Ponomarev. On 20.01.2011 0:07, COUTHURES Alain wrote: > Hello Ivan, >> 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. > Can you tell me how many developers are using XSLTForms? >> 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? > Have a look at XFControl.prototype.valueChanged method: each time a node > value is modified by a control, it is added in a list maintained for > each model. This list is then read when refreshing. > > Thank you for your feedbacks! > > -Alain > > |