Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    dynamic form field issue

    Using smartClient 6.5.1

    When creating a dynamic form and assigning it a a datasource, there are requests made back to the server when defaultToFirstOption is set to true.

    Code:
    isc.DataSource.create({
    	dataFormat: "json",
    	dataURL:"UIRequestDispatcher?DataSource=invite.object",
    	ID:"user",
    	showPrompt:false
    });
    
    isc.DynamicForm.create({
    	ID:"bound",
    	dataSource:"user",
    	autoDraw:false,
    	autoFetchData:false,
    	fields: [
    		{name: "userName", title: "Username", type: "select", defaultToFirstOption: true, required: true, length: 50},
                    {name: "userName", title: "Username", type: "select", defaultToFirstOption: true, required: true, length: 50}
    	]
    })
    the other issue is that if there are 2 selects like above both setting defaultToFirstOption, there are 2 requests back to the server. again if there are 3, then 3 requests to server and so on.
Working...
X