Save form values as HTML file needed
Hi,
I need to export a Customer form values to an HTML file. I need it a the base file for a fusion with a Word document.
How can I do it?
thanks.
Hello BN
Please refer to below document to save data server using Webdynpro.
Exporting Webdynpro form data to html in km folder
/people/rohit.radhakrishnan/blog/2005/05/27/uploading-files-to-km-repository-using-webdynpro-apis
/people/valery.silaev/blog/2005/11/23/display-formatted-text-using-webdynpro-for-java
Re: Storing data in a Text File.
Regards, Arun Jaiswal
Similar Messages
-
Hi.
I recently asked how to save the actual rendered HTML code for a form. However, since posting that I found out that my management really just wants to have a form saved as an HTML (.html) file. And so, I decided to post this question under a new thread so as to not add to confusion. I also marked the previous erroneous question as "answered".
So then, how does one save a form (tabular or just a page containing form fields such as fill-in text fields, checkboxes, radio buttons, etc.), with the answers that a user supplies, as an .html file? One can do this with a report, but I do not see how to do this with a form.
Any help would be much appreciated.
Thank you.
ElieOh, I forgot to include some needed specifics:
I'm using Apex 4.1 against Oracle 10.2.0.5 on Linux and OAS (mod_plsql).
Thank you, again, for any help on this.
Elie -
How to set default value for html:file in struts
hi
i am working on an application using struts situation is i am using the
<html:file property="" /> to allow the user to upload file. but i need that a default file should be set so that even if the user donot click browse ie the user wish to upload that default file the default file get uploaded on page submition. Is it possible to set any default value for html:file ...if yes plz provide any suggestion or links how to achieve this. thanks in advancewww.google.com?q=STRUTS+DOCUMENTATION
-
I am trying to make a signature in MS Word (2007) which includes a jpg image, but when I save it as a HTML file and attach it the text appers OK but the image doesn't. I have tried various formats but still no luck. Can anyone help? edit
C'mon! Anyone???? I'm desperate!
-
Execute command and save output in a HTML File
Hello Guys,
I have a requirement and for that i have to do following. a) read a file in an array and then execute a command for each value in that array. after that i want to store the output of command and value of array in another array.
i am doing something like below.
set objtextfile = objfso.opentextfile _
("c:\temp\aaaa.txt", forreading)
j=0
Do until objtextfile.atendofstream
redim preserve arr123(j)
arr123(j) = objtextfile.readline
j = j+1
Loop
for each server in arr123
chk_status = "command" &" "& server
set objexecobject = objshell.exec(chk_status)
'Here i am not sure how to proceed further to achieve what i described above.
Next
Can someone help me with this?
-KAKA-Thank you for your response.
So here is what i want to do.
Query a database using odbc from my management server (odbc is configured and connection is tested) and based on the query it will result out few list of servers. then from the same management server i want to execute a command against all the resulted server
(management server has a binary which can execute remote action). this remote action will get output back.
then i would like to store the name of server and resulte output in a html file which should look like below.
which i will later host on apache.
YOu do not need to move things in and out of arrays and files.
>>>> You are right but as i stated, i am not a core programmer and due to nature of my job i have to work on perl, shell and VB Script, apart from my actual technology so it becomes difficult to write it with perfection.
I hope you understand.
-KAKA-
-KAKA- -
Does a wrapper html file need to be in the same directory? Need advice
I'm doing some RnD experiments for an upcoming project and I would like to use Edge.
What I'm trying to do is load 2 different compsites in a wrapper.html file that is level above the compsites. For instance my setup is
project/wrapper.html
project/product1/product1.html
project/product2/product2.html
In my wrapper file I have this, but this doesn't work
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
<title>Untitled</title>
<!--Adobe Edge Runtime-->
<script type="text/javascript" charset="utf-8" src="product1/product1_edgePreload.js"></script>
<style>
.edgeLoad-EDGE-68005601 { visibility:hidden; }
</style>
<!--Adobe Edge Runtime End-->
</head>
<body style="margin:0;padding:0;">
<div id="Stage" class="EDGE-68005601">
</div>
</body>
</html>
But when I move the wrapper.html file into the same directory as product1 and modify .js path and it loads fine? So my question is how do people normally load multiple compsites that resided in a different directory? What is the best method for accomplishing this? If anyone can point me in the right direction please. Thanks in advance.You will need to update the new loction for even the product1_edge.js file and the product1_edgeActions.js file in the product1_edgePreload.js file.
Open up the product1.edgePreload.js file.
Search for 'aloader'.
Under this there should be a ' load: "product1_edge.js" ' change it to ' load: "product1/product1_edge.js" '
and do the same for product1_edgeActions.js file too.
Bascially when you update the location of the edge preload file you will have to update the location of the animate assets like the edge file,edge actions,images etc.All these file locations work relative to the html file loading them. -
How can we set default value within html:file
Hai,
To set default value to text box i use the following code. It works well.
<html:text property="modifyserverdesc" value="<%= serverDesc%>" styleClass="text" size="38"/>But for file i use the code
<html:file styleClass="file" property="modifyserverimgfile" value="<%= serverImage%>" size="40"/>It doesn't display value. What is problem here?Hi,
guess that one option in a RowImpl would be to check if the attribute is null or if the attribute value can be found in the VO that populates the list. If first is true or seconds false (cannot be found) you return the first value of the VO, making it the current attribute value
Frank -
Plsss help me: how to set default values in html:file and html:radio
Hai,
To set default value to text box i use the following code. It works well.
<html:text property="modifyserverdesc" value="<%= serverDesc%>" styleClass="text" size="38"/>But for file i use the code
<html:file styleClass="file" property="modifyserverimgfile" value="<%= serverImage%>" size="40"/>It doesn't display value. What is problem here?
how to set default selection in <html:radio>.No it won't help.
You can't set a value into an <input type="file"> control at all. The user has to put values in themselves.
The reason behind this is security. If the programmer could put any value they liked in there, you could upload any file at all from a users computer without their intervention. eg C:\windows\system32\passwords.txt
Bottom line: you can't put a default value into the input type="file" control.
And a good thing too ;-) -
How to save a value (not in file) in Labview?
Hello,
I seems to be an easy question, but i don't know how to do it. I want to save the first value from my acquisition board (BUT NOT IN A FILE), in Labview "memory" and keep it for a later use. Like a variable stored in programming. With shift register it's continuing updating, and when i stop the shift register loop, it gave me 0 value. How to do it ? Thanks in advance!It sounds like they want the value to live through closing the VI and opening it for another time. If you're just wanting to maintain the value through the single run, shift registers will carry the value. If you don't initialize the value (wire something into the left register), they will maintain the value as long as you don't close LabVIEW and kill the memory allocation.
If you want to keep the value until the next run, you'll need to use Invoke Node to make that value default. That way, it will open up next time with the value saved. -
I've been using Properties to read information from an ini file like this:
Properties props = new Properties();
try
FileInputStream is = new FileInputStream(new File("myfile.ini"));
props.load(is);
is.close();
} catch(IOException e) {}
fieldone = props.getProperty("fieldone");
fieldtwo = props.getProperty("fieldtwo");Is there way as simple as this to store new values in the ini?
I've searched the forum but did not find an answer that looked like what I want.
Thanks,
JamesNext time, please give me a little more information to start with. I'm all for the learning process, but it would have been easy for you to say you can't update a single value, when that was the question I asked. (I assume by your last condescending reply about calling it an ini file that you already knew that.) Then point me to the store method. I don't think its that far off base to think you would be able to update an ini, cfg, conf, or any other type of configuration file without having to rewrite the whole thing.
Sometimes RTFM isn't enough, that's why we look to you experts on the forum.
James
ps- I'm not looking for a verbal battle here, although I'm afraid one will start. I understand that people put their own time into this forum. I've even answered a few questions myself. The help on this forum is appreciated by the people who seek it..... -
How to display HTML file in forms 6i
please can any one tell me how i can display normal HTML file in forms 6i
this HTML file will be called from help menu.
thanks in advanceIf you're fine with opening html file in a separate browser window, you can use web.show_document.
But if you have to see html inside Form, one of the solution may be use embeded browser. for detail goto http://forms.pjc.bean.over-blog.com/article-1890238.html -
How to form index to the html files
While forming index to .html files it is giving the error.
Error:javax.servlet.ServletException: Servlet execution threw an exception
root cause
java.lang.NoSuchMethodError: org.apache.lucene.document.Field.<init>(Ljava/lang/String;Ljava/lang/String;Lorg/apache/lucene/document/Field$Store;Lorg/apache/lucene/document/Field$Index;)V
sample.dw.paper.lucene.index.IndexManager.addDocument(IndexManager.java:78)
sample.dw.paper.lucene.index.IndexManager.createIndex(IndexManager.java:56)
sample.dw.paper.lucene.search.SearchManager.search(SearchManager.java:45)
sample.dw.paper.lucene.servlet.SearchController.doPost(SearchController.java:29)
sample.dw.paper.lucene.servlet.SearchController.doGet(SearchController.java:38)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.15 logs.
It is giing the error like this . I alredy palce the jar fiels of Org.apache.lucene.While forming index to .html files it is giving the error.
Error:javax.servlet.ServletException: Servlet execution threw an exception
root cause
java.lang.NoSuchMethodError: org.apache.lucene.document.Field.<init>(Ljava/lang/String;Ljava/lang/String;Lorg/apache/lucene/document/Field$Store;Lorg/apache/lucene/document/Field$Index;)V
sample.dw.paper.lucene.index.IndexManager.addDocument(IndexManager.java:78)
sample.dw.paper.lucene.index.IndexManager.createIndex(IndexManager.java:56)
sample.dw.paper.lucene.search.SearchManager.search(SearchManager.java:45)
sample.dw.paper.lucene.servlet.SearchController.doPost(SearchController.java:29)
sample.dw.paper.lucene.servlet.SearchController.doGet(SearchController.java:38)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.15 logs.
It is giing the error like this . I alredy palce the jar fiels of Org.apache.lucene. -
Regular Expressions inside html file
i'm doing some report genearting tool. the template file is in the form of a html file. and i need to add some values from a database to the file in to some specific places which are marked by spcial tags defined by me.
any way thats not the issue. i read the whole html to a string and then i want to check for those tags.
can anyone just tell me what is regular expession for searching this tag.
(Only one occurance of a tag of specific type is there in the file )
this is the tag <!--data><!-->
thanks in advanceprivate String html = "";
private StringBuffer sb;
public generateReportUser() {
try {
BufferedReader fileIn = new BufferedReader(new FileReader("E:\\BCSProj\\templates\\tmpUserReport.htm"));
String s;
while ((s = fileIn.readLine()) != null) {
// html += s;
html += s + "\n"; //this might be better
} catch (Exception e) {
e.printStackTrace();
System.out.println(html);
fileIn.close();
Pattern p = Pattern.compile("(<!--data>)(<!-->)");
Matcher m = p.matcher(html);
sb = new StringBuffer();
while (m.find){
// "The Data" part can be dynamic
m.appendReplacement(sb, m.group(1) + "The Data" + m.group(2));
// m.appendReplacement(sb, "The Data"); //simple replacement
m.appendTail(sb);
System.out.println(new String(sb));
/* They are quite nonsense
//check the mathes found this is always false for me
System.out.println(m.matches());
//just checking parting the string
if (m.matches()) {
int i = m.groupCount();
for (int j=0;j<i;j++) {
System.out.println(m.group(j+1));
System.out.println("***********");
sb = new StringBuffer(html.trim());
} -
Saving textpane wrapped in htmleditorkit to an html file
Hey,
Do any of you people know what I am doing wrong with the following code? It will not take the typed text, convert it to html code, and save it as an html file. The file saves properly, but it is just blank w/ no text and such.
please help
else if (mi == save)
JFileChooser chooser = new JFileChooser();
int result = chooser.showSaveDialog(this);
if (result == JFileChooser.CANCEL_OPTION)
return;
else
try
File loadFile = chooser.getSelectedFile();
OutputStream out = new FileOutputStream(loadFile);
htmlkit.write(out, htmldoc, 0, htmldoc.getLength());
out.close();
catch (Exception ex)
}Granted this is just a snippet of your code, but while you're talking about 'it' not taking the 'typed' text I had in my mind your keying in text in a JEditorPane or JTextPane. But it seems that you mean 'typed' into the file you're reading in.
Also, what is htmlkit ... I can't locate any such class in the 1.4.2 API ... am I missing it?
So, it sounds like you want to take a text file, read it in, then write it out as an html file. Am I right? In that case, if htmlkit is your own class, post the code for it.
I don't know if you'd want to try this, but it's any easy matter to write text to a JEditorPane or JTextPane with an attached EditorKet and write it out from there with code like this:
FileWriter fw = new FileWriter( loadFile );
fw.write( jtp.getText(), 0, jtp.getText().length() ); // jtp is the JTextPane
fw.close(); -
Question about HTML files using TextEdit
First off, I wanted to ask if this is the proper place to post a question about HTML/XHTML. I couldn't really find anywhere else that seemed to fit better, but please point me in the right direction if this is not the place. Thanks.
Moving on -- here's my question:
I'm having trouble with working with HTML files in TextEdit. I'm on a Mac, using TextEdit as my HTML editor (I can not afford one of these other HTML editors, and I like using a simple text editor like TextEdit for HTML). Here's my problem: I open a new rich text document in TextEdit and write my HTML and then choose File>Save As and choose "HTML" under the File Format drop-down box. Having saved this file as an HTML file, I then open Safari and choose File>Open File and select my HTML file; however, when I do this, my web page's text does not appear in the browser window. Instead, the HTML code itself appears in the browser window, as if the browser was not interpreting it as HTML and converting it. The same problem happens when saving the file as a .htm file using Microsoft Word for Mac.
So, as another solution (at the suggestion of a helpful poster in a previous thread), I tried creating a plain text file in TextEdit (instead of a rich text file like before). Now, in TextEdit there is no option for saving plain text files as HTML files, so I simply save it as a Unicode-8 format and then find the file in Finder and change the extension to .htm myself (I've tried .html as well). This, fortunately enough, actually works! When I open the file in Safari I get to see my web page as expected. However, the first time I quit out of the application TextEdit and then try to reopen my .htm file in TextEdit, I no longer can see my HTML code. Instead, TextEdit shows me the actual web page text that I would expect to see when I open the file in a browser, and my HMTL code is lost.
Can someone please help me here? There has to be a way to edit HTML in TextEdit without the code disappearing every time you quit out of the application and reopen the HTML file. Any help is greatly, greatly appreciated. Thank you.That's the problem -- once I convert it to plain text there is no longer an HTML option under the Save As drop down menu. The drop down menu's title is Plain Text Encoding instead of File Format and the only options I get are Unicode-8, Unicode-16, Western, Chinese, and so forth. I can save it as an HTML file, but only if the file is rich text, which doesn't work for HTML.
So, I can save it as plain text (.txt) and then go and change the extension myself, and like I said, it works if I do that. I can edit HTML in TextEdit and open the file properly in Safari to view my web page. The problem is (I went over all this in my first post) that, after that, if I exit TextEdit and reopen it, my document is no longer HTML code -- it is now simply the text of the web site as if I had opened it in a broswer.
What do you suggest I do?
Maybe you are looking for
-
R/3 - Content server problem
Hello, we have a SAP R/3 4.7 server linked to a SAP Content Server 6.2 version. This works ok. The only problem is that the Content Server saves all the documents + metadata from the documents in one big database. (With metadata I mean name of the do
-
All previous saved and uploaded images were able to be posted without excessive, unwanted image descriptions. I typed my OWN comment to go along with my posting, but the image description appeared in the box instead. I tried posting ONLY the image, b
-
Need a good notebook app for my iPad
Hello all, I'm looking really hard for a notebook app that will allow me to create note folders, manipulate texts, docx files, and excell in the app store. Not seeing anything good. Im currently using notes that come with the iPad. I also have Goo
-
CANNOT Remove Photos--Super Frustrated
I synced an album from my computer to my IPhone, which now I will NEVER do again, and it will NOT remove it. I've gone into ITunes and un-synced the album & YET, still there it is, on my phone. I am extremely annoyed with this. This should not be thi
-
I go to tools and the options and I can't open any of the tabs at the top Eg I go to exceptions and I get a red circle with a line through it.This is the same for all of the options that have exceptions and saved passwords.