BSP adds CR/LF marker at the end of the page even with compression options
Hello!
I'm creating normal BSP Page with Flow Logic and setting the contents myself:
<%@page language="abap" %><%
response->set_cdata( '-=-' ).
%>
The problem is that WebAS somehow always adds a CR/LF (new line) marker at the end of the page (even if I set compression option to "Remove leading and trailing spaces"). I also tried to set different mime-types.
On the other side there is a BSP Application it00 (described here http://help.sap.com/saphelp_nw04/helpdata/en/eb/8c683c8de8a969e10000000a114084/content.htm ) that shows the uploaded file right.
So I was trying to include that 'solution' setting OnInputProcessing event to this
* set response data to be the file content
runtime->server->response->set_cdata( '!=!' ).
* set the mime-type and file size in the response
runtime->server->response->set_header_field(
name = 'Content-Type'
value = 'text/plain' ).
runtime->server->response->set_header_field(
name = 'Content-Length'
value = '3' ).
navigation->response_complete( ).
But nothing happens at all.
Please, help me getting rid of these two annoying bytes ('CR/LF') at the end of page.
Thank you, Cornelia!
It works now.
The following code is "must have"
navigation->response_complete( ).
Similar Messages
-
How to add a sub report at the end of the main report whilst grouped
Hi!
I have a main report that is grouped by the Customers name and then details of transactions they did with the company.
I need to add a letter at the end of each group for each customer (With their name displayed in the letter). I tried adding a sub report in the report footer, but it only appears once at the end of the report, rather than at the end of each group for each customer.
How can I achieve the desired result?
Regards
VikVik,
You are on the right track with the sub-report.
1. Create your letter in a separate report.
2. Add the Letter Report to your original report as a sub report in the group footer.
3. Set the report links on the "Group By" field.
This will give you a letter record for each report record with the same grouping as the main report.
Hope this helps,
Jason -
osx 10.7.4 safari 6.0 When I add a new bookmark to the "bookmarks menu" it is added somewhere in the middle instead of at the end of the list. This just started a few days ago after an update. Has anyone else noticed this?.
Just for those who are interested, this is what cleared the "bookmark menu" trbl I had.
Open System Preferences > iCloud
Deselect the box next to Bookmarks, then reselect it.
Quit and relaunch Safari. Try a bookmark again. -
How to add footer at the end of every page
Hi,
I need to add some text at the bottom of every page in my application. I have made a footer region where i have put that text component. I have simply included that footer region as the last element of every jspx page. This shows the footer at the end of the content and not at the end of page(which is required).
Using css like position:absolute;bottom:0px; shows the text at the bottom of bowser window, not page(so, problem for pages having scoll).
It is not feasible to make any changes in each jspx page. So, what is the way out to achieve this by keeping the change limited to pagefooter region page and/or ss.css
Note: I am using Jdev10.1.3With JDev 11g, you can create pageTemplate however, in 10g though support for page template is not available, you can achieve basic functionalities like this through web template. See sample here:
http://www.developer.com/db/article.php/3513706/Easy-Web-Templates-with-Oracle-JDeveloper-10g.htm
And if incase you use JHeadstart tool for development, JHeadstart provides templating facilities too.
If you want to achieve using CSS, check this example:
http://www.electrictoolbox.com/html-css-footer/
regards,
~K -
Add JTable Row Headers At The End Of The Rows(At Right)?
hi all
i got this example for adding JTable Row Headers,but it adds the headers at the left(beginning of the row)
and i want to add the headers at the end of the row(at right),any ideas how to do that?
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.AbstractListModel;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.ListCellRenderer;
import javax.swing.ListModel;
import javax.swing.UIManager;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.JTableHeader;
* @version 1.0 11/09/98
class RowHeaderRenderer extends JLabel implements ListCellRenderer {
RowHeaderRenderer(JTable table) {
JTableHeader header = table.getTableHeader();
setOpaque(true);
setBorder(UIManager.getBorder("TableHeader.cellBorder"));
setHorizontalAlignment(CENTER);
setForeground(header.getForeground());
setBackground(header.getBackground());
setFont(header.getFont());
public Component getListCellRendererComponent(JList list, Object value,
int index, boolean isSelected, boolean cellHasFocus) {
setText((value == null) ? "" : value.toString());
return this;
class RowHeaderExample extends JFrame {
public RowHeaderExample() {
super("Row Header Example");
setSize(370, 150);
ListModel lm = new AbstractListModel() {
String headers[] = { "Row1", "Row2", "Row3", "Row4"};
public int getSize() {
return headers.length;
public Object getElementAt(int index) {
return headers[index];
DefaultTableModel dm = new DefaultTableModel(lm.getSize(), 4);
JTable table = new JTable(dm);
table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
table.setRowHeight(18);
JList rowHeader = new JList(lm);
rowHeader.setFixedCellWidth(50);
rowHeader.setFixedCellHeight(18);
rowHeader.setCellRenderer(new RowHeaderRenderer(table));
JScrollPane scroll = new JScrollPane(table);
scroll.setRowHeaderView(rowHeader);
getContentPane().add(scroll, BorderLayout.CENTER);
public static void main(String[] args) {
RowHeaderExample frame = new RowHeaderExample();
frame.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
frame.setVisible(true);
}fixed by:
list.setBackground(table.getTableHeader().getBackground());here's the full code:
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.ComponentOrientation;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.DefaultListModel;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.ListCellRenderer;
import javax.swing.UIManager;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.JTableHeader;
* @version 1.0 11/09/98
class RowHeaderRenderer extends JLabel implements ListCellRenderer {
JTable table;
RowHeaderRenderer(JTable table) {
this.table = table;
JTableHeader header = table.getTableHeader();
setOpaque(true);
setBorder(UIManager.getBorder("TableHeader.cellBorder"));
setHorizontalAlignment(CENTER);
setForeground(header.getForeground());
setBackground(header.getBackground());
setFont(header.getFont());
public Component getListCellRendererComponent(JList list, Object value,
int index, boolean isSelected, boolean cellHasFocus) {
list.setBackground(table.getTableHeader().getBackground());
setText((value == null) ? "" : value.toString());
return this;
class RowHeaderExample extends JFrame {
public RowHeaderExample() {
super("Row Header Example");
setSize(370, 150);
setLocationRelativeTo(null);
DefaultListModel lstModel = new DefaultListModel();
lstModel.addElement("Row 1");
lstModel.addElement("Row 2");
lstModel.addElement("Row 3");
lstModel.addElement("Row 4");
DefaultTableModel dm = new DefaultTableModel(lstModel.getSize(), 4);
JTable table = new JTable(dm);
table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
table.setRowHeight(18);
JList rowHeader = new JList(lstModel);
rowHeader.setFixedCellWidth(50);
rowHeader.setFixedCellHeight(18);
rowHeader.setCellRenderer(new RowHeaderRenderer(table));
JScrollPane scroll = new JScrollPane(table);
scroll.setRowHeaderView(rowHeader);
table.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
scroll.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
getContentPane().add(scroll, BorderLayout.CENTER);
public static void main(String[] args) {
RowHeaderExample frame = new RowHeaderExample();
frame.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
frame.setVisible(true);
} -
Automatically add a current date at the end of the comments
Hi,
I have a form on a table with 5 fields... on one the field I am asking my users to enter comments...
I am looking for a functionality to automatically add a current date at the end of the comments, only when they are updated or newly filled in...
Please advice how can I do it... I am anticipating some sort of a trigger on column (when the data is modified)...
Thanksautomatically add a current date at the end of the comments, only when they are updated or newly filled inDo you want to add the date to the page item itself and hence show it to the end user as and when its changed, thn
Assuming comments item is named '*P1_COMMENTS* , add the following to the "execute on load"
$('P1_COMMENTS').change( function(){
var d = new Date();
$s('P1_COMMENTS', $v('P1_COMMENTS')+ d.toUTCString() );
});If its to be done only when updating ie in the PLSQL block
UPDATE <table name>
SET <comments _column> = ( SELECT DECODE( NVL(<comments _column>,'')
,NVL(:P1_COMMENTS,'')
,<comments _column>
,:P1_COMMENTS||TOCHAR(SYSDATE,'DD-MON-YYY')
FROM DUAL
WHERE <condition> -
Hi friends,
I need to add one horizontal line for the detail section at the end of the page.
I tried to put that line in page footer and i tried with Box also. Both are not properly working. Some space problem is coming.
Is there any feature to find end of the Page.
I want report format like this.
set id | set name | date Name
1 x dddd vijay
dddd sarathi
dddd reddy
(End of the page)
Thanks in advance...
vijay.Do you know how many detail records are showing up per page?
If you do - you could create a Details B section that is suppressed except for on Record N (where N is a counter, and N is the last Detail record that will show up on a page).
The Page footer is indeed built so that it will be rendered at the bottom of your physical page of paper. -
Does anyone know how to add a preface page at the beginning of the book in ibooks author once the book is written? No matter how I try to add a Preface page, it goes to the end of the book.
Thanks. I've tried this and apparently the template I'm using is one of those where it doesn't work. I've tried dragging it as well as cutting a pasting but it always travels back to the end of the book. Maybe I can try changing the template temporarily, move the preface page, and then convert back to the original template. I'll experiment a little.
-
Need to add a new row at the end of the table
Experts,
working jdev 11.1.1.3.0
i am adding row programetically, my requirement need to add the row at after last row.
i tried different ways.
Row newLastRow = getPWBBidLaneVO().last();
int lastRowIndex = getPWBBidLaneVO().getRangeIndexOf(newLastRow);
getPWBBidLaneVO().insertRowAtRangeIndex(lastRowIndex - 1,
laneRow);
this is giving --- java.lang.ArrayIndexOutOfBoundsException: 0
and
http://kohlivikram.blogspot.com/2008/10/add-new-row-in-adf-table-on-button.html --- its giving index out of bound because vo.getRangeSize() is 25. We set this value at vo for performance improment suggestions.
is there a way to add a new row at the end of the table?Add this to the view row impl class
public void insertRow(Row row) {
//go to the end of Rowset if it has rows
Row lastRow = this.last();
if (lastRow !=null){
//insert new row at the end and make it current
int indx = this.getRangeIndexOf(lastRow)+1;
this.insertRowAtRangeIndex(indx,row);
this.setCurrentRow(row);
}else { // empty Rowset
super.insertRow(row);
} -
Hi there,
How do I remove the (-signed) which Adobe adds to the end of the document name after having signed it?
It is not convenient to remove it every time I sign a document. So, is there a way to turn this off?
Thank youI think you cannot, because for many people it is so important to keep the unsigned document, and most do not realise this until it is too late.
-
Cant add to the end of the array list
Hey everyone
for(String word : dictionary){
if(word.equalsIgnoreCase(newWord) == false && word.compareToIgnoreCase(newWord) >= 0){
dictionary.add(dictionary.indexOf(word), newWord);
save();
break;
}i am struggling to see the bug in my code, why will it not allow me to enter anything to the end of the array list, but anywehere other is fine?
thanks very muchTry posting a SSCCEE. Your code could be better written:
1. You are using the enhanced for loop, then you have to turn around and use indexOf to see where you are in the list. Think about that.
2. Are you sure you have to use both equalsIgnoreCase and compareIgnoreCase to get the result you need? -
utl_file.utl_raw adds a line feed at the end of the line. I have to send some binary files to my vendor and they do not want a line feed at the end of the line.
When I execute the sample program below, it creates a file with a line feed(chr(10)) at the end of the line. When I do dump in hexa, it shows a character x0A
How to avoid the line feed at end of line?
We are using Oracle 9i on unix platform.
declare
l_output utl_file.file_type;
v_raw raw(32767);
v_trlr_rec_code VARCHAR2(2);
v_trlr_evnt_title VARCHAR2(6);
begin
l_output := utl_file.fopen( 'RM_MHE_IN_DIR', 'abc.dat', 'w', 14 );
v_trlr_rec_code := '99';
v_trlr_evnt_title := 'STARTD';
v_raw := HEXTORAW(v_trlr_rec_code) || utl_raw.cast_to_raw(v_trlr_evnt_title);
utl_file.put_raw( l_output, v_raw );
utl_file.fflush( l_output );
utl_file.fclose( l_output );
dbms_output.put_line( utl_raw.cast_to_varchar2( v_raw ) );
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line( sqlerrm );
end;
/oops, sorry i overlooked the fact that the db is 9i; thanks for pointing it out Solomon.
Not sure about this, but a workaround could be to remove the "\n" characters at the end of each line using one of the many Unix utilities after the file has been created.
isotope -
How to add an extra row at the end of the Grid?
Hi gurus,
I am getting result from the select query which has 4 columns.
I got the requirement to display the sum of those columns as the last row.
How can i add the another row at the end of the iGrid ?
Data would look like
Sno Col1 Col2 Col3 Col4
1 4 6 1 6
2 5 8 0 8
3 6 1 2 5
Sum 15 14 3 19
Do i have to add transformation to the sql query? or
Can i add row to the display tempalate by accessing the Gridobject?
Please help.
Thanks
Vansi
Edited by: vamsi P on Feb 12, 2008 8:49 PM
Edited by: vamsi P on Feb 12, 2008 8:49 PMHi Vamsi,
There are a few options ...
1) The one suggested by Prasanna
2) Loop through all rows via JavaScript and use the GridObject methods to set cell values and then perform an applet.refreshGrid( false )
3) Apply an Inline transform
4) Use a stored procedure to return the results and the totals as one recordset.
The stored procedure would be the fastest for runtime.
The Iniline XSL transform would be the second fastest. If you specify the XSL in a generic way, you may even be able to reuse it in other scenarios. If you hardcode the fields in the XSL, it would be a matter of simple code adjustment when you encounter a similar scenario.
Hope this helps.
Cheers,
Jai. -
i started downloading ios 6 with iTunes with latest version of 10.7 for my iphone 4s running ios 5.1.1. And at the end of the download , some kind of error comes with a pop up box and a RED cross mark in it saying some error occurred and asking to disconnect and reconnect again and to check the internet is active? and then nothing happens and when i disconnect and reconnect again, the same error comes and the same thing happens. what should i do now to install ios 6?
Are you running any Firewalls or Anti-Virus software? If so, disable all of that stuff & try again.
-
How can I mark the end bar of the song so it stops after the last bar?
Drag the end marker triangle at the top of the time line, or activate and adjust the Cycle region:
to turn the cycle region on, press the button with the loop of two arrows.
Then adjust the ends of the yellow region to the part of the song you want to include.
Regards
Léonie
Maybe you are looking for
-
My iphone 5 is not charging properly. Recently the USB cable was emitting sparks on connecting it to my laptop.This has resulted in physical damage of the wire. Is it still eligible for replacement since it is under 1 year warranty?
-
Input help required for parameter on the selection screen
hi all, i have created two parameters on the selection screen. 1. deptno 2.empname so my requirement is if i input any deptno then i should get all the empname corresponding to that deptno in the parameter empname ie for deptno 10 there should be f4
-
Using a Brick Wall .jpg as a Texture - in PSE and AI?
Hello Photoshop Elements users and experts: thanks in advance for reading this post and for your generous help. I would like to use the brick wall in the following image: To be applied to the surrounding edge of an illustration in Adobe Illustrator
-
I have just started programming java and here is a game i have made so far: http://www.freewebs.com/blobber/KillersJar.html -Keys- Player1 Up: Up arrow Down: Down arrow Left: Left arrow Right: Right arrow Player2 Up: W Down: S Left: A Right: D Now my
-
Will the Black 2.4 GHz Intel Core 2 Duo MacBook work with the Thunderbolt Display?
I'm looking into buying a new Thunderbolt Display, but do I need to buy a new MacBook Pro or will the Thunderbolt Display work with my Black 2.4 GHz Intel Core 2 Duo MacBook?