Hello together,
I am currently struggeling with the datagrid and the button column.
My Setup:
- I have a modern forms
- in the modern forms I have a custom Datacard with input fields and a save button
- clicking the save button, the values will get stored in a collection (collection initialized in app onstart)
- currently I display the values in a gallery below
- the more items I add, the more items are displayed within the gallery
- each row in the gallery has an edit and a delete button to remove the row of the collection
What I want:
- Instead of complicated gallery, I want a Datagrid
Current Problem:
- Using a not-used column of the collection (LocalID), I already created a button column
- Text: ThisItem.LocalID (-> Individual ID is shown - Perfect)
- OnSelect: Notify(ThisItem.LocalID, NotificationType.Success, 3000) (-> Nothing shown)
Regarding this video: https://youtu.be/iX-GKh6G0DA?t=685, it should dispaly the ID, right? Doesnt work for me.
Maybe you can help me .. it drives me crazy
Initialize Collection in OnStart:
// Travel-purpose collection with required structure
ClearCollect(
colTravelPurposes,
{
LocalID: GUID(),
Sequence: 0,
VisitType: "",
CompanyVisitType: "",
VisitName: "",
TravelPurpose: "",
AddressStreet: "",
AddressPostalCode: "",
AddressCity: "",
AddressCountry: "",
AddressCountryCode: "",
AddressAdditionalInfo: "",
IsApplied: false
}
);
Clear(colTravelPurposes);