Delete new line from model in NWDS 7.1 for laptops
Hello,
I have a problem regarding deletion of newly created lines.
We have an Web Dynpro application developed in NWDS 7.1. We allow the users to create Notifications with our application. We want to give the users an option to delete notifications that they created in case they weren't sent to the backend yet.
For that purpose I used model.removeFrom...() method. I checked the MaxDB notifications table and saw that the notification was indeed deleted from the table. However it is still sent to the backend - twice - once for creation and the other for deletion.
Can I make it so in case it's a completely new line, it won't be sent to the backend at all (for create or delete)?
(We don't let users to delete notifications that exist in the backend)
Thanks in advance,
Tal.
Hello,
Thanks for your reply.
I have to use model.removeFrom...() method because if I only delete it from the context, it is not deleted from the model.
After creating a new notification and adding it to the model I use model.commit();. (I have to commit because at that point the user might exit the application and I want the changes to be saved).
After deleting the new notification I also use model.commit();.
The result of these actions is that during sync, instead of not creating the notification in the backend at all, it creates and deletes it.
Udi.
Similar Messages
-
How can we delete a line from the table control .
hi all
how can we delete a line from the table control .
situation is.
created table control in se51 which will display the data of a table.
how could i select a line from the table control ?
how could i delete the selected lines form the table.
thanks in advanceChange the Table Control attributes such that user can only select a single record(row).
<u>Tip to delete a selected record</u>
1) write a module 'Mark' in the PAI as below
PROCESS AFTER INPUT.
MODULE cancel AT EXIT-COMMAND.
LOOP WITH CONTROL table_view.
MODULE read_table_control.
FIELD flag MODULE mark ON INPUT.
ENDLOOP.
MODULE user_command_0100.
2) Module Mark is below.
MODULE mark INPUT.
CHECK flag = 'X'.
x = table_view-top_line + sy-stepl - 1.
Delete itab INDEX x.
ENDMODULE. " mark INPUT
Table_view is the TableControl Name.
'flag' is of type char(1) available in the Internal table which was assigned to the select option in the table control.
<u>award if uesful</u>
Regards,
Sudheer -
How to remove new line from string
I have a string say following
String line = "one\ntwo\nthree";Now i am trying to remove new line from string. For this i did following
String txt = line.replaceAll("\\n","");But i see still new line is occuring. Is it correct way. Please advice me.Ok. I was just using \n instead of \r\n. And i am in windows. I will give a try with \r\n
Ok i tried using following , but it doesnt work.
line = line.replaceAll("\\r\n","");Am i missing anything here. Please guide me.
Edited by: ArpanaK on Oct 8, 2007 4:44 PM -
Problem: I don't have enough storage to download new movies. If I delete purchased movies from my ipad to make room for new content, will they be lost or stored somewhere?
It depends upon what country that you are in (it's not possible to re-download films in all countries), the film studio (some don't allow re-downloading), and whether they remain in the store (studios occasionally remove them from the store) - what you can currently re-download will show in the Purchased tab in the iTunes store app on your iPad.
But you are better off first copying them to your computer's iTunes via File > Devices > Transfer Purchases so that you can take you own backup copy of them before deleting them, rather than relying on being able to redownload them in the future (and the same applies to other downloaded content) -
Is it possible to search for a string in a text file then
delete the line where the string is found.
For ex. if I have a list of names in a text file, I would
like to be able to search for a name, based on user's input, then
if the name is found, delete the line where the name was listed at.
ThanksIs each name on a separate line? If so, each line is
terminated with a <BR>, </P>, etc. (unless it is in its
own table cell).
Then one way to handle it would be to convert the line
terminator to a pipe ( | ) character, giving you a pipe delimited
list. The ListFind( ) function could be used to find the list
element that has the name in it and the ListDeleteAt( ) function
deletes the name.
Sample code below. There are other ways to handle it if the
lines are in their own individual table cell. -
Delete some lines from file...
Hi,
I'm using this code
File file = new File(sFile);
if (!file.exists())
file.createNewFile();
fout = new PrintWriter(new OutputStreamWriter(new FileOutputStream(sFile , true)) , true);
PrintWriter fout;
...When file has more then (let's write) 1000 lines, I want to delete last 100 from file.
Can someone help me to do that? Can you posto me a part of code which will done that?
Thanks.If you want to use "standard" (serial) IO, which reads from the beginning of the file, create a line counter, read the file line-by-line, and when the file size limil is reached, close the file - remaining lines will be truncated from the file.
If the file lines are all equal in length, then you can use the RandomAccessFile methods to directly seek to the desired line and delete lines after that point using the class methods - see the seek and setLength methods. -
JTextArea How do I add text on a new line from Text field
I want to put each new input from the text field at the start of a new line and keep the previous entries at the start of their
own line.
I'm doing this but need help with the new line.
jTextArea1.setLineWrap(true);
jTextArea1.setWrapStyleWord(true);
jTextArea1.setEditable(false);
public void textProcess()
System.out.println(sourceref1.getSourceText());
jTextArea1.setText(jTextArea1.getText()+" "+source.getSourceText());
The above just keeps adding on the new text until I reach the word wrap limit.
ThanksMaybe you should use the escape character. Anyway, you can consider use append(text:String) instead of getText() everytime.
Eg:
jTextArea1.append("\n"+source.getSourceText()); -
Read at each new line from .txt file
Hi guys
I want to read from a file which I am saving using labview. What I am doing is reading 128 bytes fro VISA port and saving it in .txt file with new line constant. At some later time I want to read 128 bytes from that text file do some processing and display it. The "read from text file" vi has convert EOL but I am not able to configure it. Please help me..
Thanks in advance
NiladriHi Newbee_3,
Do 1 thing, Read the txt file & convert this into string, Then you have all the flexibility to do whatever you want.
Thanks
Kudos are always welcome if you got solution to some extent.
I need my difficulties because they are necessary to enjoy my success.
--Ranjeet -
Deleting RFC classes from model
Hi,
I need to delete RFC classes from a model. The model is used in a different DC and I wouldn't like to remove all the references to the model as the risk to mess everything up seems high.
However my RFC classes are never used, I would like to delete just them all, but the delete context menu item is disabled.
Can anyone help?
Thanks, points will be awarded
VincenzoHi,
One of the possibility I see is, double click on the model class and in properties pane check the path and physically remove the class from file system level. But try this on a sample project and see if there are no build errors. I don't think just leaving the model class like that will make any difference in performance.
Regards
Ramesh. -
Deleting a line from a text file & opening a project from another project
hi
im doing project on linux redhat 8.0 using java (jbuilder 8). I need to
open a project2 from behind a menu item in project1. I tried importing
the package of project2 and then initializing a constructor of main
class of project2 in project1(behind the "open project2" menu item) but
i dont know where to place the class files of project2 so im getting a
compilation error(when compiling project1) that unable to locate
imported package files.
is there any other way of doing this
like making an .exe file of project2??? if so, then pls tell me how.
Another problem is i want to delete a line of selected text from a text
file
using java. is there a method for that or any other way?
Anybodyyyy have any ideasss?
AlishaCross- and double-posted: http://forum.java.sun.com/thread.jspa?threadID=645244
-
"new line" in dictation not working in Outllook for Mac 14.2.4
Today I tried using dictation and it works except when I give it the commands "new line".
Again, the dictation is working in all Apple applications.Killbygirl,
I am going to do what I can to help resolve your issue in a timely manner, and what is most easiest for you. Ok lets get started!
First ensure that you have all software updates installed. You can do this by following the instructions provided here
http://docs.info.apple.com/article.html?path=Mac/10.4/en/mh292.html
Once you have verified that all updates are installed open system preferences, locate Sound which is located in the hardware category. Once located click on Sound and the Sound preference will open. On the top you will see three tabs. Sound Effects, Output, Input. Click on the input tab and in the "Choose a device for sound input" box click on Line in. Also verify that the settings in any audio recording applications that you are using are setup correctly.
If you have any questions, comments, or concerns please don't hesitate to let me know and I would be happy to be of assistance! -
Delete a line from a file using Oracle .
Hi Gents,
Is there any option from oracle to delete the last line in a file using utl_file ?
apart from sed or other UNIX commands>
Regards
Fento.hi,
why don't you use SQL loader..?
post in this export,Import,External table forum..
Export/Import/SQL Loader & External Tables
regards,
Deepak -
How do you change the first letter of a new line from uppercase to lowercase?
In filling in case sensitive id's and passwords, the iPad automatically capitalizes the first letter---how do you change to lower case?
You can shut off Auto Capitalization in the settings to prevent that from happening. Go to Settings>General>Keyboard>Auto Capitalization>Off.
You can change to lower case manually by tapping the "black X icon in the arrow" in the upper right corner of the keyboard to delete the capital letter and then type in the lower case letter. -
Replace new line from xml string
hi,
I am getting an input string as given below
<div class="titleBar">
<h1>sssPRIVACY POLICY AND YOUR CALIFORNIA PRIVACY RIGHTS</h1>
</div>
<div class="txtPod"> And I want to replace all the blank lines and the output should be like
<div class="titleBar">
<h1>sssPRIVACY POLICY AND YOUR CALIFORNIA PRIVACY RIGHTS</h1>
</div>
<div class="txtPod"> I tried replaceAll("\n",""), but that doesn't seem to work.
Can somebody help me on thisstr = str.replaceAll("(?m)^[ \t]*\r?\n", "");
-
How to delete an ipod from itunes libary to enable space for new ipod, already 5 connected
Does anyone know how or if it is possible even to delete an ipod connected to itunes to make room to connect another? I already have 5 devices connected to my itunes & I believe that is the maximum.
You need do nothing. You can sync as many ipods as you like to one comptuer.
Maybe you are looking for
-
Well, the wife finally got her 5800 and mine arrives today. We went with the 5800 over the iPhone for many reasons but mostly due to the restrictions on the iPhone. We both registered with the OVI place and with great hopes we added all our contact
-
Windows 7 Professional, Microsoft Office 2010 - Outlook 2010.
-
Best practice for BW transport
Hi . When i am working on BW Object transport from BW development system to BW QAS(TEST) system, there are two methods to activate the standard BCT object, (1) Activate it in QAS system directly, (2) tranport it from DEV to QAS. Can anyone tell m
-
Spry Vert Menu: Weird top item display in DW design view
Whenever I insert a vertical menu, the top Item always dispalys in Design View right justified (see attached image). Really distracting. Displays fine once published. Just bugging me?
-
Testing for concurrency .. How to simulate multiple concurrent sessions?
All, I was going through Tom Kyte's Expert Oracle one on one and he explains how we can test the scalability of queries by running them concurrently for multiple sessions. My (rather naive) question is how do you simulate those five concurrent sqlplu