@resconet/jsbridge 17.1.5 → 17.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/JSBridge.d.ts +102 -27
- package/src/JSBridge.js +74 -16
package/package.json
CHANGED
package/src/JSBridge.d.ts
CHANGED
|
@@ -1042,7 +1042,7 @@ declare namespace MobileCRM {
|
|
|
1042
1042
|
* @param failed A callback which is called in case of error.
|
|
1043
1043
|
* @param scope The scope for callbacks.
|
|
1044
1044
|
*/
|
|
1045
|
-
static showForm(report: MobileCRM.Reference, source:
|
|
1045
|
+
static showForm(report: MobileCRM.Reference, source: MobileCRM.Reference[], fetchXml: string, failed?: (err: string) => void, scope?: any);
|
|
1046
1046
|
/**
|
|
1047
1047
|
* @since 16.0
|
|
1048
1048
|
* Shows new MobileReport form. Source for the report can be defined either as list of MobileCRM.Reference objects or as FetchXML query.
|
|
@@ -1055,7 +1055,7 @@ declare namespace MobileCRM {
|
|
|
1055
1055
|
*/
|
|
1056
1056
|
static showFormWithConfiguration(
|
|
1057
1057
|
report: MobileCRM.Reference,
|
|
1058
|
-
source:
|
|
1058
|
+
source: MobileCRM.Reference[],
|
|
1059
1059
|
fetchXml: string,
|
|
1060
1060
|
paramString: string,
|
|
1061
1061
|
failed?: (err: string) => void,
|
|
@@ -1075,13 +1075,20 @@ declare module MobileCRM.FetchXml {
|
|
|
1075
1075
|
/**
|
|
1076
1076
|
* @class Represents a FetchXml
|
|
1077
1077
|
* @property entity {MobileCRM.FetchXml.Entity} An entity object.
|
|
1078
|
-
* @property
|
|
1079
|
-
* @property
|
|
1080
|
-
* @property
|
|
1081
|
-
* @property
|
|
1078
|
+
* @property count {number} The maximum number of records to retrieve.
|
|
1079
|
+
* @property page {number} 1-based index of the data page to retrieve.
|
|
1080
|
+
* @property aggregate {boolean} Indicates whether the fetch is aggregated.
|
|
1081
|
+
* @property distinct {boolean} Indicates whether to return only distinct (different) values.
|
|
1082
1082
|
*/
|
|
1083
1083
|
class Fetch {
|
|
1084
|
-
|
|
1084
|
+
/** Constructs Fetch object
|
|
1085
|
+
* @param entity {MobileCRM.FetchXml.Entity} An entity object.
|
|
1086
|
+
* @param count {number} The maximum number of records to retrieve.
|
|
1087
|
+
* @param page {number} 1-based index of the data page to retrieve.
|
|
1088
|
+
* @param distinct {boolean} Indicates whether to return only distinct (different) values.
|
|
1089
|
+
* @param aggregate {boolean} Indicates whether the fetch is aggregated.
|
|
1090
|
+
*/
|
|
1091
|
+
constructor(entity?: MobileCRM.FetchXml.Entity, count?: number, page?: number, distinct?: boolean, aggregate?: boolean);
|
|
1085
1092
|
|
|
1086
1093
|
public entity: MobileCRM.FetchXml.Entity;
|
|
1087
1094
|
count: number;
|
|
@@ -1096,7 +1103,7 @@ declare module MobileCRM.FetchXml {
|
|
|
1096
1103
|
* @param failed A callback function for command failure. The error argument will carry the error message.
|
|
1097
1104
|
* @param scope A scope for calling the callbacks. Set to call the callbacks in global scope.
|
|
1098
1105
|
*/
|
|
1099
|
-
public static executeFromXML(fetchXmlData: string, success: (res:
|
|
1106
|
+
public static executeFromXML(fetchXmlData: string, success: (res: any[]) => void, failed?: (error: string) => void, scope?: any);
|
|
1100
1107
|
/**
|
|
1101
1108
|
* @since 10.0
|
|
1102
1109
|
* Deserializes XML to the Fetch object.
|
|
@@ -1134,7 +1141,7 @@ declare module MobileCRM.FetchXml {
|
|
|
1134
1141
|
* @param failed A callback function for command failure. The error argument will carry the error message.
|
|
1135
1142
|
* @param scope A scope for calling the callbacks. Set to call the callbacks in global scope.
|
|
1136
1143
|
*/
|
|
1137
|
-
public execute(output: string, success: (res:
|
|
1144
|
+
public execute(output: string, success: (res: any[]) => void, failed?: (err: string) => void, scope?: any);
|
|
1138
1145
|
/**
|
|
1139
1146
|
* @since 8.0
|
|
1140
1147
|
* Performs the online CRM Fetch request regardless of the app online/offline mode.
|
|
@@ -1143,7 +1150,7 @@ declare module MobileCRM.FetchXml {
|
|
|
1143
1150
|
* @param failed A callback function for command failure. The error argument will carry the error message.
|
|
1144
1151
|
* @param scope A scope for calling the callbacks. Set to call the callbacks in global scope.
|
|
1145
1152
|
*/
|
|
1146
|
-
public executeOnline(output: string, success: (res:
|
|
1153
|
+
public executeOnline(output: string, success: (res: any[]) => void, failed?: (error: string) => void, scope?: any);
|
|
1147
1154
|
/**
|
|
1148
1155
|
* @since 8.0
|
|
1149
1156
|
* Performs the offline CRM Fetch request regardless of the app online/offline mode.
|
|
@@ -1152,7 +1159,7 @@ declare module MobileCRM.FetchXml {
|
|
|
1152
1159
|
* @param failed A callback function for command failure. The error argument will carry the error message.
|
|
1153
1160
|
* @param scope A scope for calling the callbacks. Set to call the callbacks in global scope.
|
|
1154
1161
|
*/
|
|
1155
|
-
public executeOffline(output: string, success: (res:
|
|
1162
|
+
public executeOffline(output: string, success: (res: any[]) => void, failed?: (error: string) => void, scope?: any);
|
|
1156
1163
|
/**
|
|
1157
1164
|
* Performs the asynchronous CRM Fetch request.
|
|
1158
1165
|
* @param output A string defining the output format: Array, JSON, XML or DynamicEntities.
|
|
@@ -1164,19 +1171,32 @@ declare module MobileCRM.FetchXml {
|
|
|
1164
1171
|
/**
|
|
1165
1172
|
* @class Represents a FetchXml query root entity.
|
|
1166
1173
|
* @param name {string} An entity logical name.
|
|
1167
|
-
* @property attributes {
|
|
1168
|
-
* @property order {
|
|
1174
|
+
* @property attributes {Attribute[]} An array of <see cref="MobileCRM.FetchXml.Attribute">MobileCRM.FetchXml.Attribute</see> objects.
|
|
1175
|
+
* @property order {Order[]} An array of {MobileCRM.FetchXml.Order} objects
|
|
1169
1176
|
* @property filter {Filter} A query filter.
|
|
1170
|
-
* @property linkentities {
|
|
1177
|
+
* @property linkentities {LinkEntity[]} An array of {MobileCRM.FetchXml.LinkEntity} objects.
|
|
1171
1178
|
*/
|
|
1172
1179
|
class Entity {
|
|
1173
|
-
|
|
1180
|
+
/**
|
|
1181
|
+
* Constructs Entity object
|
|
1182
|
+
* @param name An entity logical name.
|
|
1183
|
+
* @param attributes An array of Attribute objects or "*" for all attributes.
|
|
1184
|
+
* @param order An array of Order objects.
|
|
1185
|
+
* @param filter A query filter.
|
|
1186
|
+
* @param linkentities An array of LinkEntity objects.
|
|
1187
|
+
*/
|
|
1188
|
+
constructor(name: string, attributes?: Attribute[] | "*", order?: Order[], filter?: Filter, linkentities?: LinkEntity[]);
|
|
1174
1189
|
|
|
1190
|
+
/** An entity logical name. */
|
|
1175
1191
|
name: string;
|
|
1176
|
-
|
|
1177
|
-
|
|
1192
|
+
/** An array of Attribute objects. */
|
|
1193
|
+
attributes: Attribute[];
|
|
1194
|
+
/** An array of Order objects. */
|
|
1195
|
+
order: Order[];
|
|
1196
|
+
/** A query filter. */
|
|
1178
1197
|
filter: Filter;
|
|
1179
|
-
|
|
1198
|
+
/** An array of LinkEntity objects. */
|
|
1199
|
+
linkentities: LinkEntity[];
|
|
1180
1200
|
|
|
1181
1201
|
/**
|
|
1182
1202
|
* Adds an order by statement to the fetch query.
|
|
@@ -1240,7 +1260,28 @@ declare module MobileCRM.FetchXml {
|
|
|
1240
1260
|
* @property alias {string} Defines an order alias.
|
|
1241
1261
|
*/
|
|
1242
1262
|
class LinkEntity extends Entity {
|
|
1243
|
-
|
|
1263
|
+
/** Constructs LinkEntity object.
|
|
1264
|
+
* @param name An entity logical name.
|
|
1265
|
+
* @param attributes An array of Attribute objects or "*" for all attributes.
|
|
1266
|
+
* @param order An array of Order objects.
|
|
1267
|
+
* @param filter A query filter.
|
|
1268
|
+
* @param linkentities An array of LinkEntity objects.
|
|
1269
|
+
* @param from {number} The "from" field (if parent then target entity primary key).
|
|
1270
|
+
* @param to {number}
|
|
1271
|
+
* @param alias {string} Defines an order alias.
|
|
1272
|
+
* @param linktype {boolean} The link (join) type ("inner" or "outer").
|
|
1273
|
+
*/
|
|
1274
|
+
constructor(
|
|
1275
|
+
name: string,
|
|
1276
|
+
attributes?: Attribute[] | "*",
|
|
1277
|
+
order?: Order[],
|
|
1278
|
+
filter?: Filter,
|
|
1279
|
+
linkentities?: LinkEntity[],
|
|
1280
|
+
from?: string,
|
|
1281
|
+
to?: string,
|
|
1282
|
+
alias?: string,
|
|
1283
|
+
linkType?: string
|
|
1284
|
+
);
|
|
1244
1285
|
|
|
1245
1286
|
from: string;
|
|
1246
1287
|
to: string;
|
|
@@ -1257,7 +1298,16 @@ declare module MobileCRM.FetchXml {
|
|
|
1257
1298
|
* @property dategrouping {string} A date group by modifier (year, quarter, month, week, day).
|
|
1258
1299
|
*/
|
|
1259
1300
|
class Attribute {
|
|
1260
|
-
|
|
1301
|
+
/**
|
|
1302
|
+
* Constructs Attribute object.
|
|
1303
|
+
* @param name A lower-case entity attribute name (CRM logical field name).
|
|
1304
|
+
* @param alias Defines an order alias.
|
|
1305
|
+
* @param aggregate An aggregation function.
|
|
1306
|
+
* @param groupBy Indicates whether to group by this attribute.
|
|
1307
|
+
* @param dateGrouping A date group by modifier (year, quarter, month, week, day).
|
|
1308
|
+
*/
|
|
1309
|
+
constructor(name: string, alias?: string, aggregate?: boolean, groupBy?: boolean, dateGrouping?: string);
|
|
1310
|
+
|
|
1261
1311
|
name: string;
|
|
1262
1312
|
aggregate: string;
|
|
1263
1313
|
groupby: boolean;
|
|
@@ -1271,7 +1321,13 @@ declare module MobileCRM.FetchXml {
|
|
|
1271
1321
|
* @property descending {boolean} true, for descending order; false, for ascending order
|
|
1272
1322
|
*/
|
|
1273
1323
|
class Order {
|
|
1274
|
-
|
|
1324
|
+
/**
|
|
1325
|
+
* Constructs Order object
|
|
1326
|
+
* @param attribute An attribute name (CRM logical field name).
|
|
1327
|
+
* @param descending true, for descending order; false, for ascending order
|
|
1328
|
+
* @param alias Defines an order alias.
|
|
1329
|
+
*/
|
|
1330
|
+
constructor(attribute?: string, descending?: boolean, alias?: string);
|
|
1275
1331
|
attribute: string;
|
|
1276
1332
|
alias: string;
|
|
1277
1333
|
descending: boolean;
|
|
@@ -1279,13 +1335,21 @@ declare module MobileCRM.FetchXml {
|
|
|
1279
1335
|
/**
|
|
1280
1336
|
* @class Represents a FetchXml filter statement. A logical combination of {Condition} and child-filters.
|
|
1281
1337
|
* @property type {string} Defines the filter operator ("or" / "and").
|
|
1282
|
-
* @property conditions {
|
|
1283
|
-
* @property filters {
|
|
1338
|
+
* @property conditions {Condition[]} An array of {Condition} objects.
|
|
1339
|
+
* @property filters {Filter[]} An array of {Filter} objects representing child-filters.
|
|
1284
1340
|
*/
|
|
1285
1341
|
class Filter {
|
|
1342
|
+
/**
|
|
1343
|
+
* Constructs {Filter} object.
|
|
1344
|
+
* @param type Defines the filter operator ("or" / "and").
|
|
1345
|
+
* @param conditions An array of {Condition} objects.
|
|
1346
|
+
* @param filters An array of {Filter} objects representing child-filters.
|
|
1347
|
+
*/
|
|
1348
|
+
constructor(type?: string, conditions?: Condition[], filters?: Filter[]);
|
|
1349
|
+
|
|
1286
1350
|
type: string;
|
|
1287
|
-
conditions:
|
|
1288
|
-
filters:
|
|
1351
|
+
conditions: Condition[];
|
|
1352
|
+
filters: Filter[];
|
|
1289
1353
|
/**
|
|
1290
1354
|
* Adds a attribute condition to the filter.
|
|
1291
1355
|
* @param attribute The attribute name (CRM logical field name).
|
|
@@ -1338,16 +1402,27 @@ declare module MobileCRM.FetchXml {
|
|
|
1338
1402
|
* @property uitype {string} The lookup target entity display name.
|
|
1339
1403
|
* @property uiname {string} The lookup target entity logical name.
|
|
1340
1404
|
* @property value {any} The value to compare to.
|
|
1341
|
-
* @property values {
|
|
1405
|
+
* @property values {any[]} The list of values to compare to.
|
|
1342
1406
|
*/
|
|
1343
1407
|
class Condition {
|
|
1408
|
+
/**
|
|
1409
|
+
* Constructs {Condition} object.
|
|
1410
|
+
* @param attribute The attribute name (CRM logical field name).
|
|
1411
|
+
* @param operator The condition operator. "eq", "ne", "in", "not-in", "between", "not-between", "lt", "le", "gt", "ge", "like", "not-like", "null", "not-null", "eq-userid", "eq-userteams", "today", "yesterday", "tomorrow", "this-year", "last-week", "last-x-hours", "next-x-years", "olderthan-x-months", ...
|
|
1412
|
+
* @param value The value (or values) to compare to.
|
|
1413
|
+
* @param entityName The link name or alias to which this condition is relative to.
|
|
1414
|
+
* @param refTarget The lookup target entity logical name.
|
|
1415
|
+
* @param refLabel The lookup target entity display name.
|
|
1416
|
+
*/
|
|
1417
|
+
constructor(attribute?: string, operator?: string, value?: any | any[], entityName?: string, refTarget?: string, refLabel?: string);
|
|
1418
|
+
|
|
1344
1419
|
attribute: string;
|
|
1345
1420
|
entityname: string;
|
|
1346
1421
|
operator: string;
|
|
1347
1422
|
uitype: string;
|
|
1348
1423
|
uiname: string;
|
|
1349
1424
|
value: any;
|
|
1350
|
-
values:
|
|
1425
|
+
values: any[];
|
|
1351
1426
|
}
|
|
1352
1427
|
}
|
|
1353
1428
|
declare module MobileCRM.Services {
|
package/src/JSBridge.js
CHANGED
|
@@ -402,12 +402,13 @@
|
|
|
402
402
|
/// <field name="isSingularParty" type="Boolean">Gets whether the property represents a singular activity party property. These properties exists as both a Lookup property on the entity and an ActivytParty record.</field>
|
|
403
403
|
},
|
|
404
404
|
FetchXml: {
|
|
405
|
-
Fetch: function (entity, count, page, distinct) {
|
|
405
|
+
Fetch: function (entity, count, page, distinct, aggregate) {
|
|
406
406
|
/// <summary>Represents a FetchXml query object.</summary>
|
|
407
407
|
/// <param name="entity" type="MobileCRM.FetchXml.Entity">An entity object.</param>
|
|
408
408
|
/// <param name="count" type="int">the maximum number of records to retrieve.</param>
|
|
409
409
|
/// <param name="page" type="int">1-based index of the data page to retrieve.</param>
|
|
410
410
|
/// <param name="distinct" type="bool">Whether to return only distinct (different) values.</param>
|
|
411
|
+
/// <param name="aggregate" type="bool">Indicates whether the fetch is aggregated.</param>
|
|
411
412
|
/// <field name="aggregate" type="Boolean">Indicates whether the fetch is aggregated.</field>
|
|
412
413
|
/// <field name="count" type="int">the maximum number of records to retrieve.</field>
|
|
413
414
|
/// <field name="entity" type="MobileCRM.FetchXml.Entity">An entity object.</field>
|
|
@@ -422,12 +423,12 @@
|
|
|
422
423
|
if (typeof page !== "undefined") {
|
|
423
424
|
this.page = page;
|
|
424
425
|
}
|
|
425
|
-
this.aggregate =
|
|
426
|
+
this.aggregate = !!aggregate;
|
|
426
427
|
if (typeof distinct !== "undefined") {
|
|
427
428
|
this.distinct = distinct;
|
|
428
429
|
}
|
|
429
430
|
},
|
|
430
|
-
Entity: function (name) {
|
|
431
|
+
Entity: function (name, attributes, order, filter, linkentities) {
|
|
431
432
|
/// <summary>Represents a FetchXml query root entity.</summary>
|
|
432
433
|
/// <param name="name" type="String">An entity logical name.</param>
|
|
433
434
|
/// <field name="allattributes" type="Boolean">Indicates whether to fetch all attributes instead of explicitly chosen set.</field>
|
|
@@ -439,22 +440,42 @@
|
|
|
439
440
|
if (name) {
|
|
440
441
|
this.name = name;
|
|
441
442
|
}
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
443
|
+
if (attributes) {
|
|
444
|
+
if (attributes == "*") {
|
|
445
|
+
this.allattributes = true;
|
|
446
|
+
} else {
|
|
447
|
+
this.attributes = attributes;
|
|
448
|
+
}
|
|
449
|
+
} else {
|
|
450
|
+
this.attributes = [];
|
|
451
|
+
}
|
|
452
|
+
this.order = order instanceof Array ? order : [];
|
|
453
|
+
this.filter = filter ? filter : null;
|
|
454
|
+
this.linkentities = linkentities ? linkentities : [];
|
|
446
455
|
},
|
|
447
|
-
LinkEntity: function () {
|
|
456
|
+
LinkEntity: function (name, attributes, order, filter, linkentities, from, to, alias, linkType) {
|
|
448
457
|
/// <summary>Represents a FetchXml query linked entity.</summary>
|
|
449
458
|
/// <remarks>This object is derived from <see cref="MobileCRM.FetchXml.Entity">MobileCRM.FetchXml.Entity</see></remarks>
|
|
450
459
|
/// <param name="name" type="String">An entity name</param>
|
|
451
460
|
/// <field name="alias" type="String">A link alias.</field>
|
|
452
461
|
/// <field name="from" type="String">The "from" field (if parent then target entity primary key).</field>
|
|
453
|
-
/// <field name="
|
|
462
|
+
/// <field name="linktype" type="String">The link (join) type ("inner" or "outer").</field>
|
|
454
463
|
/// <field name="to" type="String">The "to" field.</field>
|
|
455
464
|
MobileCRM.FetchXml.LinkEntity.superproto.constructor.apply(this, arguments);
|
|
465
|
+
if (from) {
|
|
466
|
+
this.from = from;
|
|
467
|
+
}
|
|
468
|
+
if (to) {
|
|
469
|
+
this.to = to;
|
|
470
|
+
}
|
|
471
|
+
if (alias) {
|
|
472
|
+
this.alias = alias;
|
|
473
|
+
}
|
|
474
|
+
if (linkType) {
|
|
475
|
+
this.linktype = linkType;
|
|
476
|
+
}
|
|
456
477
|
},
|
|
457
|
-
Attribute: function (name) {
|
|
478
|
+
Attribute: function (name, alias, aggregate, groupBy, dateGrouping) {
|
|
458
479
|
/// <summary>Represents a FetchXml select statement (CRM field).</summary>
|
|
459
480
|
/// <param name="name" type="String">A lower-case entity attribute name (CRM logical field name).</param>
|
|
460
481
|
/// <field name="aggregate" type="String">An aggregation function.</field>
|
|
@@ -465,9 +486,18 @@
|
|
|
465
486
|
if (name) {
|
|
466
487
|
this.name = name;
|
|
467
488
|
}
|
|
468
|
-
|
|
489
|
+
if (alias) {
|
|
490
|
+
this.alias = alias;
|
|
491
|
+
}
|
|
492
|
+
this.groupby = !!groupBy;
|
|
493
|
+
if (aggregate) {
|
|
494
|
+
this.aggregate = aggregate;
|
|
495
|
+
}
|
|
496
|
+
if (dateGrouping) {
|
|
497
|
+
this.dategrouping = dateGrouping;
|
|
498
|
+
}
|
|
469
499
|
},
|
|
470
|
-
Order: function (attribute, descending) {
|
|
500
|
+
Order: function (attribute, descending, alias) {
|
|
471
501
|
/// <summary>Represents a FetchXml order statement.</summary>
|
|
472
502
|
/// <param name="attribute" type="String">An attribute name (CRM logical field name).</param>
|
|
473
503
|
/// <param name="descending" type="Boolean">true, for descending order; false, for ascending order</param>
|
|
@@ -478,16 +508,22 @@
|
|
|
478
508
|
this.attribute = attribute;
|
|
479
509
|
}
|
|
480
510
|
this.descending = descending ? true : false;
|
|
511
|
+
if (alias) {
|
|
512
|
+
this.alias = alias;
|
|
513
|
+
}
|
|
481
514
|
},
|
|
482
|
-
Filter: function () {
|
|
515
|
+
Filter: function (type, conditions, filters) {
|
|
483
516
|
/// <summary>Represents a FetchXml filter statement. A logical combination of <see cref="MobileCRM.FetchXml.Condition">Conditions</see> and child-filters.</summary>
|
|
484
517
|
/// <field name="conditions" type="Array">An array of <see cref="MobileCRM.FetchXml.Condition">Condition</see> objects.</field>
|
|
485
518
|
/// <field name="filters" type="Array">An array of <see cref="MobileCRM.FetchXml.Filter">Filter</see> objects representing child-filters.</field>
|
|
486
519
|
/// <field name="type" type="String">Defines the filter operator ("or" / "and").</field>
|
|
487
|
-
|
|
488
|
-
|
|
520
|
+
if (type) {
|
|
521
|
+
this.type = type;
|
|
522
|
+
}
|
|
523
|
+
this.conditions = conditions instanceof Array ? conditions : [];
|
|
524
|
+
this.filters = filters instanceof Array ? filters : [];
|
|
489
525
|
},
|
|
490
|
-
Condition: function () {
|
|
526
|
+
Condition: function (attribute, operator, value, entityName, refTarget, refLabel) {
|
|
491
527
|
/// <summary>Represents a FetchXml attribute condition statement.</summary>
|
|
492
528
|
/// <field name="attribute" type="String">The attribute name (CRM logical field name).</field>
|
|
493
529
|
/// <field name="operator" type="String">The condition operator. "eq", "ne", "in", "not-in", "between", "not-between", "lt", "le", "gt", "ge", "like", "not-like", "null", "not-null", "eq-userid", "eq-userteams", "today", "yesterday", "tomorrow", "this-year", "last-week", "last-x-hours", "next-x-years", "olderthan-x-months", ...</field>
|
|
@@ -496,7 +532,29 @@
|
|
|
496
532
|
/// <field name="uitype" type="String">The lookup target entity logical name.</field>
|
|
497
533
|
/// <field name="value" type="">The value to compare to.</field>
|
|
498
534
|
/// <field name="values" type="Array">The list of values to compare to.</field>
|
|
535
|
+
if (attribute) {
|
|
536
|
+
this.attribute = attribute;
|
|
537
|
+
}
|
|
538
|
+
if (operator) {
|
|
539
|
+
this.operator = operator;
|
|
540
|
+
}
|
|
499
541
|
this.values = [];
|
|
542
|
+
if (value) {
|
|
543
|
+
if (value instanceof Array) {
|
|
544
|
+
this.values = value;
|
|
545
|
+
} else {
|
|
546
|
+
this.value = value;
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
if (entityName) {
|
|
550
|
+
this.entityname = entityName;
|
|
551
|
+
}
|
|
552
|
+
if (refTarget) {
|
|
553
|
+
this.uitype = refTarget;
|
|
554
|
+
}
|
|
555
|
+
if (refLabel) {
|
|
556
|
+
this.uiname = refLabel;
|
|
557
|
+
}
|
|
500
558
|
},
|
|
501
559
|
},
|
|
502
560
|
Platform: function () {
|