org-mode - hiding blank lines when cycling plain lists - emacs

I have noticed that trailing blank lines only get folded under headings but not under plain lists. For example:
* Heading 1
Lorem ipsum dolor sit amet, consectetur adipiscing elit...
* Heading 2
* Heading 3
when cycled, is folded to:
* Heading 1...
* Heading 2...
* Heading 3
But when this plain list is folded:
- List item 1
Some text goes here
- List item 2
- List item 3
I get this:
- List item 1...
- List item 2...
- List item 3
In order to get rid of the extra blank space, I have been writing my plain lists like this:
- List item 1
Some text goes here
- List item 2
- List item 3
which is visually annoying.
Is there a variable I can set to fix this?
Thanks!

I don't think there is a variable to influence this. This happens in org-cycle-internal-local when it calculates eos by calling org-list-get-item-end-before-blank and, as the name implies, this does not include the blank line at the end of the item.
You would have to replace that call with a call to org-list-get-item-end to do what you want (I think - untested). You might try asking for the feature on the orgmode mailing list.

Related

Why Are Three Dots In A String Like "..." Considered As 1 Length?

Update: The title would be, "Why Are Regular Three Dots Was Considered As Ellipsis By TextEditingController". Because I didn't touch anything out of the dot button
I'm controlling the length of TextField with TextEditingController (With this way because I want to guide the user step by step)
if (usernameController.text.length < 3) {
_showMessage('username'.tr, 'username_min'.tr);
return;
}
If the input is "ab...", then the controller says the length as 3
If the input is "a...a", then the controller says the length as 3
If the input is "...", then the controller says the length as 1
What I am missing?

How to continue a list item after a sublist

I would like to have some descriptive text in a list item after a sublist.
How to achieve that in Asciidoc?
Here is the structure I would like to have:
A list item of the main list
Then a sublist with some list item
Just another sublist item to give the sublist sense
And after the sublist some more descriptive text.
A subsequent item of the main list.
What I have tried:
Starting point:
* A list item of the main list
** Then a sublist with some list item
** Just another sublist item to give the sublist more sense
*And after the sublist some more descriptive text.*
* A subsequent item of the main list.
The comment //-- ends the main list. So it is not helpful at this point.
Stuff like multiple newlines does not help to end a sublist.
In Orgmode the following code gives the desired layout:
- A list item of the main list
- Then a sublist with some list item
- Just another sublist item to give the sublist more sense
*And after the sublist some more descriptive text.*
- A subsequent item of the main list.
See attaching blocks to an ancestor list.
For example:
* A list item of the main list
+
--
** Then a sublist with some list item
** Just another sublist item to give the sublist more sense
--
+
*And after the sublist some more descriptive text.*
* A subsequent item of the main list.

Output additional Text in Powermail if specific Checkbox is checked

so here's my problem: I tried to output an additional text once a specific checkbox is checked in powermail.
The select field contains multiple options and all are selectable of course, but when i.e. field 1 is checked the sender should have the standard text in the mail plus "Lorem ipsum", but when the field isn't checked there should be no additional output at all.
I could find a solution for altering texts depending on a selection for single selects / dropdowns and it works like a charm, but for a reason the multi-select doesn't work at all. I can't figure out why so maybe someone can help.
TS:
lib.serverex = CASE
lib.serverex {
key.data = GP:tx_powermail_pi1|field|produktang|1
key.intval = 1
1 = TEXT
1.value = Lorem Ipsum
#Default
default = TEXT
default.value =
}
The email in powermail looks like this:
Some standard text...
{f:cObject(typoscriptObjectPath:'lib.serverex', data:'{produktang}')}
The checkbox configuration inside the form (id: produktang):
first product | 1
second product | 2
third product | 3
fourth product | 4
fifth product | 5
Either it appends it no matter what the input is/checked boxes are or it doesn't send the additional text at all. I'm probably missing something here.
Thanks in advance!
The result of field {produktang} is an array (of course because it's a checkbox). So you have to find out if there is any key with value "2" (e.g. if you're searching for product 2) of in your case tx_powermail_pi1|field|produktang|1 == 2
I solved it now with kind of a trick because I couldn't make it work in a different way.
What I did:
I moved the specific product where the email alters to the first position in the multiselect element. So it's Index will be 0.
The next thing is to check if the element in position 0 of the array equals the desired product, in my case it's "firstProduct". Since it's in the first position it'll always be "firstProduct" if "firstProduct" is checked and the additional text will be "printed". I set the default text to an empty string so it'll stay blank in every other case.
Here's the code:
lib.serverex = CASE
lib.serverex {
key.data = GP:tx_powermail_pi1|field|produkt|0
firstProduct = TEXT
firstProduct.value = Lorem Ipsum
#Default
default = TEXT
default.value =
}
The configuration of the Checkbox inside powermail:
firstProduct
secondProduct
thirdProduct
fourthProduct
fifthProduct
And the code which is inside of the email itself:
{f:cObject(typoscriptObjectPath:'lib.serverex', data:'{produkt}')}
It probably works in another way as well, but I couldn't solve it another way. Hope this helps if someone encounters the same issues I had.

How to change background color for each two rows in SSRS in a group

How can I write the expression in order to change background color for each two rows in SSRS?
I need something like that:
I tried expression
=IIF(Fields!Type.Value="2016 Submitted" , "LightBlue",
IIF(Fields!Type.Value="2015 Submitted" , "LightBlue",
Nothing))
But because some months dont have values it looks like this:
If I try this expression I get below:
=IIF(RunningValue(Fields!Count.Value, CountDistinct, Nothing) MOD 2 = 1, "White", "PaleTurquoise")
Dance-Henry I tried your code
=IIF(RowNumber(Nothing) Mod 4 = 1 or RowNumber(Nothing) Mod 4 = 2, "Aqua","White")
and this is what i got:
You can select the row in design pane and press F4 to setup property BackgroundColor as =IIF(RowNumber(Nothing) Mod 4 = 1 or RowNumber(Nothing) Mod 4 = 2, "Aqua","White")
Captures are attached. Do it accordingly.
RESULT is something like this
After going thru the link https://blogs.msdn.microsoft.com/chrishays/2004/08/30/green-bar-matrix/
Tested and it works well for the Green Bar Effect for Matrix. I will show it step by step here as for later reference.
Step 1: Create the Matrix and add one more column under the innermost row grouping in your matrix. (ColorNameTextbox here)
Step 2: Select the textbox of ColorNameTextbox and press F4 to setup BackgroundColor property as =Value shown below.
Step 3: Select the textbox of Matrix cell and press F4 to setup BackgroundColor property as =ReportItems!ColorNameTextbox.Value shown below.
Step 4: Drag the inner grouping header (ColorNameTextbox) to be as narrow as possible.
Step 5: Preview Pane to check the result.
If you could add a hidden color_group column and populate it with a new number at each point you want to change the color (in your case 1,1,2,2,3,3,4,4) then you could use something like the following (which works for varying size groups):
IIF(RunningValue(Fields!color_group.Value, CountDistinct, Nothing) MOD 2 = 1, "White", "PaleTurquoise")
I had a similar problem where I could not come up with alternating rows because my data has Column Groups that were the RowNumber(Nothing) method to fail. Learning from all the other posts here this is how I resolved it in steps.
I added the following code into the report properties, that provides a function to get the row number, each time it is called. The function increments the row count each time it is called. >>Right click space around the report >> Properties >> Code. Alternatively go to Code Properties Window, when the report is selected.
Add the following lines:
Public Row_Sum As Decimal = 0
Public Function Lookup_Sum( ) As integer
Row_Sum = Row_Sum + 1
Return Row_Sum
End Function
I added a new column at the beginning of the rows called No. that would calculate and show the row number.Right click the first column >>Insert Column>>Inside Group-Left.
On the expression for the new report add this line of code. Also take a note of the name of the TextBox that will have the No. Value. It will be needed in the next step. In my case the TextBox is called TextBox6 (Properties Window). >>Right Click Cell>>Expression.
Add the code:
=Code.Lookup_Sum()
I highlighted the entire row and went to the Background property and added the following expression to compute the row number.
Add the code(TextBox6 is the name Textbox name noted above):
=IIF(VAL(ReportItems!Textbox6.Value) MOD 2, "LIGHTBLUE", "WHITE")

Need to count a running value percentage top 80 percentile number of rows

I have a running value expression that color codes (Yellow) when it reaches 80%. The remaining 20% are then without color. I need to count the number of rows that comprise that 80%.
Here is the expression that's placed in the Background Color properties:
=IIF(RunningValue(Sum(CDbl(Fields!qtr_total.Value)), Sum, "Data8020") <
(Sum(Fields!qtr_totalValue.Value, "Data8020") * .8), "Yellow", "Transparent")
I just need to count the number of rows that are marked in yellow.
Add a column with the following expression:
=IIF(RunningValue(Sum(CDbl(Fields!qtr_total.Value)), Sum, "Data8020") <
(Sum(Fields!qtr_totalValue.Value, "Data8020") * .8), 1, 0)
and then sum this column to get to the count value. You can hide this column so that it wont mess the looks of your report.