message: Work for the - added "allowEmptyResponse" option
diff: @@ -241,6 +241,12 @@ export class ChoicesRestfull extends Base {
  public set titleName(val: string) {
  this.setPropertyValue("titleName", val);
  }
  + public get allowEmptyResponse(): boolean {
  + return this.getPropertyValue("allowEmptyResponse", false);
  + }
  + public set allowEmptyResponse(val: boolean) {
  + this.setPropertyValue("allowEmptyResponse", val);
  + }
  public get itemValueType(): string {
  if (!this.owner) return "itemvalue";
  var prop = JsonObject.metaData.findProperty(
  @@ -275,8 +281,10 @@ export class ChoicesRestfull extends Base {
  items.push(item);
  }
  } else {
  + if (!this.allowEmptyResponse) {
  this.error = new WebRequestEmptyError(null, this.owner);
  }
  + }
  if (this.updateResultCallback) {
  items = this.updateResultCallback(items, result);
  }
  @@ -362,7 +370,7 @@ export class ChoicesRestfull extends Base {
  }
  JsonObject.metaData.addClass(
  "choicesByUrl",
  - ["url", "path", "valueName", "titleName"],
  + ["url", "path", "valueName", "titleName", { name: "allowEmptyResponse:boolean", default: false }],
  function () {
  return new ChoicesRestfull();
  }
  