I thought i was removing the Delegation warning by using a collection however it still remains. Can anyone suggest a way to remove the delegation warning, or is it not possible?
ClearCollect(OneNoteCol,Search(AllResources_1, "OneNote","Title"))
Thanks
Solved! Go to Solution.
Hi @BenGillard,
The best way is to load first your datasource into a global variable first (put it in an OnStart or OnVisible event):
Set(DS_AllResources,AllResources_1)
Then you can proceed with the ClearCollect without having any delegation issue:
ClearCollect(OneNoteCol,Search(DS_AllResources,"OneNote","Title"))
Tell us if this does the trick...
Emmanuel
Hi @BenGillard,
The best way is to load first your datasource into a global variable first (put it in an OnStart or OnVisible event):
Set(DS_AllResources,AllResources_1)
Then you can proceed with the ClearCollect without having any delegation issue:
ClearCollect(OneNoteCol,Search(DS_AllResources,"OneNote","Title"))
Tell us if this does the trick...
Emmanuel
I now have this is the OnVisible:
Set(DS_AllResources,AllResources_1);ClearCollect(OneNoteCol,Search(AllResources_1, "OneNote","Title"))
It works and gives correct result as it did before but still has delegation warning on the search part of the formula.
Am i doing something wrong?
Thanks
It's because you need to search on the DS_AllResources datasource now, not on the AllResources_1 anymore 🙂
So your OnVisible property should be:
Set(DS_AllResources,AllResources_1);ClearCollect(OneNoteCol,Search(DS_AllResources, "OneNote","Title"))
Apologies, I was having a moment!
Thanks so much for the help.
User | Count |
---|---|
133 | |
125 | |
73 | |
70 | |
69 |
User | Count |
---|---|
203 | |
201 | |
64 | |
63 | |
52 |