Monday, 20 January 2014

Update enum field through dialog enum

void clicked()
{
Dialog          dialog;
HcmWorker       hcmWorker1;
dialog = new Dialog("Select value to Update field");
dialog.addText("Update Worker");
field = dialog.addField(enumStr(UpdateWorker));
dialog.run();
if (dialog.closedOk())
{
hcmWorker1 = HcmWorker_ds.getFirst(1);
while (hcmWorker1)
{
hcmWorker1.UpdateWorker = field.value();
hcmWorker1.update();
hcmWorker1 = HcmWorker_ds.getNext();
}
}
}

No comments:

Post a Comment