Using Ironspeed to develop a CRM system
Currently we are developing a CRM system using Ironspeed for a customer. The system we are developing has a lot of cool features, such as using AJAX autocompletes that populate several related fields on the form automatically whenever an option is selected. One of the difficulties we ran into was populating results into additional fields that are in an embedded table control.
$get(‘<%# ProductDescription.ClientID %>’).value = results;
It can be accomplished with a simple function like this:
function OnProductSelected(source, eventArgs)
var results = eventArgs.get_value();
var product = source.get_id();
product = product.replace(“ProductAutoComplete”, “ProductDescription”);
document.getElementById(product).value = results;
In this example the autocomplete element is called “ProductAutoComplete” and the results we are getting from the stored procedure needs to be placed into the “ProductDescription” field.