Dears,
I have a ALV Report using REUSE_ALV_GRID_DISPLAY
User A use filter button on column 1
the column length is 10, but he can only input 2 length
but User B don't have this problem
What can I do to fix this issue?
Related
I have a ComboBox object in an Access form that pulls its data from a query. The Query returns 2 columns. For example, the columns are "Section" and "Title". "Title" is the value I would like stored and displayed in the ComboBox once selected, but "Section" is the value that displays, regardless of the Bound Column value I set.
Both columns are necessary information in the drop-down list (for user context), but only "Title" is required by the Access Form, as it is the primary key in its own table, and "Section" is not a unique value from which "Title" can be logically derived.
The display order of the columns in the dropdown is "Section | Title" and shall remain so, since it will read "1.1.2.1 | Introduction to History" in the list which is more legible than the inverse.
As mentioned, I've tried setting the Bound Column value to 0, 1, 2, and 3, knowing that there are only 2 columns to choose from and that Bound Column starts at an index of 1.
Bound Column: 0 - Returns Blank (Out of Range)
Bound Column: 1 - Returns Column 1 ("Section")
Bound Column: 2 - Returns Column 1 ("Section")
Bound Column: 3 - Returns Blank (Out of Range)
Both columns display on the dropdown list, but any reasonable change to the Bound Column property does not stop the ComboBox from displaying the first column from the selected row every time. Having the query return an extra third row and setting the Bound Column to 3 also does not change the outcome -- "Section" is still the displayed value.
I have two columns that I want formatted as "N2". However the one that is set to read only and on displays info works fine while the other column that allows data to be entered does not format the data after the user enters it.
account_grid.Columns.Item(3).DefaultCellStyle.Format = "N2"
account_grid.Columns.Item(4).DefaultCellStyle.Format = vbShortDate
account_grid.Columns.Item(8).DefaultCellStyle.Format = "N2"
Column 3 works fine and get populated with data when the grid is loaded. The data is formatted correctly (as N2).
Column 8 is empty to start and allows uses to enter data. After a users enters a number (for example 25678), I want the number format to change to 25,678. But it is not changing.
This is the code that populates the grid:
For x As Integer = 0 To account_list.Count - 1
account_grid.Rows.Add(account_list(x)(0), account_list(x)(1), account_list(x)(2)...[to 8])
Next
I have a list with a column task and a column weight
task = text
Weight= numbers
Each task as a specific weight, I want when someone select a task the weight field automatically is fill.
Best regards
Yves
You can make weight as a calculated field with data return type as number when you create this column. Then in the formula field you can have something like =IF([task]="Test",10,20). This will fill the weight column with 10 id task equals "test" or 20 otherwise.
You can refer this
https://msdn.microsoft.com/en-us/library/office/bb862071%28v=office.14%29.aspx
I have one table with 3 rows and 3 columns. Now I want to add 2 row's 2nd columns cell's control. That means whether that is text or combox in the cell. How do I get the 2nd row's 2nd column and remove the compoenent dynamically in SWT JFace?
Do you use a TableViewer?
The SWT-way of getting to the item is indexed first by row, than by column.
Getting the text of the third column in the second row is done like this:
table.getItem(1).getText(2);
To display custom-controls, like a combobox you will have to either paint it manually or use SWT's TableEditor.
Also check out this tutorial: http://www.eclipse.org/articles/Article-Table-viewer/table_viewer.html
I have an application that keeps rent periods of a parking lot. I have a SQL database with this information:
idLot dateFrom dateTo
------------------------------------------
1 01/03/2011 30/07/2011
2 01/01/2011 30/05/2011
3 01/02/2011 30/07/2011
6 01/02/2011 30/06/2011
And I need to display the information like the image below.
1
I cannot achive the goal with Excel or Crystal Reports. I also use ComponentOne FlexGrid. Any ideas?
Thanks in advance.
It's not the prettiest option, but you can do this in Excel using the Sumproduct() function. In the screenshot below, the sumproduct goes through each line of your datatable and does 3 things (the selected cell is B17 by the way):
It determines whether each row has the idlot it is looking for (evaluates to true/false)
It determines whether DataFrom is <= the column of your display table (evaluates to true/false)
It determines whether DataTo is >= the column of your display table (evaluates to true/false).
This results in a 0 or 1 in each cell of your display table. This is close, but not exactly what you're looking for. I then added some conditional formatting:
If the result of the equation was 0, then the cell's font is white.
If the result of the equation was 1, then cell's font and background are both green.
When you apply the conditional formatting to the entire graph, you get the last 2 rows, which is green for occupied and white for unoccupied.
The only remaining problem is how to account for a changing number of rows in your table. This can be solved by just setting the ranges in your equation to a very high number.