Making one of the column dividers thicker than the others in a browse - progress-4gl

I have a browse with 5 columns. I want the dividing line between columns 3 and 4 to be a little thicker.
Is there a way to do this?

Short answer is no, you can't change the line between columns.
But you could add an empty dummy column with blank values between column 3 and 4, that you could get to look it like a thicker separator.
Regards,

Related

How can I hide a label if another label is taking up X number of lines?

Say I have two labels, one on top of the other. Label 1 is set to have a maximum number of lines of 2 (numberOfLines=2). So sometimes, depending on the text, Label 1 can take up TWO lines. The thing though is that a maximum of 2 lines should be shown between both labels, where Label 1's second line takes precedence over Label 2. (Also, Label 2 is always 1 line.)
So either of these 2 scenarios are possible:
Label 1 text
Label 2 text
OR
Label 1 text (line 1)
Label 1 text (line 2)
The only way I thought to attack this was to simply hide Label 2 if Label 1 is taking up 2 lines. But the problem is, how can I determine how many lines Label 1 is taking up?
I've found a few other answers about this (1, 2), but none seem to work for me. Is there perhaps a better way to go about this?
In my opinion, you should just use one label, and construct the text seperately by the code and pass the final text into the label. In order to have a new line, you can use "\n". If you want to have a different fonts/color etc, you can always use AttributedString. This will be much cleaner, easier to change, and more flexible to maintain in the future.
Did you working with Constraint? or Did you have knowledge about NSLayoutConstraints?
you can easily do that with managing proper constraint and it doesn't matter how many line will text have you can show both label with text.
make sure label.numberofline = 0. // It will take line as text.

Tableau Legend Issue

I'm trying to use a legend(which is common for more than 2 columns)
such that
a. tick mark means 3
b. exclamation mark means 2
c. Bold circle means 1
See the screenshot for 2 columns displayed in the attachment.
However i need a common legend for these columns
I tried to go to analysis tab and then click on legends, but this will show legend for only 1 column at a time and i need 1 legend for more than 2 columns.
In general, if the customization and formatting options for the built-in legends and filter controls don't do as you wish, the next approach is to build a worksheet that shows and acts as you desire. Then use that worksheet on your dashboard to serve a replacement for the built-in legends.
In your case, one approach is to make a simple text data source with one row for each item you want to appear in your new custom "legend". Then build the legend worksheet of your dreams :-)

itext component over another component

I'm creating a pdf report with itext and I'm having a problem. I create a line separator and immediately below I create a pdfTable. The problem is that de top border of the table is over the line separator I just created. Is any way to down a couple of lines in order to draw the next component with itext and solve this?
Thank you
Please take a look at the API documentation of the PdfPTable class. You'll fond methods such as setSpacingBefore(float spacing) and setSpacingAfter(float spacing). In you case, you could something like:
table.setSpacingBefore(6);
This will introduce a spacing of 6 user units (which by default corresponds with about 1/12 of an inch) before the table.
The spacing you need for "a couple of lines" depends on the leading. The default fonts size is 12 and the default leading is 1.5 times the font size. Two lines would be (2 x (12 x 1.5)) or 36 user units (about half an inch).

iText split PdfPCell when cell is kept together

I am using a table to create a semblance of what is depicted below. The content I'm generating isn't known before hand. The blue sections of the columns are cells that are kept together in the table and I am using ColumnText to display the table. For clarification I have outlined a sample cell layout in the top right of the image. The problem I'm running into is that when I use setSplitLate(false) with setSplitRows(true) alongside with using keepRowsTogether(int[] rows) the splitting doesn't work correctly. Most of the top right section should be able to fit into the bottom left but as shown in the image it is all moved to the top of the next column.
Is there a way to cause the cell to split as well as keep together with it's header? When I remove the keepRowsTogether(int[] rows) call the cell splitting works as expected.
Also, in my situation I only want it to split if there are two lines at the end of the column and two at the beginning of the next. In other words the cell would only split if it contained 4 lines of text. How would I go about doing this?
I modified the top right column as depicted below, blue representing the rows that are kept together.
As depicted, I have a cell for the header as before but I've split up the paragraph into many different cells. The first and last contain cells with two lines of text and the rest contain one line of text. This way I'm guaranteed that the header will stick with at least the first two lines of the bulleted paragraph. If the last two lines, or the last cell, end up not fitting in the column then because the cell contains two lines, I'm guaranteed that at least two lines will be carried over to the next column, if not more, depending on how many of the middle lines carry over as well.

The second column on my report is not formatting the same as the first column

I need it to look like a table so it looks similar to what the old program's report did. I finally figured out how to do columns, then I added lines between each field both horizontal and vertical. The first column formats with this correctly, but the second column only adds the line horizontally. See the screenshot:
Any help?
Personally, I prefer the new version. Less clutter. But if you want to add them, you can:
Put borders around your cells. This may cause some problems with overlap, but you can work around that by only putting borders around the Item and Price fields.
Use your line tool to draw 4 vertical lines in both the Detail and Report Header sections.
Its blind guess.. If you have copied the lines from first column there is possibility that they don't showup in second column.
Try to draw the lines again and check.