How to brake to new line in Java function in XI
Hi,
How to brake next line in java function in XI(i am trying to use \n but it is not going to next line its displaying same in output). can anybody help me on this
Thanks,
Sudheer.
Sudheer ,
Please explain about your requirement with example data with source structure and target structures with the java requirement .
Regards,#
Reddy
Similar Messages
-
How to insert a new line char(s) into a java String? a single '\n' seems not the best solution.
whadda wrong with /n...???well it's \n ;-) but other then that
there is nothing wrong wiht it, if it is used properly.
\n represents a specific ascii code (13 I think but I'm not sure)
if you want to put that ascii code into your string it is the correct thing to use.
but what is considert the end of a line depends on the OS some use
\n some use \r\n (or was it the other way round?). So if you want to put a end of line in a String (or file or whatever use the system property as described in a previouse post
regards
Spieler -
i have three questions: can someone tell me exactly what those 2 bolded line do?
what is code for a new line in java? // in php is \n
and how good is java with mysl databases? i meen speed
try{
kin = new BufferedReader(new InputStreamReader(System.in));
s = new Socket("127.0.0.1",9191);
dos = new DataOutputStream(s.getOutputStream());
dis = new DataInputStream(s.getInputStream());
System.out.print(dis.readUTF());//connected
System.out.print(dis.readUTF());//user
dos.writeUTF(kin.readLine());dos.flush();
System.out.print(dis.readUTF());//pass
dos.writeUTF(kin.readLine());dos.flush();
String z="";
while (true){
System.out.print(dis.readUTF());//xml msg
i have this code and ii have a server at witch this function connects and send some data, with the bolded lines
the server is in java also,
the problem is that i'm trying to make a connexion with php, and send data to that soket, but the server waits for a comand that the string send has ended.
kind of an "ENTER', i don't know what i must send to that java server that he understand as to go forword -
Want to know how to check for new line character in text file
Hi All,
I`m trying to read data from text file. However I`m not sure whether the data is in 1st line or nth line. Now I`m trying to read the text from the readline. But if text is "" and not NULL then my code fails. So I want to know how to check for new line character and go to next line to find the data. Please help.
Thanks
static int readandwriteFile(Logger logger,String filepath){
BufferedWriter out = null;
BufferedReader in = null;
File fr = null;
int get_count = 0;
try {
if(new File(filepath).exists())
fr= new File(filepath);
System.out.println("FileName: "+fr);
if(fr != null){
in = new BufferedReader(new FileReader(fr));
String text = in.readLine();
if(text != null){
get_count = Integer.parseInt(text);
in.close();
else{
get_count = 0;
else{
out = new BufferedWriter(new FileWriter(filepath));
out.write("0");
out.close();
} //Reading of the row count file ended.
catch(Exception e) {
e.printStackTrace();
finally {
try{ if (in != null) {
in.close();
if (out != null) {
out.close();
catch(Exception e) {
e.printStackTrace();
return get_count;
}You are calling the readline() only once which means you are reading only the first line from the file...
Use a loop (Do-While preferably)
do{
//your code
}while(text == "") -
How to add a new line in SMS(Line Break).
Hi All,
I need to send SMS from PL\SQL Procedure
The problem i have been facing is that the string being passed in as sms content is not parsing a newline character.
It shows all content in one line.
I need to break them in several lines.
Give me a direction how to add a new line in SMS.
Regards,
Raj.Hi,
Sure, Here it is
CREATE OR REPLACE PROCEDURE APPS.AUTO_SMS_RTV_REPORT
IS
sender VARCHAR2(1000);
recipient VARCHAR2(1000);
message VARCHAR2(4000);
sub VARCHAR2(1000) := 'HELLO';
dt1 varchar2(1000) := to_char(sysdate,'DD-MON-YY');
mailhost VARCHAR2(30) := '10.7.7.xxx';
mail_conn UTL_SMTP.CONNECTION;
v_crlf VARCHAR2(2) := CHR(13)||CHR(10);
CURSOR cur_Rejection_Records IS
SELECT DISTINCT
rt.VENDOR_SITE_ID ,
pvs.email_address VENDOR_MAIL_ID ,
pvs.PHONE vendor_contact_no ,
hre.EMAIL_ADDRESS Employee_mail_id ,
hre.FULL_NAME
FROM apps.rcv_transactions rt,
apps.po_vendors pv,
apps.po_vendor_sites_all pvs,
apps.mtl_transaction_reasons mtr,
apps.fnd_user fu,
apps.hr_employees hre
WHERE transaction_type = 'RETURN TO VENDOR'
--AND TRUNC(rt.transaction_date) = TRUNC(SYSDATE)
AND rt.vendor_id = pv.vendor_id
AND rt.vendor_site_id = pvs.vendor_site_id
AND rt.REASON_ID = mtr.REASON_ID(+)
AND fu.user_id = rt.last_updated_by
AND hre.EMPLOYEE_ID = fu.EMPLOYEE_ID
AND TRANSACTION_ID IN (
11902189,
11902253,
11902148)
BEGIN
FOR rec_Rejection_Records IN cur_Rejection_Records
LOOP
Begin
sender := '<[email protected]>';
recipient := rec_Rejection_Records.vendor_contact_no || '@aaaa.com';
mail_conn := utl_smtp.open_connection(mailhost, 8025);
utl_smtp.helo(mail_conn, mailhost);
utl_smtp.mail(mail_conn, sender);
utl_smtp.rcpt(mail_conn, recipient);
utl_smtp.DATA( mail_conn,
'Date: ' || TO_CHAR(SYSDATE, 'Dy, DD Mon YYYY hh24:mi:ss') || utl_tcp.crlf ||
'From: ' || sender || utl_tcp.crlf ||
'Subject: '|| sub || utl_tcp.crlf ||
'To: ' || recipient || utl_tcp.crlf ||
utl_tcp.crlf ||
'Dear Supplier,'||CHR(10)|| utl_tcp.crlf ||'\\\0x0A'|| -- HERE I NEED LINE BREAK
'Please.'|| utl_tcp.crlf
DBMS_OUTPUT.PUT_LINE('Yep !!! SMS Sent Sucessfully :) ');
utl_smtp.quit(mail_conn);
EXCEPTION
WHEN UTL_SMTP.PERMANENT_ERROR THEN
dbms_output.put_line('Error - ' || SQLCODE || ' - ' || SQLERRM);
WHEN OTHERS THEN
dbms_output.put_line('Error - ' || SQLCODE || ' - ' || SQLERRM);
END;
END LOOP;
END AUTO_SMS_RTV_REPORT;
/ -
How to create a new line in label in Xcode
How to create a new line in label. for example I have two buttons & one label. when i press first button, l want to change the label text to "Hello World". then when I press the second button, on the same label I need to display"Good Bye" on the next line in xcode 5?
I want to display the lablel like below:
Hello World
Good ByeI am using Xcode to develop an app for iOS.
I tried using multi-line label & belwo is my code.
- (IBAction)change:(UIButton *)sender {
self.Screen.text = @"\nHello World";
- (IBAction)newChange:(UIButton *)sender {
self.Screen.text = @"\nGood bye";
everytime when i pressed the button, it replacing the whold lable text instead of adding the second line. -
How to insert a new line in MC1H(maintaining formula)
How to insert a new line in MC1H(maintaining formula)
Can anybody help me with the stepsHi,
1.run transaction SCC4 -> press Ctrl+F4 or the button for change ->double click one the row for your client -> on the field Cross Client Object Changes select Changes to the Repository and cross-client Customizing allowed -> SAVE
2. run MC1H and now you will have access to insert new line in the table
Regards Vassko!
Edited by: Vasil Pavlov on Sep 16, 2008 9:51 AM -
How to Insert a new line in a clob
hi,
i want to create reports as multi-line clob data using PL/SQL procedures.
is there any standard way of inserting a new line when iam generating
this clob data based on the data i fetch from a different table.
i short my question is "How to insert a new line in a clob?"
i tried using the character '\n', but that was of no use.
thanks in advance
rameshYou could always do a:
newLine := '
Since PL/SQL allows a tring to span multiple lines. -
How do i read new line char in jtextarea.getText()?
guys, how do i read new line character in jTextArea.getText()? i'll appreciate ur help tnx..:))
Use a StringRead, then you can treat the text file a file.
-
Concatanate new line using concat function in BPEL process
Hi,
Anyone please tell me how can i concatenate new line at the end of a string in concat function?If using xsl you can use this one:
<xsl:value-of select='concat("First Name :: ",/ns1:ProcessRequest/ns1:firstName)'/>
<xsl:text> &hashxD; &hashxA;</xsl:text>
<xsl:value-of select='concat("Last Name :: ",/ns1:ProcessRequest/ns1:lastName)'/>
give # in place of hash -
How can i find start line of any functions or procedures stored in package body?
hi
how can i find start line of any functions or procedures stored in package body?
is there any way to write a query from for example user_source?
thankshow can i find start line of any functions or procedures stored in package body?
Why? What will you do differently if a procedure starts on line 173 instead of line 254?
Tell us what PROBLEM you are trying to solve so we can help you find the best way to solve it.
If you use PL_SCOPE that info is available in the *_IDENTIFIERS views. See 'Using PL/Scope in the Advanced Dev Doc
http://docs.oracle.com/cd/B28359_01/appdev.111/b28424/adfns_plscope.htm
Try this simple sample code. The query is modified from that doc sample:
-- tell the compiler to collect the info
ALTER SESSION SET PLSCOPE_SETTINGS='IDENTIFIERS:ALL';
-- recompile the package
CREATE OR REPLACE package SCOTT.pack1 as
PROCEDURE proc1;
PROCEDURE proc2;
END;
CREATE OR REPLACE package BODY SCOTT.pack1 as
PROCEDURE proc1 IS
BEGIN
NULL;
END;
PROCEDURE proc2 IS
BEGIN
proc1;
END;
PROCEDURE proc3 IS
BEGIN
proc1;
proc2;
END;
END;
-- query the info for the package spec
WITH v AS (
SELECT Line,
Col,
INITCAP(NAME) Name,
LOWER(TYPE) Type,
LOWER(USAGE) Usage,
USAGE_ID,
USAGE_CONTEXT_ID
FROM USER_IDENTIFIERS
WHERE Object_Name = 'PACK1'
AND Object_Type = 'PACKAGE'
SELECT LINE, RPAD(LPAD(' ', 2*(Level-1)) ||
Name, 20, '.')||' '||
RPAD(Type, 20)||
RPAD(Usage, 20)
IDENTIFIER_USAGE_CONTEXTS
FROM v
START WITH USAGE_CONTEXT_ID = 0
CONNECT BY PRIOR USAGE_ID = USAGE_CONTEXT_ID
ORDER SIBLINGS BY Line, Col
LINE,IDENTIFIER_USAGE_CONTEXTS
1,Pack1............... package declaration
2, Proc1............. procedure declaration
3, Proc2............. procedure declaration
-- query the info for the package body - change 'PACKAGE' to 'PACKAGE BODY' in the query above
LINE,IDENTIFIER_USAGE_CONTEXTS
1,Pack1............... package definition
2, Proc1............. procedure definition
6, Proc2............. procedure definition
8, Proc1........... procedure call
10, Proc3............. procedure declaration
10, Proc3........... procedure definition
12, Proc1......... procedure call
13, Proc2......... procedure call -
How to add a new line item to a Purchase Requisition number
Hello All,
Can anyone please provide me with some FM or BAPI to add a new line item to an existing Purchase Requisition number.
Can it be done using BAPI_REQUISITION_CHANGE; if yes, then how do I pass the parameters into the BAPI tables..?
Useful pointers would be appreciated...!!
Thanks & Regards,
Tarun Gambhir@Gautham,
Thanks for the quick reply.
I want to update the table EBAN, so should I use the parameter table XEBAN to put in the new line item and then execute..
Also to fill up this table I need to pass certain value, so can I use BAPI_REQUISITON_GETDETAIL and pass the same details as found from the same BAPI and create a new line item...
Regards,
Tarun Gambhir -
How to add a new line at the end of eTEXT file
Hi,
I have modified the RTF template for the R12.1.3 Positive Pay File report (IBYPOS_PAY_en.rtf). Everything is good, except that the bank requires a "T" (Capital T) character in a new line at the end of the text file. Has any of you came across this before? How do I modify the template to achieve this?
Thank you,
Sinan TopuzI believe this is related to BI Publisher. Any comments would be greatly appreciated.
Thanks,
Sinan -
How to enter a new line or paragraph using voice recognition
Hello,
Does anyone know how to make the voice recognition enter new lines or paragraphs?
When I first got my phone I could simply say "enter", "new line" or "new paragraph" rather quickly and it would advance to the next line, or in the case of paragraph it would be two new lines giving a space between the paragraph.
However, in the last month or so this has stopped working. Now, when I say "enter", "new line" or "new paragraph" it will either spell out the words, or it will add a space.
It's really frustrating, making the feature almost useless because I have to keep popping out to the keyboard to hit the return key.
I'm using the voice recognition software to enter text for the applications "S.Memo" or "Google Drive Documents", on a Samsung Galaxy S3 phone with the 4.1.2 Android Version.
-=JohnYou cannot unintall "S.Memo", as it appears to be part of Samsung's base OS. I can do a force stop and disable on it as well as clear the data, but I cannot uninstall it. That is simply not an option for the app. I'm not going to clear the data because that deletes all the files I've made for it.
I did a force stop on "S.Memo" and then started the app, and the problem persists.
I power cycled the phone and the problem persists.
I did uninstall and reinstall "Google Drive Document" but that did not resolve the problem either.
Also it seems silly to remove and reinstall these apps, when it's the voice recognition software that is having the problem. This problem happens if you simply use voice input. It even happens when editing the phone's contact's information. -
How to add a new line in pe51?
Hi Team,
I want to add anew field in pe51 form editor.
for that i want to add anew line in pe51 form
i went to pe51 tcode and selected background raidobutton.
but from ther i dont know how to add a line at the required position.
So please reply me on this as soon as possible.
Thanks & Regards,
Kranti.Hi Kranti,
The reason, why you are not able to insert a new line in background could be that the maximum line size defined in attributes is already utilized. Thats why F7 doesn't work.
1- From main screen of PE51, select your pay slip, click on attributes and than click on change button.
2- Increase value in lines field and save changes.
3- Go to background and try to insert new line with F7 keyboard key.
I hope this is what you are looking for.
Regards,
Waqas Rashid
Maybe you are looking for
-
HI All, I'm looking at blocking in MM Invoice(4.7) and see a payment block set to Invoice Verification(R) on screen, but when I look in the background at the table RBKP, the field ZLSPR(blocking indicator) is not set in this instance. How is the
-
FIRST CHARGING TIME FOR NOKIA E61i BATTERY
Hi everybody, please i like to know how long i can charge my Nokia E61i before use. I mean the first charge. Thanks.
-
Why cant I see my CSS styles in the new Admin Editor?
Why cant I see my CSS styles in the new Admin Editor?
-
Can't get my x-y plot to work correctly
I have followed the x-y example in the example finder and think i've done everything correctly but all i get when i run my RT vi is a vertical line jumping up and down as the x and y values change. I would like to have a decent x-y plot like the exam
-
Notes in Mailboxes after Snow Leopard upgrade
I just upgrade to Snow Leopard. All the Notes I've created on my iPod Touch are now showing up in my Inbox in Mail as well as where its always been, Reminders. I don't want them in my Inbox but when I delete from there it also deletes it from the Rem