Hello Community,
hope you can help me with my little Problem.
I have multiple Sharepoint Lists as a Datasource and try to realize the following.
On the first Screen i have a GalleryControl to visualize Data from the main datasource (List 1) but also data from
other Lists that are in relation with List 1 (via an ID).
So for example in List 1 (Members) i have the follwing Data
Members
Name Adress City ID
Frank TestStreet Barcelona 15
Jack TestStreet 3 Budapest 16
List 2 (TravelAndWorkingExperience) contains the following
TravelAndWorkingExperience
ID Country Member ID
1 Austria 15
2 Spain 15
3 Netherlands 15
4 Austria 16
To combine these Lists for the Gallery Items property i use the follwoing command
AddColumns(Members, "TravelCountry", Filter(TravelAndWorkingExperience, 'Member ID' = Members[@ID]))
To show the data i set the Text property for the label to ThisItem.Name to get the Name of the Members List and
to show the TravelAndWorkingExpirence Countries i set the Textproperty to Concat(ThisItem.TravelCountry, Country.Value, ",").
This works so far :).
Now i have a 2nd Screen with a Editform. I tried to set the DataSource of the Editform to Members and the Item Property to PersonResult.Selected (PersonResult is the Name of the GalleryControl from the first Screen).
This way i get the Errormessage Invalid formula. Expected a value compatible with 'DataSource'. I did a little research and found that the Datasources have to be the same, which maybe means in my case that i modifed the Datasource of the Gallerycontrol with the AddColumns Function?
So now i tried a workarround by setting the first Screens OnVisible property to
ClearCollect(MemberResult, AddColumns(Members, "TravelCountry", Filter(TravelAndWorkingExperience, 'Member ID' = Members[@ID]))) to use MemberResult as the Value for the Gallerys Item Property.
I then set the DataSource of the EditForm to MembersResult. Now i get the Results i want, BUT 😄 now the Formcontrol blames me that "This form isn´t connected to any data yet. Connect to data", so i guess the SubmitForm Function won´t work too?
Is there a easier way to realize the functionallity i am trying to realize? (hope so :))
thx much in adv
Manni