I'll settle for a simple Yes or No...
Is it possible (re-)edit text in item of HTML Editor minimal type?
Hi,
I created a form with an item of type HTML editor minimal.
After insertig tekst and saving the text to the database (varchar2(4000)-type column) and displaying it in an APEX-report, everything looks as I want.
How can I get the text displayed in an item of type HTML editor minimal so the user can re-edit it?
I tried using an application process/AJAX solution, but that does not work. Take a look at
http://apex.oracle.com/pls/otn/f?p=25883:17:
user: bemy
password: guest
At the top, I display what is now in the database.
Below, after entering an ID (1 or 2) and tabbing out (onChange event), the text is added (AP/AJAX-trick) to both items. However, only item of type textarea displays the value. But it shows the HTML-tags as well, and I do not want the user bother with HTML-tags...
Thanks,
Jos
Thanks Carl, for replying.
I tried your first suggestion (do it the APEX way) already before I posted for help, but I loose all the HTML make-up. This happens for item Tekst (HTML editor) as well as for item Tekst2 (regular textarea)and it doesn't.
However, when I add the database-value using AJAX, item Tekst2 shows the HTML-tags, item Tekst doesn't show anything.
This is the code:
<script language="JavaScript1.1" type="text/javascript">
function f_GEEF_EDITOR_TEKST ()
var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=GEEF_EDITOR_TEKST',0);
get.add('F25883_EDITOR_ID',html_GetElement('P17_ID').value);
alert('ID: '+html_GetElement('P17_ID').value);
gReturn = get.get();
if(gReturn)
html_GetElement('P17_TEKST').value = gReturn;
html_GetElement('P17_TEKST2').value = gReturn; }
else
{ html_GetElement('P17_TEKST').value = 'null';
html_GetElement('P17_TEKST2').value = 'null'; }
get = null;
</script>
This javascript is executed like this:
item: P17_ID
HTML Form Element Attributes: onBlur="javascript:f_GEEF_EDITOR_TEKST ();"
The application process:
declare
cursor c_et
is
select e.tekst
from editor e
where e.id = :F25883_EDITOR_ID;
pl_editor_tekst varchar2(4000);
begin
if :F25883_EDITOR_ID is not null
then
open c_et;
fetch c_et into pl_editor_tekst;
close c_et;
end if;
htp.prn(nvl(pl_editor_tekst,'Niets gevonden bij ID '||:F25883_EDITOR_ID));
end;
But this doesn't seem to work for an FCKeditor-textarea.
So I followed your second suggestion, but I can't figure out what precisely I have to put where. I guess something like
var oFCKeditor new FCKeditor('P17_TEKST'); and oFCKeditor.value = gReturn
Could you give some more info on that?
Thanks,
Jos
Similar Messages
-
ORD to AUC settlement for previous year
Hi All,
We have a scenario wherein some expense exists on the Internal order for 2014. The Asset fiscal year has been changed to 2015.
While trying to settle the ORD to AUC for current year, we get a message to do the settlement for previous year.
I checked the SAP notes, it recommended:
1. To do a PRE settlment to Cost Center/receiver in 2014,
2. Manual reposting of cost from the receiver to ORD in 2015, and
3. AUC settlement in 2015.
Please suggest if there is any other way to do it with/without opening the previous fiscal year.Hi Pankaj,
Check the settle parameters of the order, have you defined settlement type as "periodic settlement" for the asset. If yes, add another line for full settlement for it. Then do settlement for 2015 with processing type as "Automatic", then system will post to 2015 for the asset.
Regards,
Mukthar -
MOD answers please - simple yes / no questions on pops and crackl
Dear MOD's
Could someone PLEASE answer these questions with a simple yes / no answer.
It seems a lot of people are giving up hope on the snap, crackle and pop problem.
) Does Creative acknowledge the problem exists?
2) Have Creative replicated this problem in-house?
3) Is Creative looking into a fix?
Considering my X-Fi Fatality is the best of the best of the best, I would expect some info on the situation.
If its hardware and no software fix will patch it, then at least tell us.
Leaving so many customers in the dark is just down right rude.
In anticipation of your quick response
BozzyIt's funny, the mods don't seem to exist when you ask them a question, but if you start swearing up and down these forums, they're on you like a fat kid chasing smarties!!
Or if there's a new product being launched, they're all over the forums saying, "check out the demo, buy Creative products now!!" Screw that!!! Little do consumers know that when they buy a Creative product, they don't get the support they need. The Audigy beta driver has been in the beta stage for 3 months!!!!!!!!!! 3 freakin' months!! You better hope and pray that when you buy a Creative products, it works out of the box!!!
Message Edited by Dr_Know on 2-6-2005 06:09 PM -
Periodic cost settlement for production order
Hello All,
Please explain me can we do Periodic cost settlement for production order in discrete manufacturing. If yes, how?
Thanks & Regards,
Alok TiwariWIP entry gets passed to accounts if the order is not in DLV or TECO status.
or else variance gets calculated.
Two GLs which gets hit are
Change in stock a/c Dr.
To Inventory Price Difference a/c Cr. or vice versa......
Regards,
Divraj -
I'm looking for a simple DJ app
Hi Folks,
I hope this is the best place for this question! I'm looking for a simple App that will allow me to add music on the fly to a playing playlist. iTunes DJ does most of what I want but doesn't allow me to drag and drop order or remove songs. I don't need turntables or eq or anything like that. Just a simple way to create playlists on the fly with the ability ro rearange the order, add and remove songs on the fly. Also, if there's a better forum for my question, please advise.
Thanks!
GregWhich particular Mac OS are you running, psychmac?
-
Looking for a simple pdf reader.
Anyone have a suggestion for a simple, easy to use, pdf reader?
Have tried a couple & they fizzled.
Suggestions?
Thanks!
-Jeff in NYCSAme problems here and when i tried to use foliant it didnt work with the books all it gave me was a bunch of weird looking characters
HELP US!!!
If you found this post or any other psot helpful please press the green kudus star -
Looking for a simple drawing application for my grand-daughters
Well, that's more or less it, I'm looking for a simple drawing application for my grand-daughters. In the children section of iTunes store, there's only a few books and nothing more. I bought the iPad mainly for my grand-children to teach them a bit and I don't find interesting things for them.
Can anybody help me with that?
Pedro Godfroid GoffinBrushes is a nice finger drawing app. Since you didn't say how old they are, I don't know if the interface is to difficult for them to use.
Sketchbook is another nice drawing app.
Neither are free.
Glor -
Looking for a simple way to convert a string to title case
New to LiveCycle and Javascript. Looking for a simple way to convert a string to title case, except acronyms. Currently using the the following, it converts acronyms to lower case:
var str = this.rawValue;
var upCase = str.split(" ");
for(i=0; i < upCase.length; i++) {
upCase[i] = upCase[i].substr(0,1).toUpperCase() + upCase[i].substr(1).toLowerCase();
this.rawValue = upCase.join(' ');Thanks for the reply.
Found the following script in a forum, which works fine as a "custom validation script" in the.pdf version of my form. However, it will not work in LiveCycle? The problem seems to be with
"return str.replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g"
function toTitleCase(str) {
var smallWords = /^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;
return str.replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g, function(match, index, title){
if (index > 0 && index + match.length !== title.length &&
match.search(smallWords) > -1 && title.charAt(index - 2) !== ":" &&
(title.charAt(index + match.length) !== '-' || title.charAt(index - 1) === '-') &&
title.charAt(index - 1).search(/[^\s-]/) < 0) {
return match.toLowerCase();
if (match.substr(1).search(/[A-Z]|\../) > -1) {
return match;
return match.charAt(0).toUpperCase() + match.substr(1);
event.value = toTitleCase(event.value); -
Looking for a simple flip book template for Flash CS5
Hi, I'm looking for a simple flip book template for Flash CS5 for a 20 page brochure/ booklet. Or a tutorial. Does anyone know of one?
Thanks!Hi Mark,
No need to restrict your choice to the preset Pages Templates. Do a web search and choose a Word template. Pages will open Word documents and templates. Or design your own:
This is a Table I inserted into a blank Pages Word Processing document. Format the date column in Inspector > Table > Format > Cell Format. Select the first Date cell,then drag the fill handle down to increment the dates.
Regards,
Ian. -
Looking for a simple tutorial to building my first responsive web site in Dreamweaver CC.
I am looking for a simple tutorial to building my first responsive web site in Dreamweaver CC.
I have watched the tv.adobe video 3 times and I cam not able to do the actions the author shows.
help.
Ken EdwardsResponsive and simple don't go hand-in-hand. First do some prep-work to understand the concepts.
Responsive Web Design
http://coding.smashingmagazine.com/2011/01/12/guidelines-for-responsive-web-design/
Introduction to CSS Media Queries
http://www.adobe.com/devnet/dreamweaver/articles/introducing-media-queries.html
Jump start your RWD projects with any of the Responsive Frameworks below:
Foundation Zurb
http://foundation.zurb.com/templates.php
Skeleton Boilerplate
http://www.getskeleton.com/
Initializr (HTML5 Boilerplate, Responsive or Bootstrap)
http://www.initializr.com/
DMX Zone's Bootstrap FREE extension for DW
http://www.dmxzone.com/go/21759/dmxzone-bootstrap/
Project Seven's Page Packs (Commercial CSS Templates)
http://www.projectseven.com/products/templates/index.htm
Have fun!!
Nancy O. -
looking for a simple answer ........why is it more difficult for skype to connect than before . It fails to ring most times and your never sure if it is just slow or did not dial in the first place??? and is there any way to disable the leave a message feature ??? I am afraid soon it will be like most wondows applications where you will need endless updates and patches just to keep it running ..... Why is it that everyone is trying to fix everthing when it isnt broken.
WTF? I'm sure you can find plenty of examples on google. It's on you to take the time to go through them, study them, and, if you still don't understand something, post a clear, concrete question that indicates what you read and what you didn't understand about it.
As is, you're essentially treating folks here as your research flunkies and saying, "Give me an example that's better than all the ones already easily available to me. Read my mind to know why I didn't like them." -
Looking for a simple voice to text app
I am looking for a simple app that will recognize my contacts and create voice to text messages. What is the best? Thanks for your help!
Thanks, this app is simple and it works well. It has good voice recognition.
-
i am looking for a simple app to enable me to crop a face from one pic to another(fun). is it possible to do this via iPhoto or aperture?
No, you will need something more advanced, like Photoshop.
-
Ideas For a Simple Program?
I need some ideas for a simple program for a project in class. Can anyone help me?
Import Classes
import java.io.*;
public class tictactoe
Define Variables
public static InputStreamReader ISR = new InputStreamReader(System.in);
public static BufferedReader BFR = new BufferedReader(ISR);
public static String BOX[][] = new String[3][3]; //Integer Arry for tictactoe box
public static String PName; //Moving Player's Name
public static String P1Name; //Player 1 Name
public static String P2Name; //Player 2 Name
public static String InputPLY; //X or O
public static String InputStr; //Player's Input
public static boolean BreakLoop; //Set this to true in PlayGame() to exit
public static void main(String args[]) throws IOException
InputPLY = "O";
BreakLoop = false;
ClearBOXCache();
PrintCredits();
System.out.println("");
System.out.println("PLEASE ENTER PLAYER 1 NAME");
P1Name = BFR.readLine();
System.out.println("PLEASE ENTER PLAYER 2 NAME");
P2Name = BFR.readLine();
System.out.println("");
System.out.print("\nWelcome ");
System.out.print(P1Name);
System.out.print(" and ");
System.out.println(P2Name);
System.out.println("");
System.out.println(P1Name + " = X");
System.out.println(P2Name + " = O");
PlayGame();
PrintCredits();
BFR.readLine();
System.exit(0);
public static void DrawGrid()
This function is to draw the tictactoe grid.
System.out.println("");
System.out.println("\t/-----------------------------\\");
System.out.println("\t|-------- TIC TAC TOE --------|");
System.out.println("\t|-----------------------------|");
System.out.println("\t| | | |");
System.out.println("\t| " + BOX[0][0] + " | " + BOX[0][1] + " | " + BOX[0][2] + " |");
System.out.println("\t| | | |");
System.out.println("\t|-----------------------------|");
System.out.println("\t| | | |");
System.out.println("\t| " + BOX[1][0] + " | " + BOX[1][1] + " | " + BOX[1][2] + " |");
System.out.println("\t| | | |");
System.out.println("\t|-----------------------------|");
System.out.println("\t| | | |");
System.out.println("\t| " + BOX[2][0] + " | " + BOX[2][1] + " | " + BOX[2][2] + " |");
System.out.println("\t| | | |");
System.out.println("\t\\-----------------------------/");
public static void PrintCredits()
This function is to print credits. Intended for startup and ending
System.out.println("");
System.out.println("");
System.out.println("\t-------------------------------");
System.out.println("\t--------- TIC TAC TOE ---------");
System.out.println("\t-------------------------------");
System.out.println("");
System.out.println("\t-------------------------------");
System.out.println("\t---- MADE BY WILLIAM CHAN! ----");
System.out.println("\t-------------------------------");
public static void ClearBOXCache()
This function is to clear the BOX's cache.
It is intended for restarting a game
BOX[0][0] = " ";
BOX[0][1] = " ";
BOX[0][2] = " ";
BOX[1][0] = " ";
BOX[1][1] = " ";
BOX[1][2] = " ";
BOX[2][0] = " ";
BOX[2][1] = " ";
BOX[2][2] = " ";
public static void CheckWin(String PLYW) throws IOException
This function is to check if a player wins
for (int X = 0; X < 3; X++)
if (BOX[X][0].equals(PLYW) && BOX[X][1].equals(PLYW) && BOX[X][2].equals(PLYW))
PrintWin(PLYW);
for (int Y = 0; Y < 3; Y++)
if (BOX[0][Y].equals(PLYW) && BOX[1][Y].equals(PLYW) && BOX[2][Y].equals(PLYW))
PrintWin(PLYW);
if (BOX[0][0].equals(PLYW) && BOX[1][1].equals(PLYW) && BOX[2][2].equals(PLYW))
PrintWin(PLYW);
else if (BOX[0][2].equals(PLYW) && BOX[1][1].equals(PLYW) && BOX[2][0].equals(PLYW))
PrintWin(PLYW);
else if (!BOX[0][0].equals(" ") && !BOX[0][1].equals(" ") && !BOX[0][2].equals(" ") && !BOX[1][0].equals(" ") && !BOX[1][1].equals(" ") && !BOX[1][2].equals(" ") && !BOX[2][0].equals(" ") && !BOX[2][1].equals(" ") && !BOX[2][2].equals(" "))
ClearBOXCache();
System.out.println("Tie Game!");
BFR.readLine();
System.out.println("Game has restarted");
public static void PrintWin(String PrintWinner) throws IOException
This function is to print which player won
if (PrintWinner.equals("X"))
System.out.println(P1Name + " wins!");
System.out.println(P2Name + " loses!");
else if (PrintWinner.equals("O"))
System.out.println(P2Name + " wins!");
System.out.println(P1Name + " loses!");
BFR.readLine();
ClearBOXCache();
System.out.println("Game has restarted!");
public static void PrintInstruction(String PLYINSTR)
This function is to give instruction to the player
if (PLYINSTR.equals("X"))
PName = (P1Name);
else if (PLYINSTR.equals("O"))
PName = (P2Name);
System.out.println("");
System.out.println(PName + ":");
System.out.println("PLEASE MAKE YOUR MOVE");
System.out.println("");
System.out.println("TL = TOP LEFT BOX, TM = TOP MIDDLE BOX, TR = TOP RIGHT BOX");
System.out.println("ML = MIDDLE LEFT BOX, MM = MIDDLE MIDDLE BOX, MR = MIDDLE RIGHT BOX");
System.out.println("BL = BOTTOM LEFT BOX, BM = BOTTOM MIDDLE BOX, BR = BOTTOM RIGHT BOX");
public static void PlayGame() throws IOException
This function is the main game function.
It calls other game functions.
Define Variables
while(true)
if (InputPLY.equals("O"))
InputPLY = "X";
else if (InputPLY.equals("X"))
InputPLY = "O";
while(true)
PrintInstruction(InputPLY);
InputStr = BFR.readLine(); //Player's move
Check player's move
if (InputStr.equals("TL"))
if (BOX[0][0].equals(" "))
BOX[0][0] = InputPLY;
break;
else if (InputStr.equals("TM"))
if (BOX[0][1].equals(" "))
BOX[0][1] = InputPLY;
break;
else if (InputStr.equals("TR"))
if (BOX[0][2].equals(" "))
BOX[0][2] = InputPLY;
break;
else if (InputStr.equals("ML"))
if (BOX[1][0].equals(" "))
BOX[1][0] = InputPLY;
break;
else if (InputStr.equals("MM"))
if (BOX[1][1].equals(" "))
BOX[1][1] = InputPLY;
break;
else if (InputStr.equals("MR"))
if (BOX[1][2].equals(" "))
BOX[1][2] = InputPLY;
break;
else if (InputStr.equals("BL"))
if (BOX[2][0].equals(" "))
BOX[2][0] = InputPLY;
break;
else if (InputStr.equals("BM"))
if (BOX[2][1].equals(" "))
BOX[2][1] = InputPLY;
break;
else if (InputStr.equals("BR"))
if (BOX[2][2].equals(" "))
BOX[2][2] = InputPLY;
break;
else if (InputStr.equals("RESTART"))
ClearBOXCache();
System.out.println("");
System.out.println("GAME RESTARTED!");
System.out.println("");
break;
else if (InputStr.equals("QUIT"))
BreakLoop = true;
break;
if (BreakLoop == true)
break;
DrawGrid();
CheckWin(InputPLY);
} -
I need for a simple example of reading a xml file using jdom
Hello
I have been looking for a simple example that uses Jdom to read am xml file and use the information for anything( ), and I just can't find one.since I'm just beggining to understand how things work, I need a good example.thanks
here is just a simple cod for example:
<xmlMy>
<table>
<item name="first" value="123" createdDate="1/1/90"/>
<item name="second" value="456" createdDate="1/4/96"/>
</table>
<server>
<property name="port" value="12345"/>
<property name="maxClients" value="3"/>
</server>
</xmlMy>DaveHi,
FileInputStream fileInputStream = null;
try {
fileInputStream = new FileInputStream("my_xml_file.xml");
} catch (FileNotFoundException e) {
e.printStackTrace();
} finally{
if (fileInputStream == null) return;
SAXBuilder saxBuilder = new SAXBuilder();
saxBuilder.setEntityResolver(new EntityResolver() {
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException {
return new InputSource(new StringReader(""));
Document document = null;
try {
document = saxBuilder.build(fileInputStream);
} catch (JDOMException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} finally {
if (document == null) return;
Element element = document.getRootElement();
System.out.println(element.getName());
System.out.println(element.getChild("table").getName());
Maybe you are looking for
-
This posting is a follow-up to the Mar 1 posting entitled: Studio 11 freezes when using external editor. Gordon kindly responded to that posting with a request for instructions on how to recreate the problem. Those instructions follow. 1. Create a di
-
Installing Application Server 10g (10.1.3) on Windows Server 2008 R2 64 bit
installing Application Server 10g (10.1.3) on Windows Server 2008 R2 64 bit i have installed this but restarting of server making problem i m not able to start opmn.ctl what should i do is there any other version to be downloaded I did. 1. i installe
-
Issue in listing all parked documents
Dear gurus, In our organisation before doing the GRN we are getting a bill from our vendor and when ever we are getting a bill we used to park the bill in mir7 as soon as possible. So after parking the bill we will do MIGO and post t
-
Which case to pick for 5G 30gb (and I have the Altec IM7 specker dock)?
I have the Altec IM7 speaker dock (which is GREAT!) but this means I need to remove any case before docking my ipod. I can't decide between the following cases (all of which I have read great reviews on, but I need to know which are the easiest the t
-
Hi Guys !! I am looking for some insight on the following topics and would want to know the ideal scenaios when they are required and what exactly do they mean .i am confused what exactly is meant by the following terms : 1)Enhanced Receiver Deter