is there a way to make a Status-field display like an dropdown/select-box instead of radio-buttons? I have about 10 status' and I would like to display them as a dropdown instead.
I wasn't able to find anything about this in the documentation, did I miss something?
Thank you in advance!
Not the "core" status interface, but you can duplicate the code and create a custom one in a select instead. The new interface would go into the custom extensions directory in the API. Should be pretty straightforward.
https://docs.directus.io/extensions/interfaces.html
Related
How can I use a button object in Qlik sense the same way it is in Qlikview? Qlik Sense has no button object in the default objects as it is in Qlikview.
Thanks in advance!
Ziad
This is not currently within QlikSense, however extensions can be used to add more functionality.
How to add extensions
https://community.qlik.com/docs/DOC-7033
Where to find extensions
http://branch.qlik.com/
This extension may be what you are looking for
http://branch.qlik.com/#/project/570663af9a200590510ae281
there is a link for extension which enables you the option of downloading the extensions for qliksense. There by u can create the buttons like qlik view. Follow the steps as the link tells you.
http://branch.qlik.com/?&_ga=1.205648019.1497078496.1393695932#!/project/56728f52d1e497241ae698a0
have a look at https://github.com/stefanwalther/sense-navigation
This solution not only allows you to add a button to your sheet, but also to selection from a variety of actions like:
gotoNextSheet
gotoPrevSheet
Set variable value
open website
...
Although the question is quite old, it is worth noting that buttons are now part of standard Qlik Sense charts.
I am implementing a Drupal 7 signup form (through a custom module) where users should be able to indicate their location (Country + Province/State) using dropdown lists.
From the description of Location module, this seems possible (by using APIs or someother way). I am new to Drupal and have no idea of how to implement this in the custom module programatically (using location module's APIs). I've googled about this for a couple of days, but couldn't make much progress.
Any sample code or leads would be greatly appreciated.
Thanks a Ton.
If location module provides what you what, you should use it. Otherwise try with address field module.
Ok I finally figured out how this is done. We just need to call the api function like here $country = array(location_get_provinces("us"));
This returns the provinces of the country which is supplied as a parameter.
How to show Quick Help for the methods which we wrote ...?
Like for inbuilt function when we right click on it & Click Quick Help then we get all info about that method like that I want to do for user defined methods so that any one come to know that method takes which parameter and each parameter for which purpose?
For more explanation, see these two images:
Here is a solution for that. Also check apple documentation. You might have to create document set and install it in Xcode.
Edit: Here is another similar post, How do you populate the Xcode 4 "Option+Click" popover?
There is an open source tool called appledoc which helps with this. You can provide your own documentation in the header files and then run the appledoc script which will (depending on your settings) generate the docsets, install them into Xcode, create a HTML for the documentation as well as rss feeds so that changes to the documentation can be published.
How I can create a code in XCode 4.2.1 what will create NSTableView and add just couple of items to it?
All what I wanted to do is:
1) Window where is NSTableView
2) I have an array of strings in NSArray which I like to show in that NSTableView
3) All of this should be done in code. So I don't want to learn how to add this action happen when you press button (I know already how to do actions when user click buttons etc), I just want that application launch -> draws the table where is those items from my array. That's it, nothing more.
And yeah I have understood that I do not add items to NSTableView directly. That is not the point in this question. I just mean that I want to show couple of items in that table but I have no and kind of clue WHERE I should add my data from my array.
I have tried to google for example pages for hours (just too many and have not find help) but I will always be stucked in the part when
a) I must do something in the Interface Builder and the images of the interface builder are from version 2.x or 3.x and I have 4.2.1 and it is totally different (new to XCode...). Surely I have drawn my TableView element to UI but I mean delegations etc. Are those necessary at all? Can those be made from source code?
b) Code just does not work anymore because language (Cocoa or Objective-C, I don't know) has changed and I don't know how and what I have to do to make it work on newest version of XCode.
c) There is too much different ways told: "use binding", "you must create new class what is NSTableViewDataSource" etc. I have no any kind of clue what is preferred way, is another way optional or it is "you should use this because another is going deprecated soon" or something.
So please, can somebody give help in step-by-step what I exactly have to do? Should I create some bindings? If so, how and where? Do I have to create DataSource component myself? Are those ways valid any more? If I have to, how I can create it? Create a new class and implement it as a NSTableViewDataSource and then use it? Is that way valid any more and if it is, can sombody show code what is as simple as possible?
I have also checked Apple Documentation page many many times, checked those example codes but there is just too much totally unrelated stuff that I just don't understand at this point so they are totally useless (I mean, I don't know what is required for this task, what are not etc.
I would be very happy if somebody can help short tutorial step-by-step what to do. I mean "step-by-step" like:
1) Create new project
2) Draw NSTableView in project
3) Create new class with this name
4) Write this code: blah blah blah
5) Create another class with this name
6) Write this code
7) Run and see those items from array in NSTableView using (bindings/datasource/whatever is preferred).
Thanks :)
Your tableview needs a datasource. Your datasource is a custom class, it implements the "NSTableViewDataSource" protocol. This protocol contains a few methods that you can use to tell the tableview what data you got.
this includes the objectValue ( the value of the NSCell that is displaying your data on the specified row, and a method that returns the amount of rows the tableview has ( the amount of items in your array ).
Here a tutorial I found by googling:
CocoaDev.com NSTableView tutorial
You can also implement the NSTableViewDelegate protocol which allows some greater control. Like what rows you can select, or some extra configuring of a custom tableview cell.
I must say that back in the day when I started developing desktop applications ( only had experience with web technologies ) that this design pattern confused me as well. Hope you will get your mind round it soon.
I would like to create a filter bar like the one in the Mail app:
Do you have any suggestions on how I could do?
My application is targeted only at OS X 10.7+, so I'd really like to use the most modern method available.
Thanks.
MGScopeBar is an open source component that will mostly do what you want. The appearance is not exactly the same, but you could easily change that.
That is called FavoritesBarView in the Mail application. it looks like its source code exists in webkit source code.