Dear All,
I'm struggling with a problem of create and edit records based on a gallery item.
Let me try to explain.
1. I've created an overview screen with a gallery and a button to add a new record outside the gallery. (attachment Capture1.png)
2. On the add button, I want to open an edit screen to create a new record. So on the OnSelect, I have put the following statement : Navigate('EditCreate Screen',ScreenTransition.None)
3. This opens a data entry screen with two text input controls where i can enter data and save it to a collection that will be shown in the gallery i've mentioned in step 1. (attachment Capture2.png)
OnSelect of the save button, I've added the following code : Collect(
colOverview,
{
WorkDescription: TxtCountDrives_1.Text,
BudgetNo: txtBudgetNo_1.Text
}
);
Navigate(
'Overview Screen',
None
)
4. This will add a record in the gallery as expected (attachment Capture3.png)
5. The next step i want to achieve is that when someone presses the pencil, the record is shown in the 'EditCreate Screen', so the user has the possibility to change the data and update the collection.
PS I'm not using data forms.
I'm not achieving to create a solution form step 5 and to get the difference to populate the fields with the value from a record of the collection and to show a blank screen when the screen is opened from the Add button.
I hope someone can help me.
Kind regards
Steve

Report
All responses (
Answers (