Conditionally positioning fields in Crystal Reports 10 - crystal-reports

I've done a lot of googling and haven't been able to find a solution to my issue. I have a report that displays the number of calls for different help desk categories/sub categories. It has the category name and 4 other columns. When a child category is displayed it indents the whole line, but I want the last 4 columns to stay aligned under their respective labels. I'm using Crystal Reports 10 and don't see any where to enter a formula to conditionally position the fields for the last 4 columns. Even if I did see a place to enter a formula I'm not sure how I would determine where to place the fields because the X position for the field doesn't actually change when the line is indented. The only thing I could think of to handle this is to figure out how many tabs each line is indented and then subtract those from the X position, but I'm not sure how I could tell how far a line has been indented. Any suggestions would be greatly appreciated. Thank you

The SAP User Guide actually has quite a bit of information on this. You can set indentation values and you can do a lot of conditional formatting. Check the guide for CR 2011 out here and Section 11 is mostly about how to format reports. 11.3.10.9 talks about indentation, but I suggest you browse the whole section 11. And even though it's for CR 2011, it doesn't vary much for other versions.
Hope that helps,
Chris

Related

How to filter out problems in VSCode based on text?

I'm using VSCode 1.41.0 on Windows 10 x64.
In my code (which is in a research language you've likely never heard of), there is a certain class of warning message I get a lot of in the Problems panel, and I want to ignore those messages. The text of the message varies a bit across instances, but it always contains the word "duplicate". How can I filter out problems containing "duplicate"? The text filter that already exists keeps problems containing the specified text, and I want the opposite.
I tried !duplicate but it didn't seem to do anything.
Not the answer you are looking for, but negative filters currently only work with glob patterns, not with text. This is a known issue with the filter feature of the problem panel in vscode. You can check the progress here: https://github.com/microsoft/vscode/issues/62531

How to increment a text field by 1 in selenium?

I have a question about how to increment field value each time selenium test is run?.
I have read the answers but am unclear at what point should the echo command should be placed. I have a repeating test where I am entering the number 1 into a text field. And every time the test runs I would like that to increment by one.
I'm also assuming I can put the two "store" commands anywhere near the top of the test.
Also if I go with the javascript{storedVars.i++;} example, would I put the variable i in the text field instead of the number 1?
I'm a relative newb so feel free to talk to me like a 4 year old.
Thanks
I found my answer! Don't know all the etiquette here yet but I need to give props to this website that helped me figure it out.
http://traceyqa.blogspot.com/2011/02/incremental-variables-in-selenium_23.html

Replace empty lines with a Heading style with Normal style

I'm in the process of updating a heap of manuals which for whatever reason have Heading Formats applied to them. The empty lines sometimes appear in the table of contents which is annoying the end recipients somewhat.
The documents have a mix of styles I need to replace, ie the Paragraphs in the boxes below, but I can't work out a way to find an empty line with a specific style that may or may not differ from the previous line.
I'm getting the impression it's not doable but thought I'd ask here before doing it manually. The main effect is on navigation but occasionally TOC, usually when compatibility is maintained.

What's so great about Block Selection Mode?

Longtime Eclipse user here; I recently discovered the "Block Selection Mode" (Alt-Shift-A) that was added into Eclipse 3.5. I tried it out, it's pretty neat--I can select a rectangle of text in my source code instead of selecting things a line at a time like I usually do.
Apparently this feature is common in other editors too, under other names like "column edit mode", etc. A lot of people seem to really love it, but I've got by without for a long time.
So my question is: What kinds of things is this feature useful for?
The only one I can think of is inserting a comment characters (like // or #) in front of a chunk of text. Also, I supposed if I had a bunch of variables names that were all lined up and I wanted to change the first characters for all of them at once. But surely there's more to it than that? I mean, when it comes to choosing an editor, this feature is apparently a deal-breaker for some people!
I find it is very useful when working with fixed-position field data files, and you only want to select a few fields for search-replace or copy-paste. It is also good for things like this:
call_foo('A',123);
call_foo('B',143);
call_foo('C',331);
call_foo('A',113);
call_foo('R',789);
The code is all the same except for some characters in some columns. You could select a block around the second parameter and search for the line containing 113. Useful when you have more than just a few lines all together in this format.
A colleague of mine told me of a project where they wrote JDBC code like this:
String query =
"select question, answer, accepted " +
"from so_answers " +
"where poster = 'Jon Skeet' " +
"order by upvotes ";
So that they could block-select the SQL in order to paste it into a database tool and run it by hand. Seems a bit barmy to me, but it evidently worked for them.
If you arn't using a block cut/copy/paste operation at least four or five times a day then I would suggest you're just doing a lot of extra typing.
If you are looking at a file with fixed width fields, sometimes you only want to select one column.

Visual Source Safe: get versions where a specific line has changed

I'm trying to run down when a particular bug was created, but wading through the history is pretty time consuming. Is anyone familiar with a command line method to get a list of revisions where a line or range of lines changed?
svn and vault evangelists: I know, right....but you can't always pick the environment....
I don't think SourceSafe has an easy way to do this.. but I haven't used SourceSafe since version 2005. One method you could try is using a divide and conquer search.
First, pick a date in way in the future, if the bug is there, double the length, until you find a version without the bug.
You just need two known points to work with, one when you know the bug is there, and one where you know the bug isn't there, cut those two in half and check the version in the middle. if the bug is there cut the top half in half, if its not cut the bottom half into half.
This will be way more effective then looking in every file version.
I don't remember if SourceSafe has a version number for each file, if not you could just use the scrollbar as your guide for where the halfway point is.