How to allow user to set a column's max width to infinite? - extjs

I have a Ext.Grid.GridPanel containing columns.
Problem is that, as an user, I can expand columns just by a predetermined width.
For example if the column width is 50 I can go only up to 80.
And I noticed another strange thing: the more I add columns to my Ext.grid.GridPanel, the less is the amount of space which I can expand my column to!
Is there a way to solve this problem?
edit:
my version is 5.0.0

Solved! It seems to be a bug related to version 5.0.0.
I just used versione 5.1.0 and everything worked fine

Related

Avoid columns being displayed with their maximum width in the data output tab in pgAdmin

In pgAdmin4 (version 5.5), when a SELECT * FROM tablename; query is executed, one can see on the bottom panel, under a tab called "Data Output", the resulting records for the selected columns for the specified table.
If this table is having columns with very long string of data, e.g when encoded as JSON objects, or any PostGIS complex geometries, their width can be extraordinarily large, which affects the user experience negatively. Because going to some of the columns becomes a sub-pixel game when one try to grab and move the tiny horizontal slider (e.g. moving the slider half a pixel can move several columns by more than 2x the width of the screen...).
Did I miss something in the settings?
Is there a way to fix that, e.g. by setting a maximum width value for the columns? Because when using pgAdmin out-of-the-box, they are fully expanded...
I remember that is was not the case in earlier versions (4.x).
I'm using the latest dockerized version (5.5) as documented on the pgAdmin4 doc and available here: https://hub.docker.com/r/dpage/pgadmin4/
OS: Ubuntu 18.04
Web Browser: Firefox 89.0.2 (64-bit)
You can set the maximum width value for columns under File -> Preferences -> Query tool -> Results grid
Max column width setting pgAdmin 4
In the newest version of PG Admin v6 (6.7 as of 3/18/22) they changed this yet again. It is in the same place, but the option no longer lets you set the width. There is just a radio option to have super wide columns or base the width off of the column name
Preferences Screen PG admin 6.7
I am using PostgreSQL 11.17
Go to File menu > click on Preferences
From Preferences window scroll down to Query tool
From the list under Query Tool > click on result grid
Select Column name in the Columns sized by field
Click save
Reopen the table you were having issue with due to column width

How to Remove 「Total」 row in SSRS report?

I am new to SSRS.
In report, I have One table layout result where its first row (there is a bug in total) and last row is having total of all the fields. (Like shown in below image)
Given 「Total」 in first row, which I want to remove from the Report simply. I have its source file and I tried already so many ways but I am not getting its solution.
Edited
Design View of the same is here
Row Groups Panel is looking like:
Group Properties:
Expression 1(top left most):
=Iif(Fields!LineCaption.Value="","TOTAL", Fields!DispOrder.Value & ". " & Fields!LineName.Value)
Expression 2(below of top left):
=Iif(Fields!LineCaption.Value=""," ", Fields!AddupInfo.Value)+ " "
Thank you to All Commentators for commenting and giving your precious time in my problem with suggestions.
But I have found my own way solution.
By creating condition on Row_Group Visibility option while it loads the data from server.
As「Total」field was getting calculated in Row_Group only. So in Visibility option, I checked for first Row that "If first row is not Line_Name(My field name) then Hide that Row".
Maybe this is not the accurate answer but this was the only option for me to add.
You can do it via the context menu in the matrix view, not in the "Row Group" are:

Is there a limit to the number of items in a check box group?

I have a checkbox group for which I am using a #DbLookup to obtain the items to appear with checkboxes. It works fine except for a couple of cases where I am getting over 230 values from the lookup. In that case I get one checkbox with a value of "Infinity". I think that is telling me I have too many choices in my checkbox group.
Is there a limit to the number of values you can put in a checkbox group? What would be the best way to handle those cases where there is a large number of values? I may just take the route of "if there are more than 100 values returned, truncate the list".
There is no real limit for checkbox group. I tested it with 100000 entries and it still works well.
Probably, the "Infinity" error comes from #DbLookup. The error occurs if the result is larger than 64K. As an alternative to #DbLookup you can write your own SSJS code for getting the view entries or you use the Pure Java version of DbLookup & DbColumn, with cache, sort and unique.

Why won't " (800) 555-1212" fit in a varchar(20) field?

I have a SQL Server phone number field that is defined as varchar(20). A phone number like '800-555-1212' fits with no issue but a phone number like '(800) 555-1212' will cause a "data will be truncated" error. Why would that be?
That example inserts fine into a field defined that way (I ran a test).
You may have some invisible characters adding to the length like tabs and carriage returns.
Or you may have a calculated field (or code in a trigger) that is based on that field (we have a phone_number_stripped field to store just the numerics) that has accounted for stripping out - but not ( or ).
A value could be "like" that value, but be padded with spaces on either end.
Make sure your software handles that case. I recommend allowing the space, but automatically trimming it off.

Cell.cross() returns error in Google Refine projects

I'm trying to create a new column based on my main project's Date column that pulls timeline events from another Google Refine project:
cell.cross("Clean5 Timeline", "TimelineDate").cells["TimelineEvent"].value[0]
The dates are in the same format in both Google Refine projects. But it fills no cells, and I get this error:
Error: Cannot retrieve field from null
This — 
cell.cross("Clean5 Timeline", "TimelineDate")
— returns [ ] for rows where there should be a match.
And this —
cell.cross("Clean5 Timeline", "TimelineDate").cells["TimelineEvent"]
— returns null for those rows.
I copied the syntax directly from the GREL help files: http://code.google.com/p/google-refine/wiki/GRELOtherFunctions. Can anyone suggest what I may be overlooking?
Thanks.
Without access to your projects it's going to be difficult to answer this, but the first thing I'd suggest is that you trim back your expression to find out exactly where the null is coming from.
Since
cell.cross("Clean5 Timeline", "TimelineDate")
is returning an empty array ([]), nothing based on that result is going to work.
There are three possible problems that I can think of: 1) the project name is wrong, 2) the column name is wrong, 3) the data values don't match (or Refine doesn't think they do), or 4) you are running into a caching bug with cross() that exists in Refine 2.5.
Restarting the Refine server should clear the cache if you're running into the bug and it's also fixed in the current source repository. The fix will be included in OpenRefine 2.6.

Resources