Have not been able to find an answer to this issue...
This is my Value list Row Source Homeroom;Period 2;Period 3;Period 4;Period 5;Period 6;Period 7;Advisory
When I open the form...Only every other (starting at second value) is shown.
For example:
Period 2
Period 4
Period 6
Advisory
I figured it out...Number of Columns and width of Columns were fighting me...
Related
If I have an index within a table, is there a way to locate the relative position of a record?
example, there are 5 records displayed:
1
4
5
6
7
then on locating value=5, is there a way to know 5 is the 3rd record in this index?
then what if there is a filter applied - my guess is when there is a filter applied, definitely have to loop through every record to find the position... so maybe there's still a chance to know if it is simply Index deployed (without filter).
thanks.
edited Purpose: to show a progress bar on position of this record relative to first and last record. thanks.
I am using ag-grid to display data. There are two tabs for current data and archived data. Above the grid for both tabs, in the title bar, there is a filter that filters the free text. The label of that filter shows the filtered rows/total number of rows.
In the archived tab, there is an additional filter that selects the data from past months. The filtered row count gets bigger than the actual number of rows when you quickly switch to:
Last Year
Last 6 Months
Last 3 Months
and then switch between tabs.
I think it is the in memory row model that is causing this issue.
I tried these two to get filtered rows
this.selectedRows = this.gridOptions.api.getModel().getRowCount();
this.selectedRows = this.gridOptions.api.getModel().rootNode.childrenAfterFilter.length;
I was just wondering is there any other way of doing it without using the in memory row model. Any help would be greatly appreciated.
Thanks a lot.
For future reference:
The code below is fine.
this.selectedRows = this.gridOptions.api.getModel().getRowCount();
The were some timing issues and I fixed this with resetting the row data by
this.gridOptions.api.setRowData([]);
this.gridOptions.api.setRowData(data);
Alright, I searched each and every option upon SQL related to sorting a date column. Most of them say that it's not correctly sort because the column is of type nvarchar. This is not my case.
My table and query:
.
Injection aside, as you can see in the image, I want the column that I selected in the image to be in correct order - the 7th column (I am sorry for the native column name); however, it is not. To be more precise, that 1660 row is not sorted correctly, while all other rows stay in the line.
I tried ascending order, and as you may guess it, it's that 1660 row that stays in the last regardless of other row's value.
I also tried sorting by other columns with similar type - 6th, 8th and 9th, and they're working fine.
The 1660 row doesn't have any special column, nor its date is any special. It just between lots of other rows, between June and July.
These time columns are inserted using vb.net through a DatetimePicker value.
So can someone shed me some light into this case, as to why, how, or what is the cause of this disorder... It's driving me nuts.
Your 1660 row has a date in the year 2106, not the year 2016. This is obvious from looking at the image. It is not a formatting error or a sorting error; it is a typo in your actual data.
I would need your help with and SQL query that has to remove duplicate entries from a table, mostly using the datestamp column as a criteria in two passes.
Microsoft SQL DBMS is in question.
Here is a little more details:
Terminology: Module is basically a group of single machine workplaces onto which users operate.
Table:
ModNam column is fixed, there are 15 modules from M A01 to M A15, then goes the B row M B01 ... M B15 and so on until row F.
Pos column is irrelevant at the moment.
MdCod column represents a code of the machine being added to the position in the certain module. It can be replaced by another machine at any given time.
I have one query that will be inserting data into this table by copying entries from another table, every time a new machine is added to one of the positions.
Tricky part for me is a second query that should be comparing records in two phases and if:
1) Inside same module (first pass of the query represented with red color in the example pic attached):
ModNam value is the same, MdCod matches between the entries then the most recent datestamp decides the single one to stay and others duplicates get deleted
2) Inside other module (second pass of the query represented with purple color in the example pic attached):
ModNam values are different and MdCod matches between the entries then the most recent datestamp decides the single one to stay and others duplicates get deleted.
Please help and advise.
Example pic (updated):
Thank you all in advance.
Background:
I have a table with say 40 columns reporting Employee Details. Where 39 of 40 columns are of Datatype varchar(10) and the 40th column, being Manager's comments, is of Datatype varchar(1000).
Problem:
The report is looking bad as due to one column the height of the complete row is increasing than normal expectation.
Solutions I thought of:
Increase width of column > Looking bad if no comments
SubString the data coming > Loss of data
Set CanGrow to False + set the Height for Row to have 2 data lines + Show text on tool tip + Export to excel link of a different report which has CanGrow as false > not very good solution
Can someone suggest a better way to handle one column with more text than the rest of them as even my 3rd approach is looking non-ideal to me?
Thanks in advance.
A little unconventional, but in situations like this I've put the last column in its own row beneath the other columns, merged all the cells in that row, and then grouped by the primary key. That makes a report in which you've got a two row SSRS group for each row in your query results, the first row contains all of the short columns and the second row contains just one long column. If there is a fairly short string in that last column, or an empty value, it will just take up one row. If there is a long string, then it will have space to expand vertically (if CanGrow=True), instead of expanding horizontally and making an impractically long report.
This may not meet all reporting purposes, but if the report is intended for visual use it can work well.
The best solution I could find was
Set CanGrow = False
Increase Width and set a generic Height
Show tooltip
Export to excel works fine and shows data unlike I expected (as the data is not truncated but just the textbox is restricted to show data in SSRS frontend)
This works for me as there is no data loss.