How to load an html file in Text Box using script?
Hi,
does anyone know what is the sequence of commands for inserting an html file in a text object, if possible, via vbs?
Unfortunately, I wasn't able to find the Commands and Variables for the text object (aka user object) in the help. Where I can search for them?
Thank you!
Hi def90,
Sorry for the confusion. In that point the help information is not correct. We can only import RTF and ASCII via script but not HTML. We are going to change the help for that.
Greetings
Walter
Similar Messages
-
How to load a client file in a clob using sqlcl
How to load a client file in a clob using sqlcl
You don't "load" jars. If it's on the classpath, you can obtain individual resources from it using various methods on either Class or ClassLoader. Do you mean "how to add a jar to the classpath at runtime"? Can't be done without using a classloader, typically URLClassLoader or a subclass thereof. Why you want to not use the proven method is beyond me. Presumably because you don't understand classloading. In which case, forget it.
-
Hi, I'm a beginner and I need to do a program that display a
tree at the left of the screen and a textfield at the right. I load
the tree's elements from a txt file whit loadVars but how can I
introduce the code from textEnhancements.fla to load an html file
at the begining of the flash movie. This is my code.
var dateVars = new LoadVars();
dateVars.onLoad = function(ok) {
if (ok) {
//** Cargamos la lista de las paginas correspondientes al
concepto
paginas_web = dateVars.pags_web;
lista_conceptos = paginas_web.split("@");
//** Cargamos los titulos correspondientes para cada pagina
paginas_tit = dateVars.pags_titulos;
lista_titulos = paginas_tit.split("@");
//** Convertimos la lista de titulos en los elementos del
arbol a la izquierda
for (i=0; i<=(lista_titulos.length-1); i++) {
arbol_conceptos.addTreeNode(lista_titulos
, lista_conceptos);
// carga arbol y variables
dateVars.load("concepto.txt");
html_contenido.multiline= true;
html_contenido.wordWrap = true;
html_contenido.html = true;
story = new XML();
story.ignoreWhite = true;
story.onLoad = function () {
html_contenido.htmlText = story;
story.load("01pagweb.htm");
Thanks a lot. I'm mexican. =)HTML
support in flash 8 -
Hello,
I'm new with edge animate, but i fell in love with it.
I'd like to know, is it possible to load different html pages dynamically in the main stage in order to avoid the preloader to be load?
I can figure out how to save all the pages of the site, but i can't merge them in a continuous animated browsing experience.
As sample.
I've got a index.html and home.html, how to switch form index to home without having a clear division between the two pages?
I can place all the animations within a file and this will allow me to have a continuous surfing experience but it won't generate specific and google indexable pages within the site.
Example, index.html will generate www.mysite.com, home will generate www.mysite.com/home. How ho switch dinamically between them and integrate them in a unique fading experience?
Thanks in advance for any help. I'm a newby, but i would like to learn.
Fea.Look into using the Loader class to load the swf files. If you want to have it happen in different frames then you can put the code into the different frames.
-
How to display an HTML file in text Area?
I am trying to display an HTML formated file in text area component using Action 3.0. The following script does not generates compiler errors, each function seems to be executed yet the file is not displayed. When trying the same code with myCV.txt and myCV_TA.text = (loader1.data) the text file is displayed OK. Flash MX and actionscript 2.0 had handled that differently but with success???
( myCV_TA is the text area component)
Thanks
var loader1:URLLoader =new URLLoader();
loader1.addEventListener(Event.COMPLETE,displayText);
textload("myCV.html");
function textload(file:String)
loader1.load(new URLRequest(file));
trace("in textload");
function displayText(e:Event)
myCV_TA.htmlText = (loader1.data);
trace("in displaytext");hmm.. never tried to use an .html file like that in flash, what's inside that file? text with images tables and so on? the htmltext property supports only a few HTML tags, maybe it's not working because an unsupported tag has been detected.
-
How to load local html-file into webBrowser tool? [SDK 6.5]
The webbroser tool lets you load an external html by inputting the adress in its "Url"-property.
But how do you load a local html-file that is added to your project? Lets say the path is: Folder1/Subfolder1/Webpage1.html. What would I put in the Url-property to make this work?
While on this subject, what is the support for css and javascript when using locally loaded webpages in the webbrowser?Thanks for the answer Malleswar, but I have now played around with all variations of that code-line that I can think of, but still I can not locate the html-file that is located within the project. Since Im planning to distribute the html-files with the executable (as one file) it should read it directly from wherever the application is installed.
The html-file is included within the project. Solution Explorer -> Solution 'myProject' -> myProject -> Webpage1.html
Which is (as usual) also where the Form1.cs (which contains the webBrowser-component) is located.
Any ideas of how the Uri should be constructed in this case?
Thanks,
Daniel -
How to load a CSF file in indesign cs3 via scripting?
Hi all
How can I load a csf file into indesign from a path?. Once loaded, it is not remaining in dropdown list. Could anyone suggest on this?
Thanks
ThamilOnce loaded, it is not remaining in dropdown list. Could anyone suggest on this?
Try to place the file to the following folder: YourUserFolder\Library\Application Support\Adobe\Color\Settings
(This is for Mac)
How can I load a csf file into indesign from a path?
By script you can do this like so:
var myPath = "~/Desktop/MySettings.csf";
var myFile = new File (myPath);
if (myFile.exists) {
app.colorSettings.cmsSettingsPath = myFile;
else {
alert("File \""+ myPath + "\" can't be found."); -
How to load a XML file into a table using PL/SQL
Hi Guru,
I have a requirement, that i have to create a procedure or a package in PL/SQL to load XML file into a table.
How we can achive this.ODI_NewUser wrote:
Hi Guru,
I have a requirement, that i have to create a procedure or a package in PL/SQL to load XML file into a table.
How we can achive this.
Not a perfectly framed question. How do you want to load the XML file? Hoping you want to parse the xml file and load it into a table you can do this.
This is the xml file
karthick% cat emp_details.xml
<?xml version="1.0"?>
<ROWSET>
<ROW>
<EMPNO>7782</EMPNO>
<ENAME>CLARK</ENAME>
<JOB>MANAGER</JOB>
<MGR>7839</MGR>
<HIREDATE>09-JUN-1981</HIREDATE>
<SAL>2450</SAL>
<COM>0</COM>
<DEPTNO>10</DEPTNO>
</ROW>
<ROW>
<EMPNO>7839</EMPNO>
<ENAME>KING</ENAME>
<JOB>PRESIDENT</JOB>
<HIREDATE>17-NOV-1981</HIREDATE>
<SAL>5000</SAL>
<COM>0</COM>
<DEPTNO>10</DEPTNO>
</ROW>
</ROWSET>
You can write a query like this.
SQL> select *
2 from xmltable
3 (
4 '/ROWSET/ROW' passing xmltype
5 (
6 bfilename('SDAARBORDIRLOG', 'emp_details.xml')
7 , nls_charset_id('AL32UTF8')
8 )
9 columns empno number path 'EMPNO'
10 , ename varchar2(6) path 'ENAME'
11 , job varchar2(9) path 'JOB'
12 , mgr number path 'MGR'
13 , hiredate varchar2(20)path 'HIREDATE'
14 , sal number path 'SAL'
15 , com number path 'COM'
16 , deptno number path 'DEPTNO'
17 );
EMPNO ENAME JOB MGR HIREDATE SAL COM DEPTNO
7782 CLARK MANAGER 7839 09-JUN-1981 2450 0 10
7839 KING PRESIDENT 17-NOV-1981 5000 0 10
SQL> -
How to print a HTML file in browser look using DocPrintJob
Hello guys,
Does anyone know how to print HTML output/file into browser look?
I'm using DocPrintJob and the DocFlavor set to DocFlavor.INPUT_STREAM.AUTOSENSE.
posted below is my code :
public class BasicPrint {
public static void main(String[] args) {
try {
// Open the image file
String testData = "C:/new_page_1.html";
InputStream is = new BufferedInputStream(new FileInputStream(testData));
DocFlavor flavor = DocFlavor.INPUT_STREAM.AUTOSENSE;
// Find the default service
PrintService service = PrintServiceLookup.lookupDefaultPrintService();
System.out.println(service);
// Create the print job
DocPrintJob job = service.createPrintJob();
Doc doc= new SimpleDoc(is, flavor, null);
// Monitor print job events; for the implementation of PrintJobWatcher,
// see e702 Determining When a Print Job Has Finished
PrintJobWatcher pjDone = new PrintJobWatcher(job);
// Print it
job.print(doc, null);
// Wait for the print job to be done
pjDone.waitForDone();
// It is now safe to close the input stream
is.close();
} catch (PrintException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
static class PrintJobWatcher {
// true iff it is safe to close the print job's input stream
boolean done = false;
PrintJobWatcher(DocPrintJob job) {
// Add a listener to the print job
job.addPrintJobListener(new PrintJobAdapter() {
public void printJobCanceled(PrintJobEvent pje) {
allDone();
public void printJobCompleted(PrintJobEvent pje) {
allDone();
public void printJobFailed(PrintJobEvent pje) {
allDone();
public void printJobNoMoreEvents(PrintJobEvent pje) {
allDone();
void allDone() {
synchronized (PrintJobWatcher.this) {
done = true;
PrintJobWatcher.this.notify();
public synchronized void waitForDone() {
try {
while (!done) {
wait();
} catch (InterruptedException e) {
}the printed ouput for this code will be look like this
<html>
<body>
<div style="page-break-after:'always';
background-color:#EEEEEE;
width:400;
height:70">
testPrint</div>
ABCDEFGHIJK<p>
</p>
</body>
</html>however, the output that i want is the HTML in browser look not HTML code itself.
i've tried to change the DocFlavor into any TEXT_HTML type but it gives error:
sun.print.PrintJobFlavorException: invalid flavor if you guys has any idea or solution, can you share with me... already search in Google but still not found any solution
Thanks in advanced.hi,
do the following
URL url = null;
try
url = new URL("http://www.xyz.com");
catch (MalformedURLException e)
System.out.println("URL not correct " + e.toString());
if (url != null)
getAppletContext().showDocument(url,"_blank"); //shows the page in a new unnamed top level browser instance.
}hope that helpz
cheerz
ynkrish -
How to Load a Flat File into BW-BPS Using a Web Browser
Hello,
I'm using the upload functionality described in the how to guide.
When we want to have this functionality available for 12 different Planning levels. Do I have to create the Web Interface (as described in the how to guide) for each Planning Level separately, or can i pass a parameter in the URL (wenn calling the File Upload functionality) to determine which Planning level and Function it is.
This pice of coding i want to have a bit more flexible
*Execute planning function
CALL FUNCTION 'API_SEMBPS_FUNCTION_EXECUTE'
EXPORTING
i_area = 'ZIPM0001' " <<<< ADJUST
i_plevel = 'ZCAPB006' " <<<< ADJUST
i_package = '0-ADHOC' " <<<< ADJUST
i_function = 'ZEX00001' " <<<< ADJUST
i_param = 'Z0000001' " <<<< ADJUST
IMPORTING
e_subrc = l_subrc
TABLES
etk_return = lt_bapiret.
Does someone have an idea ?
Thank you
DieterHi Dieter,
you should be able to grab the variable value by the following statement (e.g. in this case 'area' is being passed along, works for whatever you want to send) is:
data: l_area type upc_y_area.
l_area = request->get_form_field( 'area' ).
in this case the calling URL looks like:
<normal URL>?area=example_area
example_area will then contain your value.
Then depending on the value execute your different SEM functions
Note that if you want to load different flatfile formats, more has to change in the functions as indicated in the white paper,
Hope it helps,
Regards,
MArc
I got it from the following document I found on SAPNet or SDN (forgot..) some time back:
How To Call a BPS Web Interface with Predefined Selections -
How to load a flat file into BW-BPS using Web Browser
Hello, i have a problem with the "How to do Paper". I want to upload a Excel CSV file , but the paper only describes a txt file Uplaod. Does anybody can help me ?Thanks !
You need to parse the line coming in from the flat file...
You can do this with generic types in your flat file structure (string).
Then you loop through the table of strings that is your flat file and parse the string so that it breaks up the line for each comma. There is an ABAP command called: SPLIT - syntax is as follows:
SPLIT dobj AT sep INTO
{ {result1 result2 ...} | {TABLE result_tab} }
[IN {BYTE|CHARACTER} MODE].
Regards,
Zane -
Load a flat file into BW-BPS using SAP GUI
Hi,
We are using BW BPS 3.5 version, i implemented how to guide " How to load a flat file into BW-BPS using SAP GUI" successfully without any errors.
I inlcuded three infoobjects in the text file costelemt, Posting period and amount. the same three infoobjects i inlcuded the file structure in the global data as specified in the how to document
The flat file format is like this
Costelmnt Postingperiod Amount
XXXXX #
XXXXX 1 100
XXXXX 2 800
XXXXX 3 700
XXXXX 4 500
XXXXX 5 300
XXXXX 6 200
XXXXX 7 270
XXXXX 8 120
XXXXX 9 145
XXXXX 10 340
XXXXX 11 147
XXXXX 12 900
I successfully loaded above flat file in to BPS cube and it dispalyed in the layout also.
But users are requesting to load flatfile in the below format
Costelmnt Annual(PP=#) Jan(PP=1) Feb(PP=2) ........................................Dec(PP=12)
XXXXX Blank 100 800 900
Is it possible to load a flat file like this
They wants load a single row instead of 13 rows for each costelement
How to do this. Please suggest me if anybody accorss this requirment.
In the infocube we have got only one Info object 0FISCPER3(Posting period) and one 0AMOUNT(Amount)
do we need 13 Infobjects for each posting period and amount.
Is there any possiblity we can implement any user exit which we use in BEX Quer's
Please share your ideas on this.
Thanks in advance
Best regards
SSHi,
There are 2 ways to do this.
One is to change the structure of the cube to have 12 key figures for the 12 posting periods.
Another way is to write an ABAP Function Module to fetch the values from each record based on the posting period and store it in the cube for the corresponding characteristic. This way, you dont have to change the structure of the cube.
If this particular cube is not used anywhere else, I would suggest to change the structure itself.
Hope this helps. -
How to put an HTML file into JEditorPane
Hi
I am doing an aplication on swing.But I don't know how to add a html file to the JeditorPane keeping the html file on the source code. i.e my html file is in my source code.Then how to add this source code to Jeditor pane.
Thanks
Srikanthi srikkant,
ur html code is inside the source code..? are you working on applets..? if ur html file can be read as a file and the file stream can converted to a string and put into a Jeditor pane using the setText() method. for editing HTML text a editor called javax.swing.text.html.HTMLEditorKit can be used.
Refer to JAVA API for further clarifiactions and examples. -
UIwebview load local html file problem
Hi,
load local html file into UIwebview the TD cell data can't display, as attached the "2817 MODEL" column data lost on screen:
The local html file souce as:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<title>IBM z196 zEnterprise 2817 Mainframe Reference - Technology News</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta name="robots" content="index,follow">
<meta name="Author" content="Hesh Wiener">
<meta name="Formatter" content="Heshomatic 6.2">
<STYLE TYPE="text/css">
<!--
BODY
font-family: Arial, Helvetica, sans-serif;
font-size: 9pt;
A:link{color:white}
A:visited{color:yellow}
-->
</STYLE>
</head>
<body>
<h2>
IBM Mainframes:<br>
IBM z196 zEnterprise 2817 Mainframe Reference
</h2>
<table border="1" style="border-collapse:collapse;" summary="2094 series economic specs">
<tr>
<th rowspan="2">
2817 <br>
MODEL
</th>
<th rowspan="2">
FIRST<br>
AVAIL
</th>
<th rowspan="2">EST INIT<br>
US PRICE </th>
<th rowspan="2"> EST INIT <br>
MIN US MAINT</th>
<th rowspan="2">
APPROX MIPS
</th>
<th rowspan="2">
SW PRICE<br>
MSU
</th>
<th>
LSPR RELATIVE PERFORMANCE
</th>
</tr>
<tr>
<th>
MI z/OS 1.11
</th>
</tr>
<tr>
<td>2817-401</td>
<td>3Q 10</td>
<td>$975,000</td>
<td>$6,280</td>
<td>240</td>
<td>30</td>
<td>0.43</td>
</tr>
<tr>
<td>2817-402</td>
<td>3Q 10</td>
<td>$1,187,000</td>
<td>$6,729</td>
<td>459</td>
<td>58</td>
<td>0.82</td>
</tr>
<tr>
<td>2817-501</td>
<td>3Q 10</td>
<td>$1,244,000</td>
<td>$7,524</td>
<td>588</td>
<td>74</td>
<td>1.05</td>
</tr>
<tr>
<td>2817-403</td>
<td>3Q 10</td>
<td>$1,385,000</td>
<td>$8,346</td>
<td>672</td>
<td>85</td>
<td>1.20</td>
</tr>
<tr>
<td>2817-601</td>
<td>3Q 10</td>
<td>$1,423,000</td>
<td>$9,434</td>
<td>768</td>
<td>97</td>
<td>1.37</td>
</tr>
<tr>
<td>2817-404</td>
<td>3Q 10</td>
<td>$1,570,000</td>
<td>$10,665</td>
<td>879</td>
<td>110</td>
<td>1.57</td>
</tr>
<tr>
<td>2817-405</td>
<td>3Q 10</td>
</html>
Please help. thanks
Regards,
HCadd colspan into td tag and try it got same problem, I just discovered the td data is numeric it can't display, change td data to alphanumeric it workable to normal display.
below td tag data is unworkable:
<td>2817-401</td>
<td>2817401</td>
change to below is workable:
<td>2817*401</td>
<td>281740A</td>
<td>2817-401A</td> -
How to load a Jar file in the class path?
How to load a Jar file which contains class files, images, etc.. in the classpath without using URLClassLoader.
You don't "load" jars. If it's on the classpath, you can obtain individual resources from it using various methods on either Class or ClassLoader. Do you mean "how to add a jar to the classpath at runtime"? Can't be done without using a classloader, typically URLClassLoader or a subclass thereof. Why you want to not use the proven method is beyond me. Presumably because you don't understand classloading. In which case, forget it.
Maybe you are looking for
-
Screen Not Working Correctly- Horizontal Lines
For the past few weeks, when I open my computer, sometimes the bottom half of my screen is just a lot of lines or is not working correctly. Sometimes if I tilt the screen enough, it will go away. But I don't know what to do!
-
Regarding TABLE node -- Footer Area in smartform
Hi Friends, This is regarding smartform. I have created TABLE node in MAIN window. As long as data exists in internal table my smartform is working fine. I mean it is displaying all the items and followed by TABLE FOOTER text. Assume if no data exist
-
Location of java servlet (not jsp) deployed on Java Stack
Hello, Why this forum? this post is related to the way of calling a java servlet deployed on the java stack, so it's related to the structure of the stack than to real java programming. Usually, I develop JSP servlets which are easily called either w
-
Trouble Updating ITunes v 10.6.3 to Windows Version 5.1 Running as XP
I am running Windows Version 5.1 (runs as XP) and have been attempting to upgrade to ITunes version 10.6.3. Each time I download the update file from ITunes, it seems to download alright, then starts to install and then gives the following error mes
-
Name of the table to find Tax code for different country....?
Hi,, Can some help me to know the tax code for all the country(DE,CA,FR,GB,SE)...? thanks, praveen