How can I get Carrot2 to save Basic Query? - carrot2

In the Search widget of Carrot2 (3.12.0.0), you can select the disk icon and do a "Save As...". This saves all the attributes of the Search widget (in our case we are using Solr, so it's all the Solr fields), but it doesn't save the Basic Query field (the only required field in the widget). In the image below, all the yellow highlighted fields are saved, but not the "Query (required)" field that is circled.
I've downloaded the source from Git (http://project.carrot2.org/source-code.html), but I don't see how I can update the code to save this value or to even understand why it isn't saved by default.
Any help would be greatly appreciated.

Seems to be a bug in the code. Or rather some special condition (why it's there, I can't tell). See this bug for the follow-up.
http://issues.carrot2.org/browse/CARROT-1135

Related

Is there a way to delete fields in Ag Leader SMS advanced if they aren't showing up in the management tree?

I am having an issue with my fields in Ag Leader SMS. I imported a TIFF image containing NDVI data and assigned it to a new field name, but it didn't show up in the management tree. I put the TIFF into QGIS and figured out that it is not using the correct projection.
After getting this issue resolved, I wanted to reimport to SMS. However, the field is not showing up in the management tree, but when I go to device setup to make the export it is still there.
Basically, even though I deleted the branch, there is still a field in the export and I don't want a duplicate in future exports.
Yes, I just ran into that issue recently as well, and it took some time to figure it out.
Basically, to remove a field altogether, you can't just delete the branch.
To completely remove it, whether you want to replace it with a new one or not, you have to remove all the files under it and then take it out of the field list. The easiest way to do this is to right-click the field you want to remove and choose delete branch. (This will remove it from the management tree, but there is still a record of it and that is why it shows up in the export still.)
Then, right-click a field that is still there -> choose "Alter Field List..." -> Under the Field category find the field you want remove -> highlight it -> click delete.
**If the delete button is greyed out, that means there is still data under that field. You must delete the branch so that it is not showing up in the management tree before you're able to remove it from the field list.

Spotfire DropDown list to filter entire page?

I have been desperately trying to figure out how to take a column, customer name, and be able make a drop down list that filters the entire pages visualizations so that when you have a specif customer selected it filters everything.
I think I'm going down the right path my creating a property type string and setting it to unique values in that customer name column, but cant seem to figure out what to do next. Even if i have to set it individually for each visualization that would be fine, but i cant seem to get this to work.
Can someone help me figure this out?
I'm on spotfire 7.0 if that matters. Thanks
Thank you in advance.
#TPLEE - In order to apply filter to the visualization from the selected drop down, you have to insert the below case statement in 'Limit data using expression' section of the visualization properties as shown below.
Right click on the visualization and go to properties.
Click on edit as shown in the picture and insert the below case
statement and click 'Ok'.
Note: 'YourCOLUMNName' will be your column name from the data table that you are using and ${CustomerName} is your property control name
case
when "${CustomerName}"=[YourCOLUMNName] then true
when "${CustomerName}"="" then true
else false end

Colorize row based on a field value on kibana 4

Is there any way to colorize or, in general, apply styles to results table on Kibana 4? I'm talking about the discover result table.
Basically, our logs have a level field and we want to add colors on the result table based on its value, so they can be easily recognized. E.g: Error messages should be red, warning messages yellow.
I know elastic search has some highlighting capabilities but know do not how to use them with kibana
Update:
You can now color Strings easily:
log into kibana
go to Management (settings)
click "index patterns" and choose your pattern
click on Severity (or whatever name your logs have there), then on edit (you can also do it for a service or other columns)
in "Format" choose 'Color', Then in 'Pattern' write INFO or a pattern you would like and choose the corresponding color
Seems that custom formatters is the way to go. I.e: writing a new component using JavaScript and Html
This example creates a formatter to highlight text. It's not exactly what is being asked, but it should work as base.

How to change column attributes on Oracle APEX?

In the picture, it shows my problem: I need to display the values of a column from a table in apex. Currently all the values are being displayed as a text field. But, I need to display only a few as text fields and others as just a display value without allowing someone to edit it. I've been looking into it, but I'm stuck.. There is a conditional display area, but not sure if that is where I need to go for the solution. That section seems to just limit what values get displayed not change the display format based on the values, but that latter is what i need. Thanks if you know or can point me in the right direction!
In the Item properties , go to advanced section
in custom attributes mention readonly=’readonly’-- this will make that item as display only.

Sitecore item deletes image on save

We have a pretty large website running on sitecore 7.2.
On a couple of items we noticed a certain problem.
Everytime we link a picture to the item and we save it,
the item is saved without the image.
The items are of the same template of 900 other items, so i don't think it's a template problem.
I can link the images on other items without a problem, so i can exclude these too. (i think)
When i search the logs, nothing is found. No ERROR can be found.
Can someone help me in this problem?
EDIT
After searching in the database for the records, i found these:
You need to get the ghost value out of Sitecore's "shared fields". For the item ID's in question, take a look at the [SharedFields] table in your "master" database.
SELECT * FROM [SharedFields] WHERE [ItemId]='your item id' AND [FieldId]='your field id'
If I am right, you will find values here. If the field is no longer shared, these should be safe to remove.
Always though, when messing directly with the database, backup etc. :)

Resources