id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
368	Sync issue: selection-control depending on another control, value set with setWireValue	svr	mpo	"This is the fconf:
{{{
  var fconf = {
    ""members"": {
      ""parent"": {
        ""base"": ""string""
      },
      ""child"": {
        ""base"": ""string"",
        ""control"": {
          ""base"": ""selection-control"",
          ""depends"": {""parent"": ""/parent""},
          ""options"": {
            ""uri"": ""${publicUri('service:/main/service/children/parent/{parent}')}"",
            ""labelTemplate"": ""{description}"",
            ""valueTemplate"": ""{id}""
          }
        }
      } 
    }
  }
  var testForm = new jQuery.org.kauriproject.forms.Form(""form"", fconf);
  testForm.setWireValue({""parent"" : ""216""},true);
}}}
I know the parent and I want to have all children entries available in the selection-control.
When this is executed, the selection-control is still empty. Eventhough there is a call to the service and a json object is returned. When you put an alert above the ''setWireValue'' line, everything is perfect. Same can be accomplished when setting:
{{{
  $.ajaxSetup({
    async: false,
  });
}}}

I couldn't reproduce this with the samples because I think the ajax response is too fast. "	defect	closed	major	0.4	modules/kauri-forms	trunk	fixed	async selection-control selection control depends setwirevalue	kauri-discuss@…
