Do you how can I move (drag and drop) a Push Button widget from one Content to another in mapp View?
I’m trying to drag a Push Button widget from one container to another in mapp View, but I get an error and the action fails.
Are there any restrictions when moving widgets between different Content containers?
Is there a recommended way to do this without losing properties or breaking the structure?
maybe a little bit more background info of what you are trying to accomplish would be nice. At the moment the compiler error looks like a simple configuration mistake.
I did create a drag and drop sample the way I understood from your question but you have to understand that drag and drop is really moving the object itself into a new spot. The place you are dropping the button into already needs to contain the button and you are just making it visible while you make the original button in your navigation content invisible.
GroupBox1 is on my navigation content with a button that’s draggable.
GroupBox7 is on a different content with a copy of the same button.
You can see the name of the button changing after it’s dropped even if the dragged objects maintains the name of the dragged.
Here is the example EventBinding for the main content and the button in GroupBox7
Thanks for replay, I would like to have a bar where I could select the most used navigation accesses and drag them to a shortcuts bar, where I can choose my most frequently used accesses and/or change them if needed—basically, to have a shortcuts bar.
@novi
it’s definitely possible and in my opinion pretty straight forward but maybe not the most efficient.
What you see below I put together in about 90 min and it’s by no means complete but a pretty solid starter implementation. The core thought is that each favorite spot contains all option buttons and depending on which option button is dropped into the GroupBox that button is then set visible. The GroupBox with 9 option buttons is then simply copied.
The ImageList is assigned to a session variable which is set to a value by the option button, the “same button” in each GroupBox is doing the same.
If I would to implement this for myself I would most likely create a compound widget to use for each of the Favorites groups.
For reference here are the two main parts for this sample.
Hi Marcel, thank you for your support. I think I didn’t phrase the question correctly. I have two containers:
Main content, where I have all the navigation buttons like recipe, settings, diagnostics, etc.
Navigation content, where I would like to have shortcuts so that, regardless of which page I’m on, I can have quick access from the navigation content.
The solution you proposed only I 've been able to used within the same content (page). Is there any method to be able to drag and drop between different contents (pages)?
I appreciate your support since this is my first project with MappView.
Noe, what I’m sharing also works between two different contents because that’s how I understood your request.
The navigation content is used on different pages and once configured with your favorites it’s going to stay like it until modified.
Below you see a 4 area page layout and the image list index is bound to the session variable either the Page 0 option buttons are writing to or the buttons from the Favorites content.
All interaction is content based so really has nothing to do with the pages. The unfortunate thing with this solution is that the you have to create the actions for each button that can be a favorite twice.
First in your Main content and again for each possible instance in your Navigation content. I can try cleaning up my sandbox project and share it.