getField() {
BX24.callMethod('entity.item.get', {
ENTITY: 'wheelfortune', SORT: {'ID': 'ASC'}
},
(result) => {
let sections = result.data();
this.fields = sections.map((field) => ({
ID: field.ID,
NAME: field.NAME,
SECTION: field.SECTION,
'IS_EDITFIELD': false
}))
console.log(this.fields);
if (result.more()) {
result.next();
}
});
},
getField() {
BX24.callMethod('entity.item.get', {
ENTITY: 'wheelfortune', SORT: {'ID': 'ASC'}
},
(result) => {
let sections = result.data();
let newSections = sections.map((field) => ({
ID: field.ID,
NAME: field.NAME,
SECTION: field.SECTION,
'IS_EDITFIELD': false
}))
this.fields = newSections.concat(this.fields);
if (result.more()) {
result.next();
}
});
},
getField() {
BX24.callMethod('entity.item.get', {
ENTITY: 'wheelfortune', SORT: {'ID': 'ASC'}
},
(result) => {
let sections = result.data();
const newSections = sections.map((field) => ({
ID: field.ID,
NAME: field.NAME,
SECTION: field.SECTION,
'IS_EDITFIELD': false
}))
this.fields.join(...newSections)
console.log(this.fields);
if (result.more()) {
result.next();
}
});
},