How do I Read a .js File from Mime Repository
How can i read a .js file from Mime Repository,
Mime Respository is for Re-Usability
Since i need to call a function from a .js file again and again, i keep my .js file in Mime Repository so that i can call the function anywhere by calling the .js File.
I have kept my .js File in a Mime Repository but when iam calling the function from Portal the function is not being Triggered, Can i know why it is behaving like that.
Not required right now.Not resolved
Similar Messages
-
WAD 7.0 Load html - file from MIME-repository
Hi guys,
I have the following problem:
I have implemented web application with WAD 7.0. Now I have to put a button in it. If I press this button new window should be opened with a file (html - file) which is stored in MIME Repository. With WAD 3.5 it was easy I could use javascript function: window.open().
window.open("/sap/bw/Mime/Customer/.../file.htm","NewWindow","width=750,height=700,left=100,top=100");
Now this solution doesn't work anymore. I tryed to change the path but without success.
I tried with command wizard but I was not successfull too. Maybe you have some idees how can I deal with this problem.
Regards
Erwin
Edited by: Erwin Buda on Dec 3, 2008 9:37 AMYes I tried it at first with Script Item but it did not work. I am not sure how should I change the path because of the portal:
"/sap/bw/Mime/Customer/.../file.htm" - this path is not working anymore
Another option that you mentioned I do not want to use. I have about 20 different html files in MIME repository so I would have to create 20 different web application. I do not like this solution.
Regards
Erwin -
How to read a text file from a Jar file
Hi
How can I read a text file from a Jar file?
Thanx in advance..thanx
helloWorld it works.damn, I didn't remove it fast enough. Even if it is urgent, it is best not to mention it, telling people just makes them take longer. -
Read a text file from DB directly (don't use PLSQL).
how can I Read a text file from DB directly (don’t use PLSQL). ?
If there is a known structure, you could use External Table access and query that "file" as any table.
Nicolas. -
How do I move a pdf file from my download area into adobe reader
How do I move a pdf file from my download area into adobe reader
Hi!
Adobe Reader automatically lists all the PDFs on your device in it's file browser. You can toggle between the "All PDFs" view and "Folder View" in the "Documents" tab of the file browser.
Thanks
Adobe Reader Team -
my somewhat old imac osx 10.5.8 with iphoto '08 will not read my RAW files from my new Nikon D800 camera - a new model on the market( 5 months or so). How can I get iphoto to read my RAW files?
iPhoto 08 would not read RAW files from that new a camera. You need to upgrade so you can get more up-to-date version of OS X and iPhoto. Another possiblity is see if iPhoto 11 will run on 10.5.8, if so you should update. You can also attempt to run Software Update and see if it finds a newer release of iPhoto 08 that supports newer RAW formats.
-
How to read a PDF file from server
Hi All,
I am strucked while creating new file instance .
Here i know the URL.
How to create the File instance by using this URL.
I tried the following way:
URI uri = url.toURI();
File f = new File(uri);
Here i got the following exception :
<code>
Exception in thread "main" java.lang.IllegalArgumentException: URI scheme is not "file"
</code>
Can any one help me?
Thanks in advance......Can any one help me how can i down load a file
from server by using URL?RTFAPI. Url.openStream(). -
How to Read a CAB File from JAVA?
Hi,
Anyone knows how to read a CAB File from java. I need to read a property file of txt file that is packaged in CAB file & then based on that, I have to do processing. Is there anyway to do it.
I had tried using java.util.zip.ZipFile Class, but it does work for JAR, but not for CAB.
siva.Perhaps there's something in the Cabinet SDK that will help:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncabsdk/html/cabdl.asp -
How to read time capsule files from iphone
any one knows how to do this?
i have used in the past an application call Soonr to access the mac but haven't tried if it works with time capsule.
thanks for any thoughts/suggestions...Hi Harish,
U can read all the files from a App's dir with this FM.
CONCATENATE '' '.'
INTO LV_FILE1.
*FM lists out the files present in App Server directory matching with given pattern.
CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
EXPORTING
DIR_NAME = DIR_NAME
FILE_MASK = LV_FILE1
IMPORTING
DIR_NAME =
FILE_COUNTER = FLE_CNT
ERROR_COUNTER =
TABLES
DIR_LIST = IT_DIRTAB
EXCEPTIONS
INVALID_EPS_SUBDIR = 1
SAPGPARAM_FAILED = 2
BUILD_DIRECTORY_FAILED = 3
NO_AUTHORIZATION = 4
READ_DIRECTORY_FAILED = 5
TOO_MANY_READ_ERRORS = 6
EMPTY_DIRECTORY_LIST = 7
OTHERS = 8
Regards,
KC -
How to make SSIS packages automatically read the input file from a path?
Currently I am using a SSIS package to read data from a .dat file and load it into SQL Server tables.
I am placing the input .dat file on the desktop. In the connection manager -> Browse option, I am pointing this file to create connection.
The file naming convention is like - aSNAP_Data_20140926_P-2014-09-26_07.02.36
However, I need the SSIS package to automatically read the input file from a folder which is located in a remote server. This folder has lots of files where input files are added on a daily basis with the date value in the file name as mentioned above.
I want to schedule the SSIS package to run daily and take the latest file in the folder based on the date.
Please let me know how to do it. Any help would be highly appreciated.....
Thanks in advance.Hi SQL_SSIS_Dev,
According to your description, you want to get the latest file from a path to a SQL Server table. After testing the issue in my environment, we can refer to the following steps to achieve your requirement:
Create two variables, VarFolderPath stores the folder path in which our files exist, VarFileName hold the value of most recent File Name.
Drag a Script Task from SSIS Toolbox to Control Flow Pane, then select “User::VarFolderPath” as ReadOnlyVariables, select “User::VarFileName” as ReadWriteVariables.
Then Edit Script with the C# code below:
Add “using System.IO;” into namespace.
Add the code below under Main function:
var directory= new DirectoryInfo(Dts.Variables["User::VarFolderPath"].Value.ToString());
FileInfo[] files = directory.GetFiles();
DateTime lastModified = DateTime.MinValue;
foreach (FileInfo file in files)
if (file.LastWriteTime > lastModified)
lastModified = file.LastWriteTime;
Dts.Variables["User::VarFileName"].Value = file.ToString();
Drag a Data Flow Task to Control Flow Pane and connect to Script Task.
In the Data Flow Task, drag a Flat File Source with a file in the source folder as all the files have same structure as the File name.
Add the property below the Flat File Connection Manger expression:
Property: ConnectionString Expression: @[User::VarFolderPath] +"\\"+ @[User::VarFileName]
Drag an OLE DB Destination that connect to the Flat File Source, then configure a table to store the data.
The following screenshot is for your reference:
If there are any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
How to read an audio file from the disk and play it?
Do you know who to read an audio file from the hard disk and play it. It's for an application and not an applet. I tried with the Applet.newAudioClip(URL url) thing, but I keep getting a MalformedURLException.
And is there a way to get the path of the file you are using? Currently I'm doing this:
File file = new file("randomname");
string = file.getAbsolutePath();
file.delete();
I'm sure there's a better way. And this is not for an applet, just a normal app.Below is a class that should be of use to you.
package com.sound;
import java.io.File;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.Clip;
import javax.sound.sampled.DataLine;
public class SoundPlayer implements Runnable {
String filename;
public SoundPlayer(String filename){
this.filename = filename;
Thread t = new Thread(this);
t.start();
}//SoundPlayer constructor
public void run(){
playSound();
}//run method
public boolean playSound(){
try {
File file = new File(filename);
AudioInputStream stream = AudioSystem.getAudioInputStream(file);
AudioFormat format = stream.getFormat();
DataLine.Info info = new DataLine.Info(Clip.class, format);
Clip clip = (Clip)AudioSystem.getLine(info);
clip.open(stream);
clip.start();
while (clip.isRunning()) {
Thread.sleep(100);
clip.close();
catch (Exception e) {
System.err.println("Error in run in SoundPlayer");
return false;
return true;
}//playSound() method
}//Class SoundPlayer -
How can I read an excel file .xls from an forms 6i
Hi
I have forms6i and webutil don t work with this version, can I read an excel file from forms6i.
Thank uHi hosoriol,
You can refer an excel as an external table first using the steps below and then you can start reading from it.
If you want to update the excel file then create an view and create instead of triggers for it.
Steps
h3. 1.[Create an external table for the excel file |http://www.adp-gmbh.ch/ora/misc/ext_table.html|Click here to view detailed description]
h4. 1. Create a directory in Oracle where you have kept the xls file
create or replace directory ext_dir as '/home/rene/ext_dir';h4. 2. grant read, write on directory ext_dir to scott;
h4. 3. creating the external table
create table ext_table_csv (
i Number,
n Varchar2(20),
m Varchar2(20)
organization external (
type oracle_loader
default directory ext_dir
access parameters (
records delimited by newline
fields terminated by ','
missing field values are null
location ('file.csv')
reject limit unlimited;
Note_
If you want to update the excel file then create a view and then create the instead of triggers to do the update, delete or insert.[Creating views on external tables | http://www.dba-oracle.com/oracle_news/2005_9_1_updating_external_tables.htm]
h3. 2. Use the data block wizard and connect to the corresponding schema and create a database block.
Kindly click Correct or Helpful if it helps Thanks :-) -
How can I checkout an existing file from CVS without going through the wiz
How can I checkout an existing file from CVS, that is not already in my local jdev, without going through the wizard and checkingout everything?
You can't. AI doesn't produce .PLT files.
-
How can I transfer a sound file from my "Voice Memos" app on my iPhone to my iPad?
How can I transfer a sound file from my "Voice Memos" app on my iPhone to my iPad?
In iTunes with your iPhone connected, click on the iPhone device, select the Apps tab, scroll down to the File Sharing section and pick an app that plays Quicktimes ("Files Connect" works in this example, but I'm open to suggestions of better apps for playing transferred Quicktimes) and drag your Quicktime from Finder to the Documents pane for the File Sharing app. Once the file transfer is complete, go to the app on your iPhone to play the Quicktime.
-
Help reading a .txt file from the hard drive....
Hi guys,
Ok... I need to know how to read a .txt file from the hard drive... I have an example on how to read from a disk, but I don't have a disk drive. I could be confusing terminology, but I don't think I am. Here is the code I have for reading from a disk.. please let me know how I should change it to read from a hard drive.
Also, when the error pops up, it says that it can't read another .txt file that is not specified in the code... any ideas how that is occuring? Please advise.
import java.io.*;
public class TEST {
public static void main(String args[]) throws Exception{
FileReader fr = new FileReader("customer.txt");
BufferedReader bfr = new BufferedReader (fr);
String s;
while ((s=bfr.readLine())!= null){
System.out.println (s);
fr.close();
}Ok... I need to know how to read a .txt file from the
hard drive... I have an example on how to read from a
disk, but I don't have a disk drive. I could be
confusing terminology, but I don't think I am. Here
is the code I have for reading from a disk.. please
let me know how I should change it to read from a
hard drive.The code will be the same, regardless of where the file is located. It's just the filename that will be different.
Also, when the error pops up, it says that it can't
read another .txt file that is not specified in the
code... any ideas how that is occuring? Please
advise.Probably becuase the class file (compiled version of the source code) is a different version to the source code, i.e. the source code hasn't been recompiled since the source code was changed.
How does this relate to EJBs?
Maybe you are looking for
-
Cannot add ruler guides in InDesign CS4. What am I doing wrong?
I'm trying out InDesign CS4 on a trial basis. I have the Web Design CS3 suite and have no problem making ruler guides by clicking and dragging from a ruler. I'm wondering if there is a conflict between CS3 and CS4 products. I can't select the Selecti
-
Volume differences between songs
Okay. My mp3 files in iTUNES play fine. I have the Sound Check checked and they play at the same volume. The problem I have is when I load the songs to my iPOD, the volumes are not the same. Some songs are softer than others. And just using the volum
-
I have a new MacBook Pro Retina 15" with 16GB of RAM and 1TB of flash storage. I have it connected to a Thunderbolt display and then two disks connected in a daisy chain from the monitor. 1) LaCie 2Big 8TB as a miirored set 2) LaCie LittleBig Disk
-
Using Pen tool to create mask _ How do you get the points to stop connecting together?
I've masked the sky over the roof of a home. Started on the left side of the photo and moved over the house detailing it to the right side of the photo. When I try to create the mask by clicking Command /enter the points on the left and right side of
-
Will i lose my current app settings if i upgrade my ios?
Will I lose my current app settings if I upgrade my iOS from 3.0.1 to 4.3.3? Such as, will I lose my contacts, email settings and all my levels in Angry Birds (and other obviously very important items like that)?