Splunk - Using Report as a Saved Search - splunk

I have a new personal Dashboard (i.e. listed under the "Yours" tab in "Dashboards"). I am trying to reference report I have created. This is currently a personal report (i.e. listed under the "Yours" tab in "Reports"). In an effort to reference this report, I have added the following to the dashboard's source:
{
...,
"dataSources": {
"myReport": {
"type:": "ds.savedSearch",
"options": {
"ref": "Team - Weekly Stats",
"app": "team_bears"
}
}
},
...
}
When I visit the "Data Overview" in the dashboard designer, I do not see my report listed under "Saved Search" like I would expect. In addition to the above, I tried the following:
I thought it might be because I was trying to use a "personal" report. So, I chose a different report that was listed under the "All" tab under "Reports". However, that report did not appear under "Saved Search" in the the designer.
I thought perhaps the spaces or "-" was throwing it off. So, I tried referencing a report that was named team_stats. However, it still did not appear under "Saved Search" in the designer.
What am I missing? Why can't I use my report as a saved search in my dashboard?

Related

database list contains wrong objects

Goal:
To create a database with documentation about drivers. The idea is to create both vendor and protocol entries, and to link them, as follows: Inside the protocol creation form, I would like to select which vendor supports this protocol.
Approach:
I used the Create your own! button to create the following 2 Applications:
Vendors
Protocols
Inside the protocol creation page I've put a Database List field. With the following properties:
Name = vendors
Display type = select
Multiple select = false
hibernate query : I left this field blank.
xwiki class name = VendorsCode.VendorsClass
ID field name = doc.name
value field name : I left this field blank.
Problem:
To my surprise this works, but not entirely. When I open the form to add a protocol, in the vendor dropdown list there are now not only vendors but also a couple of other objects such as : "Blog.BlogIntroduction". Obviously I don't want that in the list. Why is it in there, and how can I get it out ?
I tried to add the value doc.name in the value field name box as well. But that actually only makes it worse. Now the list only contains "Blog.BlogIntroduction".
Notice that this is a clean fresh installation of xwiki. There's nothing special in this database.
What is going on here?
What you see is the default value for the select item in the Database List, as it is stored in the template page for "Protocol" objects.
A new Database List is initialized to show a list of blog posts, by having a default value of Blog.BlogPostClass for the "XWiki Class Name". (You can try this by creating a new Database List field in step 2 and open the edit view that field; just delete it after you are done.) For a fresh installed wiki there are two blog posts: the "blog page template" in Blog.BlogPageTemplate and the blog intro post in Blog.BlogIntroduction. Exactly these two items are shown initially.
After you fill in the value of your class in the "XWiki Class name" field, XWiki has a chance to find the actual list of possible values.
However it keeps the selected "default value" from the first attempt around (even though it makes no sense).
This looks like a bug to me, at least from a user experience.
How to fix it
First Step: The reason why your list only contains the bogus "default value" might be that the class you have given does not exist.
From what I see in the screenshot the class name looks ok for me, but then this field is not tolerant to any kind of typos, even something like a space before the class name. If the name does not fit exactly, it gives a (nearly) empty list.
If you cannot get it working with the class name and want to go the HQL route instead, use for the HQL field
, BaseObject as obj where doc.fullName = obj.name
and obj.className = 'VendorCode.VendorClass'
and doc.fullName != 'VendorCode.VendorTemplate'
and doc.fullName both as id and value field. This has the additional benefit that the template vendor is not available in the drop down, only the "real" objects.
After you managed to fix the name of the class, you should see a list of all vendor objects (including the VendorCode.VendorTemplate, unless you went the HQL route), and the remaining bogus default value. Now you can continue to the next step:
Second Step: if you managed to fix the class name, you will see your vendors in the drop down beside the default value; now it is time to get rid of the bogus default value. For this go to the template object of the application; e.g.
follow the "Edit Application" link on the start page of the "Protocol" application
then look at the box with the three checkboxes below the field definitions; the uppermost of the checkboxes says "Update class template"
this part contains a link to something called "ProtocolTemplate".
click the link and you end up at the template page
on the template page, click on edit and choose some other value from the drop down of vendors, and then click save.
The "BlogSomething" value should be gone now from the selection of vendors.
Optional step (not answering the quesion, but might be of interest anyway)
If you prefer to have no value at all preselected in the template, you need a few more steps:
in the application edit, edit the field and choose "multiple select" and display type "checkbox"
go to "next step" in the editor, then back to field edit with "previous step"
uncheck the checkbox beside the selected vendor entry, then open the field editor and set "display type" back to checkbox and unset the "multiple select" checkbox.
go the "next step" and "finish"
Afterwards if you create a new "protocol" entry, this is has an empty "vendor" preselected.

Creating a form where user inputs start and end dates of a report

I am working on MS Access 2007.
I am trying to create a form where the user will input 2 dates - a start date and an end date. I want these dates to become the boundaries of a report.
For example if the user inputs 01/03/14 and 10/03/14, I want Access to create a report of the data (eg Selling Price) between these two dates.
How can I do this?
There are a few ways to perform this.
The easiest, and most straight forward, in my personal opinion, involve creating a form where the user(s) will be entering Start/End dates, using a query that captures all of the information necessary for your report (including your date parameters), and the report with your query as the recordsource.
Form
Create a form with 2 text box controls: Name them whatever you like (StartDateTxt, EndDateTxt, for example), and a button control.
Query
Now, create a query, that retrieves all of the correct information you need for this report. I know you said selling price, for starters.
For the date fields you want to narrow down your search by, you need to put them in the WHERE clause or the Criteria field in QBE. It might look something like:
[Forms]![YourFormName]![StartDateTxt] and [Forms]![YourFormName]![EndDateTxt]
Note: Referencing fields can sometimes be tricky.
Report
Next, you need to create a report. If you're new to this, you can use the Report Wizard located at: Create - Reports section - Report Wizard.
You can select your query from the dropdown list on the first prompt, and add the fields you desire/need. Click next: Here you can sort your order of appearance on the report. Click next: Then you can justify your layout - if you aren't familiar with the differences, you can play around with them. Click next: Select a 'theme' to be applied to your report (font/colors, etc). Click next: Then you can either preview the report or Modify the report's design. (Really, you can do either, by clicking either button and clicking print preview or design view.)
If you click on Preview the report - Access should ask you for any parameters your underlying query requires.
Back to the form.
Right click on your button control. -> Properties -> Event -> OnClick -> click the [...] icon to the very right of the row. Select code builder.
VBA
In-between Private Sub and End Sub, you're going to write
DoCmd.OpenReport "YourReportName"
You can also check to make sure your report isn't already open.
Dim ReportName As String
ReportName = "YourReportName"
If CurrentProject.AllReports(ReportName).IsLoaded Then
DoCmd.Close acReport, ReportName
End If
DoCmd.OpenReport ReportName, acViewPreview
I hope this helps you/answers your question.
Edit: If anyone wants to edit/add on to this either by means of clarification or another alternative approach, please feel free. Just let me know.

Control structure in sxw

I'm using openerp Report designer on OpenOffice to modify an existing invoice report.
I would like to use structure control to print different "terms & conditions" regarding the language of the partner.
How do I use structure control in sxw document ?
Will this be fine? :
[[if o.partner_id.lang=='English':"some text" else:"some other text"]]
use [[o.partner_id.lang=='English' and "some text" or "some other text"]]
it actually takes python codes.

How can I display the name of the prpt file on a report in Pentaho Report Designer

This maybe simple but I am trying to display the name of the report(.prpt file) in the Page footer section of the Pentaho report. Is there any way to do this in the Pentaho Report Designer?
You have to create a function type "Open Formula" and its field called Formula write =DOCUMENTMETADATA("http://purl.org/dc/elements/1.1/"; "title") then just add a text-field and add it whichever section you want.

How to disable link on “Created By” column vale of a list item in SharePoint 2010

I saw this answer by Shoban:
Go to List - > Settings -> List Settings
Under "Columns"
Click "Created by" to open column settings
Under "Additional Column Settings" Change Show Filed to "Name".
Repeat the above steps for 'Modified by"
» This will just Show the Name and will not have the link.
This does not work in Sharpoint 2010 I still get a link when Show Feild is set "Name".
Anyone have a solution for SharePoint 2010?
I have found a solution using JQuery.
Unfortunately in Sharepoint 2010 when a View has collapsed groups, this script will not work. The only way around this that I could find is to have them 'expanded' by default.
Ensure that your page has a reference to a modern version of JQuery, and add the following to your View:
<script type="text/javascript">
$(document).ready(function() {
// Remove "Contact" links
$('a[href*="userdisp.aspx"]:visible=false').each(function(index) {
var link = $(this);
$(this).after("<span>" + link.text() + "</span>");
$(this).remove();
});
});
</script>
I just did a 2010 site choosing Name from the show field choices. Worked like a charm for 2010 for me. Next stop 2013
The above method works fine for SharePoint 2010.