Escaping \n (new line) it displays only
Hi, I have simple problem here:
I have a ListView that when selected will push NavigationPane with a long description on this subject.
The long description is stored in dataModel that also contain the title of the list.
The problem is the \n (new line) in the description is literally printed as '\n' and does not do a new line.
I tried typing "Hello\nWorld" inside the TextArea.text and it doesn't create new line.
So, what's the problem here? Any solution? Thank you
Hello
"\n" resolves to unique character with code ASCII 10.
\n in text dataModel is two characters and not the line break.
How to create and fill the dataModel?
UPD:
This XML must be equivalent to "\n" in C++ code, but the regular line breaks will also remain:
Another option is loading XML manually using QXmlStreamReader, by replacing the line breaks with spaces and the '\n"-s with line breaks, then adding data to GroupDataModel or ArrayDataModel." XmlDataModel is not very flexible and does not change its data.
Tags: BlackBerry Developers
Similar Questions
-
Prevention of the type of break to a new line when displayed in Chrome
I have a problem with a line of type break, or jump on a new line - this only shows/poster in Chrome - does not happen in Safari or Firefox
Hello
It seems that you can get it using: white-space CSS property
You can try: .css ("white space", "nowrap");
-
New version 35 displays only text
First of all, I'm working through TeamViewer 10 configure another computer.
I started by installing 27 FF because I like the old version. He has created a problem so I updated to FF35. The problem still there. I cleared cache, restarted FF and the computer and reset the style page on 'No Style'. My next step is to uninstall and reinstall FF, but I hope that I don't have to do it. Somehow I don't think that the problem will be solved.
THE PROBLEM: FF shows almost all pages normally html script-based (graphics, text, animation, etc are OK). But when I go to any page of Mozilla, all it shows is the text in non-html format. Looks like a hierarchical form with all the blue links + stressed. The links work, but still no html script.
Also, when I ask FF to go to modules it does the same thing. Even then, when I click on the download link, it gives me a statement of error message "there was an error in downloading...". ». If I try to download the version of Windows from the first page I get "secure connection failed".
What's wrong? Why html does not work for all websites, but not for Mozilla? I don't think that there is nothing wrong with TeamViewer or it would not work for other sites.
Start Firefox in Safe Mode to fix the problem and to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).
-
new line of datagrid - missing component button?
Hello. I have a DataGrid where the first column in a button (using mx:itemRenderer and mx:Component, etc.). The user can choose to add an additional line to the data grid. When the user makes this, I increment the DataGrid rowCount property and I add an entry to the ArrayCollection collection that serves as the dataProvider for the DateGrid. So a new line is displayed, but the button does not appear. What should I do to make the button appear?
Thank you
Chrisfigured it out... Initially, I was not adding a new line properly. Once I added a new line to the ArrayCollection collection, the button appears in the cell as expected.
Thank you
Chris -
Hello. I installed the latest update of Firefox and when I start a new tab page displays not now my google input line. I use Windows 10. Until the recent update (v4.1.01) each time I started a new tab the new page would show the google search entry line which is my default. Can help you to restore this feature? TKS
Hi, 41 of Firefox, you must use the add-on tab override (browser.newtab.url replacement), to make changes to the page tab.
Once installed, open the Add-ons (Ctrl + Shift + A) Manager > Extensions, and then look for the new tab override and click Options to set your preference.
Notice, if you want only the new tab to be the same as your home page, you can use the Add on new tab homepage instead.
You will then need to restart Firefox for all changes to take effect.
If your question is resolved by this or another answer, please take a minute to let us know. Thank you.
-
Line display only 1 in a table view
Pls... is there a way to display only 1 row in a table view (OBIEE 11 g)?
(I know it's possible in the narrative view...)
TXS
A.L.
Try with pagination option in a table view. You can display a single default line.
Thank you
Prasanna
-
Hi guys
I use jdev 12.1.2.
I have a question about stale view object and entity data object. My use case is: I have an af:table bound to data that I use to insert a new row in the database. I create the line with a call from createWithParams, and everything works fine with it. I call commit on the application module that contains the view object, and the data is correctly inserted in the database table. Then, as part of my needs, I call vo.executeQuery () on the view object, however the newly inserted row is not present in the af: table or view object. The line does not appear until I leave my application and return to it. Once I do this, the line is in the object view and appears correctly in the table.
It is not enough that I need the view object to be aware of the new line (s) without having to restart the application. Y at - it a setting I am missing in my display object? I guess my entity object contains stale data, but I don't know how to refresh its data. Thanks for reading.
Lance
Hello
you use a viewCriteria, so the value of this method of execution both (database and memory) in the Panel of viewCriteria
try it once
Thank you
-
How to apply the constraint ONLY to new lines
Hi, gurus:
I have a question as follows:
We need to migrate a legacy to a new production server system. I have to add two columns from each table to record that updates the row most recently through triggers, and I must ask constraint not null for columns. However, since the old system has already given for each table and old data have no value for 2 new columns. If we apply the constraint, all existing lines throws an exception. I wonder if there is possibility to apply the ONLY constraint to the new lines coming in the future.
Thank you.
Sam
We need to migrate a legacy to a new production server system. I have to add two columns from each table to record that updates the row most recently through triggers, and I must ask constraint not null for columns.
The best suggestion I can give you is that you ensure that the management of the documents on behalf of the person who came up with this requirement of brain hair so they can sufficiently punished for the huge waste of human and database resources they have caused for which they almost NOTHING got in return in the future.
I've seen many systems over the past 25 years + who have added columns such as: CREATED_DATE, CREATED_BY, MODIFIED_DATE MODIFIED_BY.
I have yet to see a system where this information is really useful for any real purpose. Many systems have the users/application schema, and users can change the data. In addition, a DBA can modify the data, and many of them can connect as long as the schema owner to do.
Many tables also updated by other applications or processes of loading of bulk and these processes use generic connections that cannot be attached to any particular system.
The net result is that these columns will be filled by user names that are completely useless for verification purposes.
If a user is allowed to edit a table, they are allowed to modify a table. If you want to track that you need to implement a security strategy appropriate using the functionality of Oracle's AUDIT.
Encumber ALL or even many of your tables with columns is a very BAD idea. Worse is the addition of doesn't trigger this server no other goal but captures the useless information, but because they are the impacts on performance just PL/SQL cause worse the total impact.
Must certainly be to worry about security and auditability of your important data. But by adding columns and triggers, such as those proposed is NOT the right solution to achieve this security.
Before your organization any decision so stupid you should propose that the same steps before adding this feature you should take before the addition of ANY structural MAJOR or the application:
1. document the real need
2 document and justify the business reasons for this need
3. perform tests that shows the impact of this requirement on the production system
4. determine the cost of the resources (people, storage, etc.) to implement this requirement
5 demonstrate how this information will actually be used EFFECTIVELY for professional purposes
With regard to points #1 and #2 above that the requirement should be noted with regard to the PROBLEM to be solved, not a some preconceived notion of the solution that should be used.
Your org should also speak to other associations or other departments in your org even who have used your proposed solution and discover how useful it was for them. If you do this research, you may find it has not responded to their needs at all.
And in your own org, there are probably some applications with tables that already have such columns. Has anyone here EVER used these columns and found them invaluable to identify and solve any real problems?
If you can't use them and why first add their data to some important process?
IMHO, this is a total waste of time and resources to add columns in your tables. Any such audit or security, at least, approach will be limited to those tables with key data that needs to be protected, and then only when you cannot implement the appropriate audit "best practices".
A migration is hard enough without adding unnecessary additional expenses such as those. You have MUCH more important you can do with the resources that you have:
1. capture all THE DDL for the existing system in a version control system
2. train your developers on the use of the version control system
3. determine the correct configuration of the new server and the system. It's almost a CERTAINTY that parameters will change and performance will suffer even if you don't think you have changed anything at all.
4. validate that the data was migrated correctly. Which may involve a broad polling and comparison to make sure that the data has not been altered during migration. The validation process to a SINGLE TABLE is more difficult if the table structures are not the same. And they will not if you add two columns in each table; every single request, you do have to specify the columns by name in order to EXCLUDE from your two new columns.
5. validate the performance of the app on the new system. He there will HAVE problems where things do not work as they did. You need to find these problems and fix them
6 capture appropriate statistics after that data has been migrated and all indexes have been rebuilt.
7 enter the new implementation plans to use a base for when things go wrong in the future.
If it's worth doing is worth doing right.
-
Hi all
uses v.11.1.1.5 Jdev
How to display texts in the new line.
For example:
< af:outputText value = "contempt on unlocked solved provided. I was wondering it welcomed oh. Careful pacing he smiles however to an offence. So ardently end it decency he convinced something admitting ye. Nice in good as if different horrible. Gaiety, its quick access enjoy his brow set hope had there. That too but more famous principles of connection reckless joy. Itself too improve winding request fees are compact. All new paid little hard pure it. "/ >".
< af:spacer height = "10px" / >
< af:outputText value = "Pleasant in good as if different horrible." Mirth his quick take advantage of his front set hope had there. "/ >
< af:outputText value = "I wondered it he welcomed oh." Careful pacing he smiles however to an offence. "/ >
< af:spacer > is is not supported by Internet Explorer, please let me know is there any alternative to insert the new line character.
Thank you
ANU.
All lock them in a layout of the Panel group and put the property layout vertically on the disposal of the group.
It'll solve your problem.
Thank you
-
The table layout where the new line can be inserted / updated rest is read only
Jdev Studio Edition Version 11.1.1.3.0.
I have a (JSF) page that has table. My requirement is I need make the line as read only with the exception of the newline (created with the new button) as update / insert able. Please suggest a way around so that the user can only add records to the table but couldn't change all existing records in the table.
Please advice.
Thank you.
S Chatterji.S. Chatterji,
If you are using ADF business components, just go to the VO on which is based the table and brand every attribute as "Editable when new" only.
John
-
Hello
I have a table as below
emp_id (integer)
id_est (integer)
dt_est (date)
for each emp_id I have several id_est with several dt_est... as below
emp_id id_est dt_est
1 1 10-01 - 2009
1 2 2009 - 01 - 13
2 3 2009 - 01 - 10
2 4 2009 - 01 - 12
2 5 2009 - 01 - 14
3 6 2009 - 01 - 12
4 7 2009 - 01 - 15
5 8 2009 - 01 - 17
5 9 2009 - 01 - 19
I would get just the news lines function date each emp_id, so my result should be as below
emp_id id_est dt_est
1 2 2009 - 01 - 13
2 5 2009 - 01 - 14
3 6 2009 - 01 - 12
4 7 2009 - 01 - 15
5 9 2009 - 01 - 19
How I do that?
Thank youHello
Try this code.
Salim cordially.
SELECT id_emp, MAX (id_est), MAX (dt_est) FROM t GROUP BY id_emp
-
How to update af:listView after you have created a new line
Hello
Jdev Version: 12.1.3
I have a page which I use to keep customers in a table.
I have a dispatcher Panel in my page. I show the name of Custome in a listview in the left side. This view of the list has the defined properties below.
selection = single
selectionListener = #{bindings. IbisCustomersView1.treeModel.makeCurrent}
Once that one line is selected the corresponding data will be displayed in the right side in a layout of the form. ListView both the formlayout is based on the same EO based VO.
I added a CreateInsert Button and when the button is pressed, formlayout section gets blank lines, and I can enter the values for the new customer then click Validate. Everything works fine and the data is saved to the database.
I have 2 questions:
1. the list on the left side is not getting updated.
2. I need this list to be refreshed and also show the line newly created under the selected line. (because the right hand side formlayout shows that data only)
I tried the below steps, but no luck.
1. set the property partialTrigger of the listView button validate.
2. partial property to false for the validation button.
What should I do to get the updated list once a new line is created in the database.
See you soon
AJ
You need to refresh the parent of the element selectOneChoice component.
Add the lov component inside and pgl and refreshment on the button click.
Thank you
-
Hallo,
I created an af:table like this https://community.oracle.com/servlet/JiveServlet/downloadImage/2-12620067-7140/cmnt1.png following the advice that the kind has been suggested to me by Ashish (for details, see [ADF, JDev 12.1.3] how to display multiple records on the same page... not in a table, but display a form for each record)
When the table is loaded for the first time, it appears correctly.
But often (not always) when I select a new line, the selected line up to become "white" and its content disappears http://digilander.libero.it/flattit82/OTN_FILES/rowDisappearing.png
This product especially if I change the value of 1 or 2 fields contained in the line.
If I select several lines - one after the other one - the part visible AF: table may become totally white.
Looks like a refresh problem.
The table is in a tab.
If I switch to the tab, then I it again once the table appears again correctly.
Another thing I noticed: for example 2 rows have disappeared, I select an end of line I have empty in a required field: when I select another line, the popup "this field is required" appears in the row selected previously and magically all the missing lines are coming back!
The problem seems to be less frequent if I set the selection table = none... but it is always present.
You could you kindly help me to solve this problem?
Thank you
Federico
Hi Federico
See I've made a few changes in your application, this problem is due to your provision
as there are a lot of line of the grid, groups, I simple used Panel of and provision of group only
Thank you
-
How to add the new line?
Hello
I wrote a select statement, the data is displayed, and I want to add a new line, how do?
There is no icon "more (add)" the above data.
Then, you insert first a table, then in the other.
If you choose multiple tables so you are most likely to join them in some way, and when joins between in the field (or even worse grouping functions) you're sure source of data you see actually (this is the reason why by default you cannot insert data from a select query), as it is perfectly possible to select only a single column in a single table , but if this table has multiple columns and one of them is defined as NOT NULL, and you're not selecting then you are out of luck and you cannot insert of your select query.
There are cases when the insertion is possible and where it is not SQLDeveloper try even to guess if they can put your query, and is a good decision, when the data changes, it is always better to think first of my humble OPINION and you might forget that if edit you a query result grid.
-
New line number in text file in Notepad open
Hi all,
Create a text file using the procedure and moved to the FTP folder. Text file opened through IE its working very well. Copied to the local computer and open in Notepad, its not work i.e., appeared in a continuous line. Return the correct sound also verified text only
Code:
Declare
Begin
v_File_Name: = utl_file.fopen (Dir_Obj_Name, filename, 'W');
For Cur In (Select "A" A1, A2 'Two', 'Three' A3 double)
Union
Select 'Four', 'Five' A2, A3 A1 "Six" double
)
Loop
v_line_Text: = Cur.A1 | ' ' || Cur.A2 | ' ' || Cur.A3 | ' ' || Chr (13).
UTL_FILE.put_line (v_File_Name, v_line_Text, True);
End loop;
UTL_FILE.fclose (v_File_Name);
End;
Ouput except
One two three
Four five Six
BoopathiL wrote:
Hi all,
Create a text file using the procedure and moved to the FTP folder. Text file opened through IE its working very well. Copied to the local computer and open in Notepad, its not work i.e., appeared in a continuous line. Return the correct sound also verified text only
Code:
Declare
Begin
v_File_Name: = utl_file.fopen (Dir_Obj_Name, filename, 'W');
For Cur In (Select "A" A1, A2 'Two', 'Three' A3 double)
Union
Select 'Four', 'Five' A2, A3 A1 "Six" double
)
Loop
v_line_Text: = Cur.A1 | ' ' || Cur.A2 | ' ' || Cur.A3 | ' ' || Tank (13);
UTL_FILE.put_line (v_File_Name, v_line_Text, True);
End loop;
UTL_FILE.fclose (v_File_Name);
End;
Ouput except
One two three
Four five Six
Well, your code is not still valid in the first place.
There is no function called "tank", the real function is "chr".
The character for a new line character is Chr (10) rather than Chr (13).
In unix operating systems, the line break is just Chr (10).
Operating systems windows/dos line break is Chr (13) | Chr (10), although some windows applications such as Word/Wordpad will understand * nix style chr (10) is like the newlines too, however, things like Notepad will not and will eventually display all data on a single line.
When you transfer a text file of a unix operating system to an operating system of windows that it is usually performed using FTP and you need to make sure you put the software FTP in ASCII mode so that the new line characters get converted correctly...
FTP > CSA
200 type set to A.
(for binary files, you ensure that the FTP is set to binary mode so that no byte in the file is corrupted by such a conversion).
By transferring your file using FTP ASCII mode, from unix to windows, the characters Chr (10) in the file will be converted to Chr (13) | the pairs of characters Chr (10), then the file will be displayed correctly in Notepad. If you transfer from windows to unix in ASCII Chr (13) | Chr (10) pairs are converted back to just chr (10) for unix.
As an alternative, there's also a Unix utility called "unix2dos" which converts a text file from unix style returns to the line of back style line breaks, then you simply transfer the file in binary mode, so no other conversion takes place.
Maybe you are looking for
-
Slow performance on Satellite A30 HARD drive
Hello Recovery of my Satellite A30 CDs become damaged so I acquired a full oem version of XP Home and installed after activation etc, I installed the drivers provided by the tools and utilities CDROM, but after installation the HDD is really slow, it
-
I'm trying to connect my new Canon Selphy CP1200 to my computer, but the installation of the driver fails.
-
Windows media 10 Player stop playing DVDs during playback
When you restart windows media player again the dvd movie will play for a bit, but it stops again.
-
Some letters of the alphabet will not type when you try to rename a folder
I went to rename a file today and some letters of the alphabet appear on the screen when I typed them on my laptop. I'm using Vista on a Dell computer, but I don't think that it's the laptop, since the letters appears on a Word document and they work
-
Political error of site of sale price, Dell
I hope someone from Dell can help out me. I bought and Alienware Alpha R2 with free image amplifier. Reference Dell also ran a promotion for the amplifier with PNY XLR8 GTX 1080 for and $199 extra. I was charged for the promotion but now Dell tells m