Hi,
I have a gallery which contains questions and answers. Each question set is identified by TestIdentifier. E.g if i have a question set of 20 questions then its testidentifier will be same. I am putting all questions in collection . then I am iterating Collection & updating corresponding record in db using patch and lookup. This code is not giving error & also not doing anything. Below is the code & urgent help will be appreciated.
Clear(QuestCollect);
Collect(
QuestCollect,
ForAll(
Gallery_1.AllItems,
{
Answer: txtAnswer.Text,
QuestionID: lblQuestionID.Text,
TestIdentifier: lblTestIdentifier.Text,
Comments: txtComments_ExternalCor.Text
}
)
);
ForAll(
QuestCollect,
Patch(
'Test QuestionSet',
LookUp(
'Test QuestionSet',
QuestionID = QuestCollect[@QuestionID] && TestIdentifier = QuestCollect[@TestIdentifier]
),
{Answer: QuestCollect[@Answer]},
{Comments: QuestCollect[@Comments]}
)
);