Apex 4.0 additional blank lines in CSV export
I have an existing report with a CSV export that since upgrading to Apex 4.0 produces a blank line between each line of data in the export file like this:
"Col1","Col2","Col3"
"1","aaa","aaa"
"2","bbb","bbb"
"3","ccc","ccc"
Is this a bug in Apex 4.0? Is there a work-around?
Marsha,
I doubt what you are trying to accomplish is possible. When a tabular form loads; it is fetching from the base table; where would the blank rows come from? Certainly not the database.
I believe you will have to ask your users to click a button. The AddRows page Page Process has a parameter named Number of Rows which can manipulate.
Jeff
Similar Messages
-
http://sportsraxco.com
I'm creating sports related 3D products using illustrator to create the original art. You can see them at the website above
The art is outlined exported as dxf and sent to a metal fabricator to laser cut the art.
Multiple phantom outlines of the drawing appear in the dxf complicating the cad work and adding cost to production.
We've found that the phantoms actually are in the illustrator file. Exact images of what i'm drawing but assigned no color.
Why is that happening. How do I stop it from happening?
Thanks four your help
Larry Raymond -
How to handle blank line in File adapter
Hi,
I am using a file adapter with CSV as input file. If I have a blank line in CSV file, BPEL is failing read it, no instance is created and file is archieved.
Please let me know how to handle this issue.
ThanksHi Yatan,
I am already using rejectedMessageHandlers, I am on 10.1.3.3.
Here's my bpel.xml
============
<?xml version = '1.0' encoding = 'UTF-8'?>
<BPELSuitcase>
<BPELProcess id="EmpAddressUpdABCSImpl" src="EmpAddressUpdABCSImpl.bpel">
<partnerLinkBindings>
<partnerLinkBinding name="ReadFile">
<property name="wsdlLocation">ReadFile.wsdl</property>
<property name="rejectedMessageHandlers">file://E:/HRARCHIVE/BadData</property>
</partnerLinkBinding>
<partnerLinkBinding name="InsertAddressUpd">
<property name="wsdlLocation">InsertAddressUpd.wsdl</property>
<property name="retryInterval">60</property>
</partnerLinkBinding>
</partnerLinkBindings>
<configurations>
<property name="sensorLocation">sensor.xml</property>
<property name="sensorActionLocation">sensorAction.xml</property>
</configurations>
<activationAgents>
<activationAgent className="oracle.tip.adapter.fw.agent.jca.JCAActivationAgent" partnerLink="ReadFile">
<property name="portType">Read_ptt</property>
<property name="rejectedMessageHandlers">file://E:/HRARCHIVE/BadData</property>
</activationAgent>
</activationAgents>
</BPELProcess>
</BPELSuitcase>
Someone told me that this can be achieved by changing the native schema, I tried many options but no result. Please suggest me.
-- Shirish -
Blank Lines in Oracle Reports in Text Format
Hi all,
I m in a problem that , I generate an Oracle report in text format there is two additional blank lines in text format.But when I view this report in report editor there is no blank lines.There is actually only 15 lines in my report but in text format it shows 17 lines.How can I avoid this prblm.pls help.
thanks
jobuinIs the Design in Character Units set to Yes?
How are you viewing your layout in report editor? Are you viewing with Grid?
If it is Yes and with grid, try to fit your layout objects within the Grid. -
Table of Texts results in extra blank lines
I have a table of texts in a flowed subform that expands for each line of text. The text and font is a chinese font (Adobe Song Std L). I also have autowrapping turn on so it autowraps when the line is too long.
I would like each new line in the table to have the carriage return as if it is wrapping, but not add an additional blank line like it's a new paragraph.
So instead of using a table I thought I'd concatenate all the lines together and separate them with a control character for carriage return when I want a line break (still allowing Adobe to autowrap when a particular line is too long).
I am preparing this string in SAP which gets sent to Adobe. I've tried concatenating '\u000D' but it just shows those characters rather than performing a carriage return.
Any ideas how I can accomplish this without ending up with a new paragraph (extra blank line) between my lines of text?
Thanks,
ScottSure - you need to specify the correct "context" how we call it.
When your document contains XSL - the RTF converter has to make assumption
where to put your code - for if statement the assumption is on fo:block (=paragraph) level.
You can the context directive @inlines behind your if statement to correct your problem.
<?if@inlines:sum(current-group()//HOURS != '0'?> should correct the problem
This example is described on page 2-56 "" in the 5.6.1 User Guide. You may also want to read on the context in general in the section "Using the Context Command" (2-107 in the 5.6.1 user guide).
Hope that helps,
Klaus -
Export Excel Data only causes blank line between 2 lines of records
Hi,
I wrote a complete winform application using CR2008.
For information :
C# Framework 3.5
Windows XP SP2 or Windows Server 2003 SP1
CR2008 SP1
Application allow to preview report. In the preview window (CR activx) there is a "letter icon" to export report in several format.
-RPT
-PDF
-DOC
-XSL
-XSL Data only
When I export with "Excel Data only" format, I always have a blank line between 2 lines of records in Excel.
Is there a way to supress them from VS2008 ?
Thanks a lot for your reply,Hello, Jonik;
Do you see the same blank lines when you export to Excel Data only in the Crystal Reports designer?
Elaine -
Output csv file with blank line
Hi Fellow PI friend,
I encountered 1 problem where my output csv file always come with 2 blank lines after data line record. Can someone give me some advise or tip how to solve it?
Thanks in advance.Hi ,
Check if this link throws some light on your issue:
Junk character at end of file from sender adapter creating a blank record
Regards,
Ravi -
CS3 - Auto Format doesn't compact blank lines?
In Flash 8 on OS X, using Auto Format used to remove blank
lines. I can't seem to find a way to enable this in CS3. Is it
possible?Additional three thoughts: First, is there anything I can do while still in MS Word to enable Acrobat to see the check boxes easier? Different font? Same font, but different "character"? Etc. Second, if there is no way the check boxes can be recognized and converted, is there a way to do an after-the-fact search-and-replace, searching for the check boxes and replacing them with clickable boxes. By the way, I don't need to capture data; I just need for people to be able to fill out the form on their computer and print it. Third, if Acrobat can't do this, is there third-party form software that recognizes check boxes?
-
Extra Blank line inserted at the end of the target file
Hi,
This is File to File senario and target files created with a extra blank line at the end of the file.
Below is the source file structure and the content.
<ns0:MT_MOD_FL xmlns:ns0="http://file2file/MES">
<EMPLOYEE>
<ID>12</ID>
<Name>SREENI</Name>
<Designation>M2</Designation>
</EMPLOYEE>
<EMPLOYEE>
<ID>121</ID>
<Name>RAJA</Name>
<Designation>M3</Designation>
</EMPLOYEE>
</ns0:MT_MOD_FL>
Below is the generated target file
12 SREENI M2
121 RAJA M3
Here Generated target file suppose to have only two line instead of 3.
What exactly do i need to change to generate the file with 2 line.
I am not using any mapping as both source and target message structure are same.
IN FCC i used only fieldSeparator, even i have not used endSeparator.
Thanks in Advanace...Hi! Raghu,
Just go through the below Help..documantation
[http://help.sap.com/saphelp_nw04/helpdata/en/0d/5ab43b274a960de10000000a114084/frameset.htm]
NameA.endSeparator
To define an additional string as a separator after the last column in a row, specify it here. The system skips this string when it processes the last column (otherwise the system would treat it as part of the last column).
NameA.fieldSeparator
If you make an entry here, the system expects that the structure contains the specified character string (one or more characters) as a separator between the individual columns.
If you have not made an entry for fieldFixedLengths, this is the only specification to identify the individual columns in a row.
If you made a specification for fieldFixedLengths, the extra length of the separator is taken into account, but no further consistency checks are performed.
Regards::
Amar Srinivas Eli -
Blank line in receiver file adapter content conversion
Hi,
I am using a receiver file adapter. Everything is working fine. Except that a blank line is put by the file adapter between each records. It is a flat file format.
I have used the stting below. How do we remove the blank line?
Recordset : ACCTHDR,BATCHDR,TRANSREC,BATCHTLR,FILETLR
ACCTHDR.fieldFixedLengths 1,7,4,9,8,665
ACCTHDR.absoluteRowWidth 694
ACCTHDR.addHeaderLine 0
Thanks
Sachin KHi,
.endSeparator
The default value is a line break (no explicit separator after the last column; instead the structures are arranged line-by-line).
If you enter a character string here, the system adds it to the last column as a closing character. You can also make this specification in addition to NameA.fieldFixedLengths. To include a line break following the closing character, you must explicitly define it by attaching ´nl´ (including the quotation marks) to the string.
Regards
Agasthuri Doss -
File import skips last record without blank line
The following code works great for importing a csv file and inserting the records into tables..
but the last record is not read unless there is a blank line after it..
what needs to be changed so that the last line works with or without a carriage return after it..
create or replace PACKAGE BODY "HTMLDB_TOOLS"
AS
TYPE varchar2_t IS TABLE OF VARCHAR2(32767) INDEX BY binary_integer;
-- Private functions --{{{
PROCEDURE delete_collection ( --{{{
-- Delete the collection if it exists
p_collection_name IN VARCHAR2
IS
BEGIN
IF (htmldb_collection.collection_exists(p_collection_name))
THEN
htmldb_collection.delete_collection(p_collection_name);
END IF;
END delete_collection; --}}}
PROCEDURE csv_to_array ( --{{{
-- Utility to take a CSV string, parse it into a PL/SQL table
-- Note that it takes care of some elements optionally enclosed
-- by double-quotes.
p_csv_string IN VARCHAR2,
p_array OUT wwv_flow_global.vc_arr2,
p_separator IN VARCHAR2 := ','
IS
l_start_separator PLS_INTEGER := 0;
l_stop_separator PLS_INTEGER := 0;
l_length PLS_INTEGER := 0;
l_idx BINARY_INTEGER := 0;
l_quote_enclosed BOOLEAN := FALSE;
l_offset PLS_INTEGER := 1;
BEGIN
l_length := NVL(LENGTH(p_csv_string),0);
IF (l_length <= 0)
THEN
RETURN;
END IF;
LOOP
l_idx := l_idx + 1;
l_quote_enclosed := FALSE;
IF SUBSTR(p_csv_string, l_start_separator + 1, 1) = '"'
THEN
l_quote_enclosed := TRUE;
l_offset := 2;
l_stop_separator := INSTR(p_csv_string, '"', l_start_separator + l_offset, 1);
ELSE
l_offset := 1;
l_stop_separator := INSTR(p_csv_string, p_separator, l_start_separator + l_offset, 1);
END IF;
IF l_stop_separator = 0
THEN
l_stop_separator := l_length + 1;
END IF;
p_array(l_idx) := (SUBSTR(p_csv_string, l_start_separator + l_offset,(l_stop_separator - l_start_separator - l_offset)));
EXIT WHEN l_stop_separator >= l_length;
IF l_quote_enclosed
THEN
l_stop_separator := l_stop_separator + 1;
END IF;
l_start_separator := l_stop_separator;
END LOOP;
END csv_to_array; --}}}
PROCEDURE get_records(p_blob IN blob,p_records OUT varchar2_t) --{{{
IS
l_record_separator VARCHAR2(2) := chr(13)||chr(10);
l_last INTEGER;
l_current INTEGER;
BEGIN
-- Sigh, stupid DOS/Unix newline stuff. If HTMLDB has generated the file,
-- it will be a Unix text file. If user has manually created the file, it
-- will have DOS newlines.
-- If the file has a DOS newline (cr+lf), use that
-- If the file does not have a DOS newline, use a Unix newline (lf)
IF (NVL(dbms_lob.instr(p_blob,utl_raw.cast_to_raw(l_record_separator),1,1),0)=0)
THEN
l_record_separator := chr(10);
END IF;
l_last := 1;
LOOP
l_current := dbms_lob.instr( p_blob, utl_raw.cast_to_raw(l_record_separator), l_last, 1 );
EXIT WHEN (nvl(l_current,0) = 0);
p_records(p_records.count+1) := utl_raw.cast_to_varchar2(dbms_lob.substr(p_blob,l_current-l_last,l_last));
l_last := l_current+length(l_record_separator);
END LOOP;
END get_records; --}}}
-- Utility functions --{{{
PROCEDURE parse_textarea ( --{{{
p_textarea IN VARCHAR2,
p_collection_name IN VARCHAR2
IS
l_index INTEGER;
l_string VARCHAR2(32767) := TRANSLATE(p_textarea,chr(10)||chr(13)||' ,','@@@@');
l_element VARCHAR2(100);
BEGIN
l_string := l_string||'@';
htmldb_collection.create_or_truncate_collection(p_collection_name);
LOOP
l_index := instr(l_string,'@');
EXIT WHEN NVL(l_index,0)=0;
l_element := substr(l_string,1,l_index-1);
IF (trim(l_element) IS NOT NULL)
THEN
htmldb_collection.add_member(p_collection_name,l_element);
END IF;
l_string := substr(l_string,l_index+1);
END LOOP;
END parse_textarea; --}}}
PROCEDURE parse_file( --{{{
p_file_name IN VARCHAR2,
p_collection_name IN VARCHAR2,
p_headings_item IN VARCHAR2,
p_columns_item IN VARCHAR2,
p_ddl_item IN VARCHAR2,
p_table_name IN VARCHAR2 DEFAULT NULL
IS
l_blob blob;
l_records varchar2_t;
l_record wwv_flow_global.vc_arr2;
l_datatypes wwv_flow_global.vc_arr2;
l_headings VARCHAR2(4000);
l_columns VARCHAR2(4000);
l_seq_id NUMBER;
l_num_columns INTEGER;
l_ddl VARCHAR2(4000);
BEGIN
IF (p_table_name is not null)
THEN
l_ddl := 'insert into '||p_table_name||' '||
'select '||v(p_columns_item)||' '||
'from htmldb_collections '||
'where seq_id > 0 and collection_name='''||p_collection_name||'''';
execute immediate l_ddl;
RETURN;
END IF;
BEGIN
select blob_content into l_blob from wwv_flow_files
where name=p_file_name;
EXCEPTION
WHEN NO_DATA_FOUND THEN
raise_application_error(-20000,'File not found, id='||p_file_name);
END;
get_records(l_blob,l_records);
IF (l_records.count < 2)
THEN
raise_application_error(-20000,'File must have at least 2 ROWS, ONE HEADER and ONE OR MORE DATA, id='||p_file_name);
END IF;
-- Initialize collection
htmldb_collection.create_or_truncate_collection(p_collection_name);
-- Get column headings
csv_to_array(l_records(1),l_record);
l_num_columns := l_record.count;
if (l_num_columns > 50) then
raise_application_error(-20000,'Max. of 50 columns allowed, id='||p_file_name);
end if;
-- Get column headings and names
FOR i IN 1..l_record.count
LOOP
l_headings := l_headings||':'||l_record(i);
l_columns := l_columns||',c'||lpad(i,3,'0');
END LOOP;
l_headings := ltrim(l_headings,':');
l_columns := ltrim(l_columns,',');
htmldb_util.set_session_state(p_headings_item,l_headings);
htmldb_util.set_session_state(p_columns_item,l_columns);
-- Save data into specified collection
FOR i IN 2..l_records.count
LOOP
csv_to_array(l_records(i),l_record);
l_seq_id := htmldb_collection.add_member(p_collection_name,'dummy');
FOR i IN 1..l_record.count
LOOP
htmldb_collection.update_member_attribute(
p_collection_name=> p_collection_name,
p_seq => l_seq_id,
p_attr_number => i,
p_attr_value => l_record(i)
END LOOP;
END LOOP;
DELETE FROM wwv_flow_files WHERE name=p_file_name;
END;
BEGIN
NULL;
END;found someone that helped me.. here was the fix:
l_current := dbms_lob.instr( p_blob, utl_raw.cast_to_raw(l_record_separator), l_last, 1 );
-- START of new code, lines above as per existing
IF nvl(l_current,0) = 0 AND LENGTH(TRIM(utl_raw.cast_to_varchar2(dbms_lob.substr(p_blob,32767,l_last)))) > 0 THEN
p_records(p_records.count+1) := utl_raw.cast_to_varchar2(dbms_lob.substr(p_blob,32767,l_last));
END IF;
-- END of new code,, lines below as per existing
EXIT WHEN (nvl(l_current,0) = 0); -
CSV export from SSRS gives a line break if there are two tables
I have a report with two tables. There is no gap between in the reports. The report looks good when I run it, but when I export the report to CSV, there is an extra line between the two tables. Can somebody help me fix this issue.
Thanks in advance.
Hi Bindu,
If I understand correctly, you have two tables in the report. When you export to CSV, it has an extra blank line between these two tables. I have create a simple report in my test environment, I can reproduce the same issue.
Based on your description, you want to splice these two tables with no gap in the report. I order to meet your requirement, we can use subreport to work around the issue. We can insert two aubreports in one table. Then, display these two tables in these
two subreports.
Reference: Subreports
Alternatively, we can display these data in one table to work around the issue. If possible, you can post your sample data, we can to do further analysis. If these columns is from two datasets, please check if there has same fields. If so, we can use
Lookup function to display two datasets data in one tablix.
Regards,
Alisa Tang
If you have any feedback on our support, please click
here.
Alisa Tang
TechNet Community Support -
How to add a blank line in configurat​ion file
Hi,
I would like to add an empty / blank line in my configuration file. (.ini file) as below:
[H1]
key1=1
[H2]
key2=2
I don't have any idea on how to add the empty/blank line.
Could anyone help me on this?In case you do not have such luxury, like me...
This example VI show an alternative way of inserting empty line/ space between sections of a configuration file...
PS1: Note that Additional Empty Element is intentionally added to create/ add empty line/ space between sections...
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010
依恩与LabVIEW
LVVILIB.blogspot.com
Attachments:
IFFCT_CFIO_example add empty line between sections.vi 64 KB -
Data Merge Remove Blank Lines for Images?
I'm trying to use data merge to generate these labels:
I have a spreadsheet with 20 or so products. Each product can have up to 6 of about 18 icons. The problem is, the remove blank lines feature doesn't seem to work for image placeholders. Any ideas how to get around this?
Any suggestions would be greatly appreciated.I think I know what the OP wants to do - that is, where no logo is applicable, then all the logos shift to the left... or right... or remain centered.
I've tackled this before and have an answer... even have a tutorial for it on my blog. Go to http://colecandoo.wordpress.com/2012/02/19/going-beyond-stencil-letters/ and then go to 4: SCRABBLE LETTERS and have a read of that. There is a PDF to download which has attachments inside of the indesign file and assets used to make the tutorial.
The key to getting the images to disappear is fourfold.
First, the image frames have to be inline graphics one next to the other, aligned with whichever text feature is appropriate.
Second, the picture placement options in the merge have to be "fit frame to content"
Third, there can't be "blank" records in the csv/txt file when there is no picture. instead, create a "blank.pdf", or download the one i've graciously decided to host on my site: http://colecandoo.files.wordpress.com/2012/08/blank.pdf
Fourth, the PDFs going into the fields must be using the artbox to get it's measurements. I find that this can be accomplished by placing a PDF image with "show placement options" turned on, then selecting the artbox for the measurement, then clicking ok. until it is told not to, any PDF placed in any file from that point will use that artbox as a reference until it is told not to in the "show placement options".
Again, my blog has a tutorial and sample to play with. Good luck. -
Suppress embedded field blank lines in Crystal Reports XI is not working
Hi,
We have a text box in a Crytal Reports XI report which has address information in it as follows:
These are individual fields from the database. We check the "suppress embedded field blank lines" option for the text box and preview it in the designer and the suppression works as expected in that when the unit field is blank the whole address line isn't suppressed. However when we run this report using the Report Viewer control in a VB.NET 2005 application the whole address line is suppressed when the unit field is blank.
This appears to be a bug in the suppression logic when the Report Viewer is used to view a report. While yes we can embed a formula into the address line this adds extra maintenance and confusion which is not necessary as it works as expected in the report designer.
I have seen others which are having a similiar issue and the only suggestions are to create your own suppression using formulas, etc. which is only a bandaid and is not the best solution as the suppression works as stated in the designer but not in the viewer embedded in an application. Please indicate if this is a known bug and if this issue has been addressed and fixed in a new merge module.
We are running Crystal XI 11.5.0.313 for the report designer and have deployed the needed dlls to run the reports with our application using the CrystalReports11_5_NET_2005.msm merge module.
Thanks in advance for any assistance in resolving this issue!Hello,
Moved to .NET SDK forum.
Upgrade to XI R2 SP 6, you are using the original release:
https://smpdl.sap-ag.de/~sapidp/012002523100011802732008E/crxir2_sp4_full_build.exe
https://smpdl.sap-ag.de/~sapidp/012002523100015859952009E/crxir2win_sp6.exe
And the distribution files are for Visual Studio version of Cr, not R2 build.
https://smpdl.sap-ag.de/~sapidp/012002523100013451312010E/crxir2_fp64_server_ins.zip
Or
https://smpdl.sap-ag.de/~sapidp/012002523100013451332010E/crxir2_fp64_net_mm.zip
Don
Maybe you are looking for
-
How to create the database name
May I know,How to create database name?It is create net service name is a create database name?My database instance is PSM2006 and i connect connect user1/user1@psm2006 . Can i create another instance such as bomba ? I want to save my oracle table in
-
How do I get rid of Ask and go beck to Google
For some reason my Google search has been replaced by "Ask" and I do not like it. How do I go beck to google?
-
Removing Not Assigned from the query
Hi, I have one query, in which the data is displayed as shown below Country City Amount India Mumbai 10000 Delhi 10000 US Los Angeles 20000 New York 30000
-
Cannot Publish to my main adobe site
I have a muse subscription for one site. Something has blocked access to this site. Because this is my live and paid for site, I cannot publish a second site and make it go "live". If I delete my paid for site, will I be able to make the second sit
-
Why can't I upgrade to mountain lion from 10.6.8
I am using a Macbook 4,1 (not sure how to identify whether it's early or late 2008). I want to upgrade to Mountain Lion, so I spent $50 getting additional memory in order to be able to upgrade. I installed the extra memory, but the app store isn't le