I create the menu in this video: https://www.youtube.com/watch?v=3S0h2nODcxM
At 19:20 he create a collection, but that don't work in my Comonent. I add this into the OnSelect from the button:
ClearCollect(colMenu; Table(
{
Title: "Home";
Screen: App.ActiveScreen;
Icon: Icon.Home
};{
Title: "Currency";
Screen: App.ActiveScreen;
Icon: Icon.Currency
};{
Title: "Document";
Screen: App.ActiveScreen;
Icon: Icon.Document
}
)
But why does that not work?
You are missing one of the fields in the collection. @RezaDorrani has a field that is a reference to the screen that you will navigate to in the component and a menuID. In your case you point all the screens to the same reference App.ActiveScreen and don't have an ID to differentiate them.
Oh, sorry it's the false link, it's this one: https://www.youtube.com/watch?v=dP74npyyvGc
at 26:15
Take a look at the video somewhere around 26-28 minutes. You'll see that he is changing the entries in the table (in the collection) to point at actual screens, not just at app.activescreen. That is essential for the component to navigate from one screen to the next.
@Pstork1 I think I have the problem, if I write that into the OnSelect the error come with the name „colMenu“ that‘s the Problem with this collection, do I have to create this Collection first, because I don‘t saw this in the video?
He creates the collection at 26:16 in the video. The only reason for creating the collection is so he doesn't have to hard code the table in each instance of the menu control in his test app. Its common to get an error when creating a collection the first time because the name isn't recognized. As soon as you run the app and press the button once it should go away.
@Pstork1 But that also don't work, I ignore the error and do the navItems to my Collection, I click the button and ... nothing happens. I stop my App and the error is there. I look into the collection menu, but there‘s no collection.
Please show me the code you are using to create the collection.
ClearCollect(colMenu; Table(
{
Title: "Home";
Screen: Screen1;
Icon: Icon.Home
};{
Title: "Currency";
Screen: Screen2;
Icon: Icon.Currency
};{
Title: "Document";
Screen: Screen3;
Icon: Icon.Document
}
)
User | Count |
---|---|
262 | |
110 | |
98 | |
54 | |
39 |