I am using Oracle Reports but I cannot find a format which is similar to my needs. The closest is the Delimited data format but this leaves unnecessary spaces, tabs or symbols between columns. Is there a way to get this result but removing the unnecessary format
e.g.
Column 1 would read A00000
and Column 2 would read BCD
I want to get
A00000BCD rather than A00000 BCD which is what I am currently getting.
Thanks for your help!
Please clarify my comment to your question.
Assuming your report makes use of the Layout Editor stuff [i.e., the delimited data is generated as directed by DESFORMAT and not by some custom packages], you have the following options:
Delete the unwanted spaces between the column fields in the Layout Editor.
Concatenate the columns in your Query and use it in a single field in the Layout Editor.
If [1] fails, try [2].
If you are using custom package, then it is really straightforward - remove/trim the spaces/tabs in the code.
Related
I'm attempting to produce a spreadsheet which will produce a formatted json string within a cell which can then be copied and pasted out into another application.
My problem is pretty simple, the json record contains lots of " characters delimiting the variable names and associated values in the json string.
I want to manipulate the value strings in the json using IF statements to generate test data.
Is there a way to alter the text delimiter within the worksheet to allow me to use something other than " in the IF formula without affecting:
Excel as a whole
The validity of the IF formula as a whole
Please note that I need to do this via a formula in a cell (or cells), not via VBA. We have system restrictions preventing macros, etc being run which negates that approach.
Thoughts appreciated.
Thanks.
I have imported a csv file from MySQL, documenting part numbers and descriptions. Some of these part numbers have values like 1234567890987654321, which is then shortened by excel to 1.23e18. Problem is, I cannot query a part with this formatted data.
Now I cannot feasibly go through every cell as there are just over 28000 of them. I have converted the row to text however this does not change the data in the cell.
The closest thing I have to a solution is deleting the cells and then undo-ing, which gets the number in a textual format but then gives me a 'number in text field' error.
Also some parts have part numbers like 12E345 which is then changed to 1200000000000000000000000000000000000000000000- you get the picture.
Very annoying...
I would like a batch process to change all the values to text format, thanks in advance.
Instead of just opening the CSV in Excel, import it with Data -> External Sources -> From Text.
You will have to first pick basic things like "delimited" format, whether first row contains headers, separator etc.
In the third part of the "Text Import wizard", you can pick data type of each column - picking Text for your columns will probably solve the problem.
I inserted three text boxes to test how this could work:
Text81: =1
Text82: =2
Text83: I want this one to be the sum of Text81 and Text82
Thanks in advance for your help on what I think is a pretty simple problem.
There are a couple options that spring to mind.
First you could always modify the data source for the report to include the calculated field.
Second, which is what your question drives at, you can do something like this:
=[Text81] + [Text82]
Should work when typed into the Control Source of a TextBox provided Text81 and Text82 are the data field names from the Data Source of the Report. If they are not you would put the corresponding data field names in the square brackets []
Hope this helps
I have a report embedded in a web application that works fine but I need to make a tweak to it. Right now the report basically will dump all the rows from a view, I have some filters set up but I have disabled them to simplify this and get this working. I spent all day yesterday trying to get this to work correctly, attempting many different combinations of things. The end goals is to take a set of data and display it as a comma separated list within the same row that the data belongs to.
My data is a list of projects, each project can have multiple personnel associated with it, instead of having a new row for each person we want all the people in one column separated by commas that belong to the project. A trivial task in SQL.
SELECT dbo.APM_Project.Code, dbo.APM_Project.Title,
(STUFF((SELECT(', ' + vi.NameFirst)
FROM view_OrganizationPerson vi
JOIN APM_Project as p ON vi.ProjectId = p.Id
WHERE vi.ProjectId = APM_Project.Id
AND vi.Role = 'Principal Investigator'
AND vi.Status = 'Active'
FOR XML PATH('')), 1, 2, '')) AS PI_
FROM dbo.APM_Project
Also I have tried the SUBSTRING method of producing the comma separated list, all of these methods work great when I run the SQL script, they also work when I preview the data from my dataset in visual studio so something must be right. I get the results I want however when I run the application, I get no data in the column using the expressions of
=Fields!PI_.Value
or
=First(Fields!PI_.Value, "DataSet1")
So I'm not entirely sure where to go from here. This seems like it should be a pretty easy task, also when I run the expression
=Fields!PI_.IsMissing
it comes back true, so something is being lost at runtime and I just can't figure out what it could be.
All other data of the project is present within the text boxes, just the PI_ column is left blank.
Question is:How do you display a CSV list of data in one column of a row of data in an RDLC file?
Turns out this is valid. I needed to update the .aspx page with the changes made to the data adapter itself since I changed the data set.
I have a flat file that I need to parse in SSIS, part of this parsing is to chop off a load of extra text at the bottom of the file. To help do this I added a row number to each row using a Script Transformation.
In the Script Transformation (ST) under Inputs and Outputs I have an Input Column defined called Column256_in (it has a length of 256) and its ID is 59.
For Output columns I have defined Column256_out, it has an ID of 68 and a MappedColumnID of 59, there is another Output Col called rowCount.
There is script code contained in the ST the calculates the row number for each row.
When I run the SSIS package I have a Data Grid after the Script Transformation I get the following:
Column256_in contains the data from the orginal text file.
rowCount is populated correctly. ( I did something right today!)
Column256_out is empty --> I thought that the MappedColumnId of 59 would populate this col with the data from Column256_in.
What does the MappedColumnID attribute do on the Out put col?
Thanks for your assistance.
KD
MappedColumnID is just an alternative way of identifying the columns instead of using their names.
From MSDN
The use of these properties is not required. These properties provide an easier way for developers to associate related columns, such as input and output columns, in custom data flow components.