Skip to Content
0
May 08, 2020 at 03:29 PM

multiple selection of a listpicker with a createentity action

192 Views Last edit May 08, 2020 at 03:30 PM 2 rev

Hi Experts

I am trying to store all selected items from a list picker with a create entity action. I enable the allowmultipleselection property of the list picker, and now I need to assign the selected items to an entity in the OData service, I am trying with a createentity action, but it always stores 1 single item from the list picker.

How can I assign the selected items from the list picker to the OData service in my MDK application?

Also try a rule with all selected items, and was unsuccessful, it also stores in entity 1 item.

export default function ValidarFechaPlan(clientAPI){
	let dialogs = clientAPI.nativescript.uiDialogsModule;
	var pageproxy = clientAPI.getPageProxy();
	var fc_rec = pageproxy.evaluateTargetPath('#Page:CrearTareaEquipoPage/#Control:FC_PERNR_REC/#Value');
	//return fc_rec.toString();
 	fc_rec.forEach(c => {return `${c.ReturnValue.toString()}`});
}

What do you recommend me to do?

Greetings from Colombia

Attachments

listpicker.png (9.4 kB)
actionequipo.png (23.8 kB)