I have 3 views in a window. The first view has content from a tree viewer. The second view has content in FillLayout. Both views get the data from the DB.
Once I click on a link from the second view, I get the new window popping out. But this window looses both first and second views. I don't know what I am missing here.
Any insight is highly appreciated.
I think the window you are opening is showing just the views which are not opened in other windows, thats why you see just a single view. You should search for other ways of opening a new window (as far as I know there are many ways and openWorkbenchWindow is just one of them)
Have a look here for some help, looks quite similar to your problem.
Related
I have kind of unusual issue with one of my subgrids in CRM.
On the Main form for an entity i have several subgrids, each of them for records from different entity.
When creating new record from subgrid, all of the forms are opened as expected, except one. It opens two quick create forms.
Forms are not opened normally, one following another. First one looks fine, except there is display name displayed twice. Another form doesn't display any field, just the close button. You can see the issue in the attached images.
I have checked Command for "New" Subgrid button in Ribbon Workbench, and there is nothing more than standard command. I have also tried to do this in several browsers, but the issue continued to appear. I have checked JavaScript functions and none of them is connected with this form.
Now I have lack of ideas what could cause this issue.
I need help for this if anyone had similar issue.
I've bundle of control save in .vcx file but I need to activate it to display it when i switch to different activepage in pageframe.
Could anyone guide me how to code and which kinds of event should i make on page frame switch, click or whatelse UIENABLEEVENT.
Thanks.
First, you might want to click on Help -> Tour for site etiquette and start voting / checking your answers so people know what worked or not that help you and others with similar issues.
Now, back to you question... If you have a form with a pageframe, make sure you have the "Properties" sheet open, it helps to ensure which object you are actually working with until you get more familiar with the IDE.
Once you click on the pageframe control, if you right-click and then select "Edit", that will bring you to the individual PAGE level of the pageframe. Once the PAGE is the basis of the focus you can put any control on it from either the toolbar, or if your project is open and you expand your .VCX class library, you can grab any control and put in on the page.
If you have multiple pages, once you click on the alternate pages, you will see that the first page (or whatever page) is no longer visible and the new page is available for you.
The actual handling of the pages on the pageframe for clicking / focus is automatically handled for you unless you want to do something extra.
I'm trying to find a tutorial or book, that explain who to make a menu application, like the iPod/iPad menu, with images as buttons, and pages. What i'm trying to do, is a menu, with a Popover window, when an option from the popover is selected, then the menu is filled (with code) with the buttons/images, that can be located in more then a page.
Thanks you in advance
Okay there are two things you can use here:
The Three20 library , which has several extra components you can use as well: repository here
If you want just a view similar to that and nothing else, you can go with myLauncher: repository here
I know there are probably more, but these were the main two I looked at when I went looking for a similar view.
I'm very new to RCP and I want to build a window with a TreeViewer as a menu on the left and views on the right.
When clicking on a TreeItem the current view should be replaced with the new page.
The Views shall not be moveable or closeable.
The menu works fine so far but I can't get the views to act like I want.
I tried using a Placeholder within my perspective:
layout.addStandaloneViewPlaceholder("gui.page:*", IPageLayout.TOP, 0.5f, editorArea, false);
The IDs of the views all start with gui.page...
When I add one of the pages as standaloneView to the perspective it looks just as I want it.
But when I add a View by calling
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(pageID);
in the listener of the TreeViewer, the Pages get tabbed and are move- and closeable.
A good example of what I want to have is the preferences dialog of eclipse. I searched in the eclipse source but I couldn't find the way they made it.
Any suggestions on how to make this?
Views won't get replaced. So you have to hide the previous view by calling IWorkbenchPage.hideView()
Hi all
I am a newby app developer infact I am still in high school, I am making a radio app and I have made the channel list using interface builder (mainwindow.xib in xcode) now I want to be able to click on a link/button in the main window and that take me too a new page in the app where I can have a play button and maybe a symbol etc. I know it is probably a trivial question but I am stumped, but how do I go about doing this if someone could place it out in step by step or even a few screenshots it really would be apreciated?
Many Thanks in advance
David
So, basically you want to be able to use a UIButton to take you to an entirely new view controller? Well, for your particular case, I'd recommend trying a Tab bar controller. When you create a new application, it gives you an option for what type of template you want, and Tab bar controller is one of them. This creates a black bar across the bottom that lets you cycle between several different independent view controllers. Just create a new tab bar application, and copy/paste your existing code into one of the views, then use the other one(s) to do whatever else you have in mind. Hope this helps!