Combine the modules "Field Multiple Limit" and "Grid Field Formatter" - drupal-7

I made a Drupal 7 site and I want to limit the number of pictures (multi-value field is a teaser view.)
I want 1 row of 5 thumbnail images.
When I use the Field Multiple Limit to limit the number of images to 5 and use the Grid Field Formatter module to display them in a grid, the result is strange.
image link (my reputation is less then 10, I cannot include images, Sorry.)
The number of displayed images is limited to 5, but it's followed by empty table cells (one of each image).
image link
I tried to solve it by changing the weight of the modules, therefore I installed Grid Field Formatter.
image link
I moved the Field Multiple Limit in front of the Grid Field Formatter module, but nothing changed. The empty cells with css makeup remain visible.
How do I solve this?
Kind greetings,

Related

SSRS 2016 - How to display a chart, based on a condition, in the same page location

I am creating a SSRS Report (PPT export) with multiple charts and fixed number of pages. Each page contains multiple charts. I want to display different charts in the same page location based on a condition.
Now I know that ,we can Hide/Show a chart by specifying an expression for visibility attribute, but this will only Hide/Show the single type of chart in a preassigned location.
Just to reiterate
If Condition1=True
Display Chart1 at location (0,0)
Else
Display Chart2 at location (0,0)
Note: Chart1 and Chart2 are generated from different datasets
Thanks in Advance!
This is very simple to accomplish.
Create both charts and place them on top of each other in the report designer. Set up your visibility settings to only show one based on your criteria and as only one gets rendered, they will not interfere with each other or the rest of the report layout.
I Think position property for Chart is not available, so we can not manage chart position directly with any position parameter. but there is work around. create your all charts (multiple charts) in your report design, position them as you want and change their visible property as per your conditions.
e.g. if Chart1 to be displayed at position1 and position 2 based on condition, there will be 2 charts in your report RDL one at position1 and another at position2. manage each charts visible property as per condition, you should achieve what you need.
this is tried by me earlier.

Limit data based on UniqueCount

I have charts on a tab, that should only show if 1 value from a column filter is selected.
For example if a field named: BUSINESS_UNIT has values of "HR","FIN","IT" The charts should only show data if 1 value is filtered on. Such as "HR."
These charts do not contain the BUSINESS_UNIT field itself.
I tried using the Limit Data Using expression, but for some reason the limit expression UniqueCount(BUSINESS_UNIT)=1 doesn't work.
How would I hide the data in the charts, unless 1 BUSINESS_UNIT is selected?
What you could do is hide the filters panel and create radio buttons on a new text area for each property to mark data. If you need help setting this up let me know. Then in your visualisations limit data using markings and show an empty visualisation if no items are marked.
One downside to this is maintenance, if the values change you will have to update the UI.
Another possible solution (untested) is to change the filter panel properties from checkboxes to radio buttons.
Filter Panel Properties:
http://stn.spotfire.com/spotfire_client_help/filter/filter_panel_properties.htm
You want it to look something like this:
http://stn.spotfire.com/spotfire_client_help/filter/filter_radio_buttons.htm

How to edit EXIF populated content type fields in Drupal 7

I am using Drupal 7. I have created a content type IMAGE with keywords, caption, headline, category populated by EXIF and I also autogenerate the label. All I have to do is select a local image and hit save and everything I need is populated from the image metadata - all good so far.
The only problem is that I cannot edit the EXIF populated fields. If I want to move an image from one category (taxonomy) to another or notice a typo in the caption the only way I can make corrections is to delete the image, correct the text locally and reupload the image - when I select EDIT having found the content the default edit page does not show the field populated by EXIF. If I change them on the content type to a text or taxonomy field I can edit them, but I can't do that each time I want to edit a field.
I have searched but found nothing to help. Alternatively I have considered duplicating the EXIF populated fields on the IMAGE content type amd populating them using tokens from the EXIF populated fields and using those to drive my display views etc. I should then be able to edit them but it is not a very elegant solutions. I am not sure that will work after initially trying it.
I also have an issue that I need a multi-valued field other than keywords that I can use for the category/gallery (and there isn't one in the standard it seems). That will probably be a separate question when I have solved the editing problem.
I also tried using EditableViews modules which looked promising but it would still not let me edit the fields although it did display them.

remove first few contents from view list drupal7

I have a content type "Example".
I have 15 contents for that content type.I need to create 2 different views.
1st view.) which will be having the recently added/updated contents(Which I got.)
2nd view.) which needs to be with the rest of 10 contents from the 1st view(In simple words the last updated 10 contents from the content type).
#jsheffers's answer is good if your contents are fixed in number.
In case your total varies it couldn't be used. Also it would make old content show up on top which in many case is not the desired one.
so here is my solution.
Create a view to display five items.
Clone the page/block and enable pager or display all items. Now click to open the extra settings of pager or display all items. Here you would get a field where you could input Offset. You can now give an offset of '5' in here and save.
Pasting below the description of Offset as it appear in admin interface.
The number of items to skip. For example, if this field is 3, the
first 3 items will be skipped and not displayed.
Also attaching a screenshot to make it more clearer.
Step 1
Create a view that lists out the 5 most recently updated pieces of content.
Step 2
Create another view that lists out the 10 mosts recently updated pieces of content, and then switch the sort to desc.
The five most recently updated will show in view one and the other 10 will show in the second view. If you want both views to be on the same page, you could add one of the views to the header of the view you would like to be the main page.

ExtJS 2.x Grid Cell Validation for Duplicate Data

I have ExtJS Grid In which I have Columns called "Mobile Number".
I have made simple thing here When I edit more than 2 rows and If I Modify the Column "Mobile Number" It will be checked whether is it Exist in Grid or Not.
If Duplicate Number found, I will give Message that the Input Mobile Number is already Exist and
reloading the whole grid so all edited data will be gone.
But, I want the non-duplicate data back was edited.
So, How can I keep my non-duplicate data as it is after reload the whole Grid.
I just want to remove duplicate row where found duplication and other edited rows keep as it is.
Can I use this RowEditor plugin for ExtJS 2.x compatible.
http://dev.sencha.com/deploy/ext-3.4.0/examples/grid/row-editor.html
My E-mail: ashwin.parmar2020#gmail.com
To find duplicate data use afteredit event of Ext.grid.EditorGridPanel on that event you will get current record, so just display message and add empty value in that field
You should use a validator for the mobile number field that detects duplicates and refuse the duplicate number. So you don't have to reload the grid.
If you want to reload the grid anyways, you could get the dirty rows before doing so and store/reapply them afterwards.
To get the dirty records you can use the getModifiedRecords() function of the grids store. Use the commitChangesfunction of the store to apply them after validation/processing.

Resources