I am working on Drupal 7 and have been configuring view which in result display 4 different rows.
I need to apply different css to fist result (image / title / summary) and then some another css to rest of results.
I have been trying to use Global:View result counter field but dont know where exactly we can apply split of css for first row result and rest of row.
Can any one help me or gv brief about it?
Thank you in advance.
Related
I've got an app, where I get a bunch of data from the API, this data rapresents activities done on a given
day in a given month, and they are displayed in a table.
I can have different tables (let s say one for working activities, one for school and so on).
In the tables, <TH> are the days of the month, and the first TD of each row is the month.
The table only generates a row for any given month only if there is data in that month.
A first ng-repeat will create X number of tables depending on the different activities, and
a second nested ng-repeat will fill the rows of the table for the months with data in it.
Everything works fine, but I have an issue.
There is a specific print view for these tables, before it was one table per page (I used a css rule to break page after every table)
but now I wanna implement something better, as a table could have only one row
(let s say you have activities only in january, and none in other months)
it's pretty ugly when it breaks the page and prints just one table with one row in a new page.
So I wanna implement a counter that let's say after 15 rows it will break the page.
By 15 rows I mean global rows, so it could be a full table with 12 rows (12 months with data) followed
by a table with 3rows only, and then it would break page for the next table.
What's the best way to achieve something like this in angularJS?
with: p.presences.length I get in return the number of months each table in the ng-repeat will have.
So my idea is to have a counter that adds p.presences.length at each iteration of the ng-repeat, then I would use that counter in a ng-class to break the page,
Currently to break pages I'm using this code:
<div class="breakPagePrint" ng-class="p.print ? 'showTablePrint' : 'noDisplay'"> </div>
with this css code:
.breakPagePrint {
page-break-before: always;
}
p.print is a Boolean that is given by a checkbox on every table, so if the user wants a given table to be included in the print page, he ll check the box.
so my idea is to put in this ng-class an expression with the counter, something like
ng-class= "tableCounter > 15 && p.print ? 'showTablePrint' : 'noDisplay'"
but in this case the counter should get reset after 15 otherwise it won't break page again after another 15counts (at 30).
If anyone has some ideas on how to nicely implement a counter and how to use it at best in my case.
Thank you
Use the $index of your ng-repeat to check to see when it has covered a multiple 15 records or use the p.presences.length if that gives the property you need (i.e. the counter for each row). Then insert the div at each multiple.
Assuming your div above currently works (but only for 15 at the moment) then just add the following code to that div. This uses the modulus of 15.
<div ng-class="{'breakPagePrint':(p.presences.length%15==0),'noDisplay':(p.presences.length%15!=0)}"></div>
(I'm para-coding so not 100% sure of the syntax) But give that a try and see if it works. But basically it adds the breaking div whenever the p.presences.length is a multiple of 15, or every 15 records.
I have implemented tablix inside tablix concept. I done this with the help of following link.
I have one table A, that is holding other two tables B & C respectively. I have grouped these two tables with the help of Dept_Nbr from first table A.
What I want is:
I want to give page break in between two tables. For example, I have Dept_Nbr as 529 and 530. In one page, the two tables will show the records for 529 and in the other page the two tables will show the records for 530.
Now I want to show all these records in four pages. first table is in one page and second table is in other page for 529th Dept_nbr and vice versa for 530.
How to give Page break inside grouping.
What I tried is:
I gave Page Break on Group Properties, Hence Page is breaking in between two groups. But I want a page break inside a group itself.
Also I checked the check box on tablix properties i.e.., Add Page Break Before and Add Page Break After. But nothing gives the output as it is already in grouping.
Please guide me on the same. Thanks in advance.
Add a parent group to Table A that encompasses the rows containing Tables B & C. For this parent group, group on Department Number. Then, as part of the group properties, you can have it break between groups.
As your question and layout stands now, you're asking that the report break between detail rows. As far as I know, this is not possible.
being a newbie to SSRS, I am trying to figure out the following:
say for instance I have a dataset which does a :
SELECT [cols...] from [some view]
I want to be able to further filter this based on parameters given from an ASP.NET site (I am using the AJAX control toolkit for the report viewer). There could be x amount of parameters and potentially can be filtered on 1 or more columns.
First question is, how would I filter the dataset and pass along the parameters along with which field the filter should apply to? I may have [col1] and I want to filter it with x values.
Second question Is, I want to be able to group the results per page based upon a column. So for each grouped result set, I want them to be displayed per page (per group per page).
Then on the headers of the page, I want it to display what the page grouping is. How would I do this?
In terms of what have I tried - nothing as I DO NOT KNOW HOW, it is why I am asking the question here to see what the experts (you) can suggest and guide me.
thank you!
To do this you can create Parameters in SSRS, they do not need to be in your query or anything. Then, go to your tablix and click either ROW or column depending on the filter type and set it show/hide visibility. For example I have a report that has personal information, so i have true/false parameter that hides/shows those columns, similar I have one that hides/shows any row with a -1 for the total paid.
Hopefully someone has done this - I need a 3 column page (side-by-side) with a two column table (with the headers) to fill the three columns. The table is fairly long and I need it to wrap/continue from the first column on the page to the second column and on to the third and then continue to the next page in the same fashion. Right now I can only get the table to show in one column on the page and it continues on the next page. The final output is a printed PDF page.
Using span="all" is the way to cause some in flow content to span all the columns of a multi-column document. For brevity in answering, I am posting a picture of the XSL FO for something like this.
Does anybody know how i can create a stacking list component (just like photoshop) where the first row starts at the bottom and the second on above the bottom and so on.
Normally the list component works like this.
0
1
2
3
what i need is a list component that works like this
3
2
1
0
To illustrated my question i have uploaded a picture of the component i need to build.
The rowindex of the inverted list component must start at the bottom.
meaning that the lowest row in the list is always zero.
Does anybody know how i can accomplish this?
Thanks
DJ
one way of doing this is to always add the row in the container using this.addChildAt(0);
by doing this every new row will be added to zero index and its order will be reverted from default order
Define a new layout to do this. This answer has some starting links.
Make sure you get the virtual layout working as well for the list control (I suggest just grabbing the VerticalLayout and changing the updateDisplayListReal.
obviously you are storing the layers information in array or something like this. just revers the the array before assigning it to list control.
that is
var a:Array = ["1","2","3"];
a.reverse();
now it will look like
// 3 2 1 when assigned to list control as data provider.