I'm fairly new to looker. There's this explore I'd like to use to build a table. It has all the view files I need joined to it, mainly one view file named insights.view. However, insights.view is currently used with dates and I'd like to create a new explore minus these date dimensions. In the current explore these date dimensions are required filters. How should I go about creating this new explore with only the dimensions I need and w/o the date filters from the insights.view?
It doesn't sound like the date dimensions are the issue, but the fact that the explore that currently exists has required filters on those dimensions.
You could copy/paste the explore definition and not bring in the required filters.
Or it'd be better to extend the Explore and try something like this depending on how they made the filters required:
https://help.looker.com/hc/en-us/articles/4420210624659-When-extending-an-explore-can-I-exclude-an-existing-parameter-like-always-filter-or-conditionally-filter-on-the-new-extended-explore-Community-
I have looked all over the web for this information and I'm tempted to assume that's it not possible at this point. To be clear, I have:
defined a temp-table(x) and 4 fields
defined a query(q) for the temp-table(x)
defined a browse(b) for the query(q)
defined a frame(f) for the browse(b)
filtered my data, created temp-table(xx), and assigned the filtered data to the temp-table(x)
Opened a query(q) for each temp-table(x)
What I'm unable to do within the define browse(b) query(q) display statement is use skip to place one of the fields from temp-table(xx) on a different row. Any suggestions?
ABL does not support a multi-line browse. Depending on your OpenEdge release, you should use an Active X or .NET Control.
Actually, I try to make a filter criteria who list the available "structures" in my view. I'm using the Views Selective Filter module who does what I want. But in that list, that show the id of my structure and not the name. (I can't show you with an image, actually)
I want that my "structures" name replaces the id in my list (but not the value).
If you have any idea, I would be very grateful.
I found a solution.
I have edited the Views Selective Filter module to allow him to detect and load my structure name.
After that, I just have to change the text of my option before that the id has assigned in.
I'm trying to get properties for one single node such as the name I've set for it or something. How can I go by just selecting this one node? I can do it with an event
e.currentTarget.selectedItem.#name;
But I need to grab it without the event, how can I go by doing this?
it's better to get data from your data provider for xmlTree, because it's a XML/XMLList you can always use construction like
myxml.nodename[0].#attribute
I have two views that I would like to combine into one.
The first view shows all items of X where company ID = Y. This is to give preferential sort to the client first, and then everyone else.
So I created a second view, all items of X, where company ID != Y.
I created it as an Attachment to attach to the first view, but I don't think I got the intended result.
How can I combine these views so the first view results are listed first, and then the second view is too, using the same pager, filters, and arguments?
Is there any way of achieving this without programming it?
From a MySQL point of view, the order-by-field syntax would be the appropriate way to handle this. Example:
SELECT * FROM tickets ORDER BY FIELD(priority, 'High', 'Normal', 'Low');
It would be great if there is a module that add this kind of functionality to Views, but AFAIK, it does not exist.
If you want to solve this without programming, I think you can use the rules module to automatically set the 'sticky' checkbox on nodes where company ID = Y. With that in place, you can order the View on the sticky value.
Along the lines of the 'sticky' idea, if you didn't want to override that, maybe you could add a checkbox field to the company type -- isClient. Make it false for everyone except the client, and sort by that.
I haven't done this, but maybe you need to create both versions as attachments, and attach them both to another display...?
for drupal 5 there was views union. Someone started something for D6, but I don't know how far they got.
http://drupal.org/node/275162
Create the second view as an attachment and attach it to first.
Set all Inherit arguments, Inherit exposed filters and Inherit pager to Yes.
how is the client parameter passed to the view? as an url argument? if so, you can create your second view like i outline here and then select the exclude the argument option on the appropriate location.
usually the easiest way to achieve this is with a small hook_query_alter, but that requires a small amount of programming.
A little bit later... but I've found a better solution using only the Views module:
Create a Block View with that shows the first list that you need ("all items of X where company ID = Y")
Create another View that must be a "Page view" with the second list (all items of X, where company ID != Y)
In the "HEADER" settings of this second view, click "Add" and select "Global: View area".
In the "View to insert" list, select the first you have created (and check "Inherid contextual filters" if you are using it)
And that's it!