Dynamics AX 2009 - Customising AutoReports - axapta

I have created a custom auto report (by clicking file > print - then modify to create new) with various fields but when physically printing the report, the first column wraps the text so it looks something like this:
Item # | Item Name | Qty
--------------------------
5439988 | Test Item | 2
0049E
Other columns do not wrap text like this, is there any way of changing the column widths to stop this kind of behaviour so i can improve the aesthetics of the report?

Check the DisplayLength attribute on the extended data type of the corresponding field.

Related

How to Project Rows Whose Column Values Only Appear in the First Table?

I have two Kusto tables in the same database, Open_Work_Items and Closed_Work_Items that appear respectively like so:
Item ID | Opened Date
1234 | <DateTime>
Item ID | Closed Date
1234 | <DateTime>
My issue is that I cannot remove work items from Open_Work_Items once the Item ID appears in Closed_Work_Items, but I would still like to query which work items are open. This means I need to find distinct Item IDs Open_Work_Items that do not appear in Closed_Work_Items, but I do not know which Kusto function(s) I can use to do so.
I've looked at Tabular and Scalar Operators, but I'm not understanding how I can combine them to get what I want here. Any help/advice would be appreciated!
Any help would be appreciated!
I think I figured it out:
Open_Work_Items | where Item_ID !in (Closed_Work_Items)

SSRS Two font colors in a single string value

I am trying to modify the font color of a specific word in my values. What kind of expression could I write that would target this word and style the font to be red? I've heard of modifying the placeholder to accept HTML but I'm not sure this will help.
The value is made up from a case in the dataset that pulls from two tables that have gender so: "(consumer gender) | (caretaker gender)"
Possible values would be: Male | Male, Male | Female, Missing | Male, Missing | Female, Missing | Missing ….etc
What I'm trying to do is just target the "Missing" values and change the font color to red. Any way to do this? I've tried modifying the font color expression but only can figure out ways to modify the whole string as opposed to just that one word.
You can do this but it's a bit of a pain..
I used a quick dataset to demo the results built from the following SQL
DECLARE #t TABLE (textData varchar(20))
INSERT INTO #t VALUES
('Male | Male'), ('Male | Female'), ('Missing | Male'), ('Missing | Female'), ('Missing | Missing')
SELECT * FROM #t
The column we will use is just called textData
Start with an empty cell.
In the empty cell, double click to get a cursor, right-click inside the cell and choose "Create Placeholder"
Right-click the placeholder and set it's expression to somethign like...
=TRIM(LEFT(Fields!textData.Value, InStr(Fields!textData.Value, "|") -1))
This will get the text from the left side from the pipe symbol. Click OK to get back to designer. click just after the new placeholder and type the pipe symbol (with spaces if required).
Next right click after the pipe symbol and add another placeholder. This time we will use an expression to get the right side of the pipe symbol.
=TRIM(MID(Fields!textData.Value, InStr(Fields!textData.Value, "|")+1 ))
Now we've got the data displaying, select the first placeholder and set its color property to
=IIF(TRIM(LEFT(Fields!textData.Value, InStr(Fields!textData.Value, "|") -1)) = "Missing", "Red", Nothing)
repeat for the second placeholder this time using this expression.
=IIF(TRIM(MID(Fields!textData.Value, InStr(Fields!textData.Value, "|")+1 )) = "Missing", "Red", Nothing)
IN my simple design, the left column shows the original unaltered data from the dataset, the right column contains out two placeholders with colors.
The final output looks like this.

Adobe Reader cannot correctly read out loud table in tagged document

I'm trying to create accessible table which Adobe Reader pronounce 'correctly'. It means that before pronouncing contents of the cell it speaks name of the header of the current column (or row). (It explained better at the first link below).
For this I've created single-page document with a table like this.
+------+-----+-----+
| Name | Sex | Age |
+------+-----+-----+
|Antony|Male | 26 |
+------+-----+-----+
|Robert|Male | 36 |
+------+-----+-----+
Then with "Touch Up Reading Order" tool I've changed properties of each cell to create references to header cells.
It expected to pronounce:
"Name. Antony. Sex. Male. Age. Twenty six. Name. Robert. Sex. Male. Age. Thirty six."
But it read table row by row.
Maybe I didn't enable something?
I've used this links to prepare document:
http://teachingcommons.cdl.edu/access/docs_multi/pdf_vid_tut/repair_docs/identifying/identifying_table_headers.shtml (Associating Data Cells to Row and Column Headers)
http://www.the508compliantpdf.com/creating_complex_tables_in_indesign_and_acrobat/

Crystal Reports Hiding Columns

I have a crystal report with several columns.i need to hide a column and remove the blank space based on a condition.currently what i have done is.i have dragged and dropped the fields inside TextObject and tick the "Suppress Embedded Blank Field Lines" and "Can Grow".it'll hide the detail field and also remove the blank space but the issue is header is still visible.
condition to hide a column is if the field data is null or empty
Try creating a formula for your conditionally displaying column heading. Something like:
SomeFieldLabel:
If DistinctCount({#SomeField}) > 0 Then "The Column Label"
or
If Not IsNull({#SomeField}) And {#SomeField} <> "" Then "The Column Label"
Then create a text object with {#SomeFieldLabel} and all your other labels, and select Suppress Embedded Blank Field Lines.
You may need to experiment to find the right condition – one which evaluates to True whenever the field is present in your detail records, and False the rest of the time.

Render a newline in my data inside a jqGrid cell

First off, I'm using version 3.7.1 with a jQuery UI framework theme. I'm trying to figure out how to have a newline or even a <br /> render inside of a jqGrid cell.
An example of what I'm looking to have happen:
________________________________________________________
Item 1 | some data | Applies to OS 1
Applies to OS 2
Applies to OS 3
Applies to OS 4
__________________________________________________________
Item 2 | some data | Applies to OS 1
__________________________________________________________
Item 3 | some data | Applies to OS 4
Applies to OS 5
__________________________________________________________
What currently happens when my data has either a <br /> or a \n is:
__________________________________________________________
Item 1 | some data | Applies to OS 1Applies to OS 2Applies to OS 3Applies to OS 4
I would rather not have to use an actual <br /> tag, since I'd rather not have HTML embedded in my data, but am willing to do whatever I have to since I NEED to render this data as a list of values. Thanks for any help.
You should use custom formatter (see http://www.trirand.com/jqgridwiki/doku.php?id=wiki:custom_formatter) for the column where you need to have <br />. This allow you to defina any HTML fragment for a column. See jqGrid: Editable column that always shows a select as an example.
Probably Wrapping Text lines in JqGrid will be also helpful for you.
P.S. If you will have problems with the usage of custom formatter, post a column definition and a raw data example (JSON data for example) for the column where you want have <br/>

Resources