Hi. Trying to create a small app for ordering some products.
I have a list called "Ordre" with the columns OrdreID(text), Butikknavn(text), Bestiller(text), Produkt(text), Antall(number), Dato(date).
And a list called "Produketer" with the columns Produkt(text), Spesifikasjoner(text), Bilde(image).
I have created a gallery that retrieves from Produkter. Here I insert a field called txtAntall which will retrieve the quantity they want to order.
In the header there are two fields called "Butikknavn" and "Bestiller". The button is inserted in the footer, and this will then retrieve data from txtAntall,
"Butikknavn" and "Bestiller". Then send this data to the list Ordre. I have a code but it just fails. I have a Norwegian version. This code now fails at "," after
"Ny bestilling. But I don't understand why.
ForAll(
Filter(Galleri.AllItems; Value(txtAntall.Text) > 0) As CurrentItem;
Patch(
Ordre;
Defaults(Ordre);
{
Tittel: "Ny bestilling",
Butikknavn: CurrentItem.txtButikk.Text;
Bestiller: CurrentItem.txtBestiller.Text;
Produkt: CurrentItem.Tittel;
Antall: Value(CurrentItem.txtAntall.Text)
}
)
)
Notify("Bestillingen er sendt!", NotificationType.Success);;
Reset(txtButikknavn);;
Reset(txtBestiller)