Hello, I have the following problem. I have two lists in sharepoint, one called tbUnit and another called tbStock.
In tbStock I have the following fields:
ID: autoincrement
Size: Text
Quantity: Number
UniformId: Number
Unit: Lookup (lookup on the ID field of the tbUnit table)
Unit:Name: "Unit Name"
In tbUnit I have the following fields:
ID: autoincrement
Name: Text
I'm trying to insert a record in tbStock with the following command:
Patch(tbEstoque;
Defaults(tbEstoque);
{
Tamanho: txtTamanho.Selected.Nome;
Quantidade: Value(txtQuantidade.Text);
IdUniforme: Value(txtIdUniforme.Text);
Unidade: {
Value: txtUnidade.Selected.Nome;
Id:LookUp(
tbUnidades;
Nome=txtUnidade.Selected.Nome
).ID
}
}
)
The above command is not generating an error, but the inserted record has a blank value in the field Unit of tbStock. Could you guide me why this error is occurring?
Thanks!