Is it possible to save a "preferred view" to the default view? - xcode

I'm essentially creating a settings page which will call up different views (using different color schemes) but I cant figure out how to save a view as the default view once the user selects it. Any ideas regarding this or a more efficient way to do this? Thanks!

Under Project settings -> Summary -> There should be a "Main Interface" drop down and from there you can select the Default View. Hope this helps!

Related

Odoo v12 finding view ID

Im trying to find view ID to edit it. I know about developer options, but in this case it is not working...
Odoo v12 community version. Trying to edit a view adding a new customer, when adding a followers into task in project module.
Tried to find it in technical -> views but without success
More details - short video showing my problem.
https://www.youtube.com/watch?v=q-oO7upPvto&feature=youtu.be
Beforehand: it is the view base.view_partner_simple_form.
How to find out? Yes, Odoo's debug mode is not helping that much here. But you can use it to find out what model is behind a field where you used "Create and Edit" context menu. In this case it's the model res.partner.
And from there you have to do a detective's work, or a bit like that. Just switch to the views list in technical and search for form views for model res.partner without a parent (base views not inheriting from other views). You will find 5-6 views and have to look into them one by one to find the right one.
For this case that is pretty simple, because there is only one view for res.partner model with so less fields in it.

Oracle APEX Interactive Grid - Can I Create default Control Break view?

Does anyone know if it's possible for me to create a Control Break view as the default view when a user views the page?
What i mean is, instead of viewing all 1000 rows of a report, I would like it defaulted to Control Break display it by a certain column.
Perhaps see the image of the default view that i require.
http://prntscr.com/hgm6bw
Yes. Put your control break on and then click Actions > Save Report then save as default report settings > primary report.

Bind various panaroma/pivot items using MVVM

could someone help me with design/understanding the problem: what I need to achieve is page with Panorama/Pivot control, where its items (panos/pivots) will be set via binding, using standard MVVM pattern. Problem is I need to have different content (different user controls) on each pano/pivot, that means If I define a panorama/pivot item template, I doom all of them to be alike, which is not what I want.
I found this question here already asked: Databound windows phone panorama with MVVM design but its still not clear to me. Many thanks.
If you have a dynamic page count on panorama/pivot you could use selector to choose what template is right according to your content.
Implementing DataTemplateSelector
Also, Data Binding Pivot to MVVM may help you too
You could add a dependency property to the user control that you want to use as a data template, a dependency property named "Type" for example and depending on that property you can change the layout of your user control (data template) - for example you could have multiple grids inside your user control and you could show and hide them depending on the type.

How to create a side bar like twitter for OSX ? Suggestions about development choices

I'm curious to know how to create the sidebar used in twitter and many other Apps
What i'm asking for is not about graphics, but i'd like to know which is the better way to create a structure to permit switching between different sections.
I don't like asking for help without start by an opinion, thus, this is mine:
Generic view structure would be created with a NSSplitView
I Need a generic Model class managing sections and taking a pointer to the current one.
Here i'd add informations about image used for any section etc... (something like a custom UITabBarController for iOS.
The Left view of the split View would be connected to the generic Model and would be able to present its section and get the current one. Pushing a button will ask the generic Model to change the current section and load content in the Right view (some doubts about this use a Model that way :P probably not the better one)
The Right view loads other view controller as requested by left View (i have may doubts about how do that!)
I'm on the right way ? how would you build a structure like that of Twitter ?
(Off topic: I'd really appreciate correction of my terrible English to keep this question suitable for all users)
Here's what you need https://github.com/erndev/EDSidebar
That's pretty much how I would do it although what you call a "generic model" object, I would call a controller (because it fits in the controller part of MVC).
The right view would be a Tab View with the style set to "tabless" so you don't get the selection buttons at the top and the individual views within the tab view would be selected by the controller using -selectTabViewItemWithIdentifier:
That's how I would do it anyway.

show joomla component in menu item type

I made a component for Joomla and it's working ok with the direct url: http://www.something.com/index.php?option=com_pbform
The problem is that when I try to add it in the menu.
When I change the menu item type, the component is listed, but when I click on it I don't get a view to apply to the menu item.
Do I have to configure anything else in the component?
Thank you!
Add your component to jos_components table:
INSERT INTO jos_components (name, link, admin_menu_link, `option`)
VALUES (
'Greetings', 'option=com_greetings', 'option=com_greetings', 'com_greetings')
If you have all your views set up correctly you need to add your component into the Joomla database.
Functions and view folders must have no hyphens or underscores.
Good
/view/viewone
/view/viewtwo
/view/viewthree
Bad
/view/view_one
/view/view_two
/view/view_three
If you setup your component in the MVC fashion then you would have a views/layout folder structure in your component folder. Each different view you have in there will be listed in the menu types under your component name. This is where the views can be chosen.
For e.g. in your component folder structure you have
views/view_a
views/view_b
views/view_c
then in the Joomla menu selector you would have those choices to select as a view.
If you haven't setup your component as MVC then have a look at this tutorial on how to do just that http://www.joomladevuser.com/tutorials/components
I hope that helps!
Cheers
You may need a metadata.xml file for each of your views. See http://docs.joomla.org/Adding_view_layout_configuration_parameters for more details
Use this simple solution. You expected to find your new component in the menu item type drop-down list, but its not there! Instead of trying to cope with that ugly MVC scrap do this:
select "single article" from the list and SAVE your new menu item
now open your joomla db
select _menu table
edit your menu row
change link from article to index.php?option=com_yourcomponent
save and take a look at administrator menu manager
I did migrate my Joomla 1.5 collection of Ajax/PHP scripts to Joomla 1.7.3 using this solution in just one day.
Piece of cake.

Resources