E-mailing report changes current directory
When I e-mail report the current directory is changed and when
there is Image in the report it can't be found.
And the next time I run the report and DESTYPE=File, the file is saved at
c:\Program Files\Common Files\System\Mapi\1033\NT
change your registry key entry which says
REPORTS60_TMP to which ever dir you want
Similar Messages
-
Hello community.
I use javax.swing.JFileChooser class. After press open button, JFileChooser change current directory. Why?
I was not find in documentation about changing curret directiry by JFileChooser. Take me please reference to doc for understanding this effect.
Thank you.This is my code:
private void jFileChooser1ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
// label1.setText("3: "+evt.);
// label1.setText("3: ");
label1.setText(evt.getActionCommand());
System.out.println(evt.getActionCommand());
if (evt.getActionCommand().startsWith("Approve")){
label1.setText("You push Open key");
System.out.println(jFileChooser1.getCurrentDirectory().getPath());
label1.setText(jFileChooser1.getCurrentDirectory().getPath());
}else{
label1.setText("You push Close key");
I not add method for change current directory. But after press on open button javax.swing.JFileChooser class was change current directory. -
Changing current directory under SQL plus
Can someone please tell me how I change the current directory under SQL Plus? I'm trying to run the nisetup.sql for XMLNEWS application in Oracle's sample application. I tried @"D:\Downloaded Files\XMLNEWSDIR\nisetup.sql", but, that doesn't work.
Can anyone help me on this?
TIA,
A> I do not know of any way to change the default directory once SQL*Plus is running.
One very late response, but... I have been using the Windows GUI version of SQl Plus (SqlplusW.exe) for years and I change the default directory all the time. Here is how:
Use the File, Open pull-down menu dialog, and navigate to the folder you want. Then, select one of the files in that directory. I keep a file named 0~A.sql in each folder where I use SQL Plus for that purpose. It contains only comments, something like:
--SET ECHO ONOnce I open such a file, all the START commands run scripts in that folder.
Now... since the Windows version of SQL Plus has been deprecated, how in the world can I do the same thing in the DOS command window version of SQL Plus?
Why in the world doesn't Oracle provide such an obviously useful feature??? -
E-mailing report attempts to write temp file in current directory
When e-mailing a report from the previewer, Reports 6.0 attempts to write a temporary file in the current NT directory. This file is the actual e-mail attachment, in this case a PDF file.
Unfortunately the current directory is where the application resides, and therefore users do not have write permission. Is there any way to re-direct where the temporary file is created (i.e. a local drive or the Windows temp directory)?
Thanks in advance.change your registry key entry which says
REPORTS60_TMP to which ever dir you want -
JFileChooser: changing file type resets current directory
I create a JFileChooser with multiple file types and set the current directory. It comes up with the first file type and the current directory. If I select another file type, the files shown are not in the current directory, which I set -- they are files in the application default directory. Is there a way to keep my current directory, while changing the file type? Or is this a feature?
Are you talking about your own CDs imported to iTunes or are you talking about songs purchased from the iTunes Music Store (iTMS)? If the latter, the iTMS, you do not get any choice in the format downloaded. You get protected AAC files and that is all.
If you want to change how you import files, go to the iTunes preferences for importing and choose the format you want to use from now on.
Patrick -
How do you change the directory of system exec after it has ran once in the current vi
Hi all,
Attached is the sub vi that i am running in my main application. I run it twice and change the directory of the file to run. It appears that after i run this vi that i cant change the directory and it tries to run a file from the incorrect directory. Does anyone have any advice on how to fix this issue?
Attachments:
system execute command.vi 41 KBmatt198717 wrote:
Hi all,
Attached is the sub vi that i am running in my main application. I run it twice and change the directory of the file to run. It appears that after i run this vi that i cant change the directory and it tries to run a file from the incorrect directory. Does anyone have any advice on how to fix this issue?
I am not sure, if I understand exactly the problem, but do you really need the cmd /c start some_executable.exe. This executes a command prompt window, which executes another command prompt window, where your executable runs.
You can just use cmd /c some_executable.exe some_parameters_if_needed, and you don't need any quotation marks, even if the executable has command line parameters. I you want that the executable runs in particular directory, wire this path to the 'working directory' of System Exec.vi -
How can I make an applet look to the current directory to read a txt file in?
I am using a File class passing only the file name as the contructor but forte still looks in "C:\forte_jdk\forte4j\bin\Events.txt" which is not my current directory for the project.
If leave it and ftp this applet to my web site I get an IOException.I always find visual aids helpful. See below for screenshots & discriptions.
01. The Basics
When you create a new site & go into design view (in the example below it's the Home page), you'll see the following.
The white box is your page.
The grey box outside of that is your browser area.
The black & white checkered area is the Adobe Muse CC application chrome.
02. Add Box
Draw / Add your rectangle or text frame (text tool). I drew a rectangle, gave it a fill color of blue & turned the stroke from 1 to 0.
03. Extend & Snap to Browser Edge (Left)
Click, hold and drag your mouse on the center adorner (adorner is the little squares that you can grab to resize your rectangle) until you resize your rectangle to the browser edge (the dark grey area) until you see a red line. This means you've 'snapped' one of the rectangle's edge to the browser edge.
04. Extend & Snap to Browser Edge (Right)
Repeat the process except do this for the right edge. In truth, it doesn't matter in which order you resize your rectangle to snap to the browser edges. The key thing is to be sure to do this for both sides of the rectangle & snap it to the browser edge (see the red line).
05. You're done! Preview.
06. Bonus!
Once again, you can make rectangles or text frames 100% width, BUT you can't do this with placed images.
However, you can do this with a rectangle or text frame. Then set the Fill of either the rectangle & text frame to be an Image & set the Fitting to 'Scale to Fill.'
(see below for example - I used a rectangle & changed it's Fill property)
Now when I preview, the image is 100% width. In truth, it's a 100% width rectangle with a fill of an image. -
How do I print multiple reports to a directory at the same time
I'm trying to print a list of monthly reports to a directory by using the code below. The first part of the code runs a query to select Business Units that will receive the reports. The idea is to cycle through this list and print one report for each
Business Unit. These vary from month to month. I create a record set from that query. Where I'm getting stuck is in trying to pass the Business unit selected in the first query to the query that runs the final report. I end up getting multiple
reports with different titles but the content is the same, so I'm doing something incorrect. Here is the code. Any help would be greatly appreciated. QryNewMOR runs the report.
Private Sub Cmd012815_Click()
Dim qdf As DAO.QueryDef
Dim strSQL As String
Dim strPathName As String
Dim blRet As Boolean
Dim rs As DAO.Recordset
Dim stDocName As String
Dim strSavedSQL As String
Dim strBus As String
Dim strExec As String
If Me.Dirty Then Me.Dirty = False
stDocName = "RptNewMOR"
strSQL = "SELECT [Business Unit Long],[Responsible Executive] FROM tblRespExec WHERE (((tblRespExec.SelectedPrint)=True));"
Set rs = CurrentDb.OpenRecordset(strSQL)
If rs.RecordCount < 1 Then
MsgBox "No Bus lines or Execs selected", vbCritical, "Error"
Exit Sub
End If
'CreateFolder "C:\Test MOR"
'store the current SQL
Set qdf = CurrentDb.QueryDefs("QryNewMOR")
strSavedSQL = qdf.SQL
qdf.Close
Set qdf = Nothing
Do
strBus = rs![Business Unit Long]
strExec = rs![Responsible Executive]
Set qdf = CurrentDb.QueryDefs("QryNewMOR")
strSQL = strSQL + Left(strSavedSQL, InStr(strSavedSQL, ";") - 1) & " and (qryNewMOR.[Draft Distribution List]=" & rs![Responsible Executive] & ");"
strSQL = strSavedSQL
qdf.SQL = strSQL
Debug.Print strSQL
qdf.Close
Set qdf = Nothing
strPathName = "C:\Test MOR\" & rs![Business Unit Long] & ".pdf"
DoCmd.OutputTo acOutputReport, stDocName, acFormatPDF, strPathName
rs.MoveNext
Loop Until rs.EOF
rs.Close
Set rs = Nothing
'restore the SQL
Set qdf = CurrentDb.QueryDefs("QryNewMOR")
qdf.SQL = strSavedSQL
qdf.Close
Set qdf = Nothing
End Sub
Dean J. WaringI'm trying to figure out how to combine the two and am obviously not succeeding. Do you have a suggestion on how to make that work?
Hi Dean,
I am not completely sure of what you want. I suppose you want to modify the SQL definition of QryNewMOR, and use that modified query for the report?
In that case, and in the line of your program, I would make a QueryDef: QryStdMOR, with the "standard" strSavedSQL (so: strSavedSQL = QryStdMOR), construct strSQL in the same way, and assign this to the SQL definition of QryNewMOR.
Thus, in your code at the very beginning, skip the line strSQL = strSavedSQL.
strSQL = Left(strSavedSQL, InStr(strSavedSQL, ";") - 1) & " and (qryNewMOR.[Draft Distribution List]=""" & rs![Responsible Executive] & """);"
' skip this line: strSQL = strSavedSQL
qdf.SQL = strSQL
Within the loop you should not start with strSQL = strSQL & ...., because strSQL will retain then its value from the previous loop, and increases and increases...
Finally, I have added some double doublequotes around rs![Resposible Executive], because string expressions must be enclosed by double doublequotes (or eventually a single singlequote).
Imb.
strSQL = strSQL + Left(strSavedSQL, InStr(strSavedSQL, ";") - 1) & " and (qryNewMOR.[Draft Distribution List]=" & rs![Responsible Executive] & ");"
strSQL = strSavedSQL
qdf.SQL = strSQL -
How can I change the directory a file is written to?
Hi,
I have an app running through JSP. At one point in the app, a file is written to the current directory. I have installed Tomcat at "C:\Program Files\Apache Tomcat 4.0" but the file is written to "C:\Documents and Settings\Administrator\Start Menu\Programs\Apache Tomcat 4.0" !!!
What gives? Anyone know how I can change this?
I also need to be able to read files from the current directory, so I can't really put them in that dir... I would like to be able to store the files in a dir relative to the webapps/myapp dir...
I searched through the archives for this problem without finding a solution...
Please don't suggest writing the files to an absolute pathname...
Thanks.To store files in a dir relative to web application context (webapps/myApplication/...), I usually use the getRealPath() method of ServletContext object.
For example, if my filepath is "webbapps/MyApplication/MyDir/MyFileName" i do something like this:
String FilePath=getServletContext().getRealPath("MyDir/MyFileName");
File file=new File(FilePath);
This way allows your application to be indipendent from local mappings inwhich it's deployed.
Sorry for my bad english, I hope you know what I mean!!! -
Inventory - Historical load from BF to 0IC_C03 changes current stock qty
Loaded 0IC_C03 from 2LIS_03_BX to create opening balance.
Compressed with "Marker Update" (Unchecked). Ran a report to display opening stock (0TOTALSTOCK).
Report matches perfectly with MMBE in source system.
Next, I loaded historical movements from 2LIS_03_BF. Compressed without "Marker Update" (Checked).
Ran the stock overview report. The stock balances are now changed. Historical movements
should not change current stock positions.
Steps leading upto this issue (ECC/BI 7.0):
1. Loaded data from BX setup to PSA and then to cube using a DTP with the "Initial Non-cumm for Non-cumm" option. Compressed with "Marker Update".
2. Init BF without "Data Transfer" to create my delta pointer and then loaded BF setup table data to the PSA using "Full Repair request". Created 1 request per year based on posting date year.
3. Then pushed data from PSA to cube using "Delta" DTP. Compressed all historical requests WITHOUT "Marker Update" (checkbox ticked).
Any suggestions ? I have some sort of a workaround for now - the BX records in the cube do not contain values for the Material Document Number (MBLNR). I can put a charateristic filter in the query to display only records that have a null value for Mat Doc Number. In that case the report seems to be correct as I am eliminating the records from BF.
Regards,
AshHI,
Are you trying to install something which does not have their corresponding Infoarea, Infoproviders etc..? This might be the reason for those errors.
Also You should use Collect objects automatically.
Regards,
Rahul S -
E-Mail reports failing after upgrading to DPM 2012 R2.
I am trying to follow Mike Jacquet's blog post regarding fixing e-mailed reports after ugprading to DPM 2012 R2. The link is here: http://blogs.technet.com/b/dpm/archive/2013/12/05/attempts-to-schedule-a-mailed-report-in-dpm-2012-fail-with-reporting-services-server-cannot-connect-to-the-dpm-database.aspx
I get to step 13, and at that point, I try to Test the Connection - I get the error "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that
the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)"
On my system, there is no Connection String on that screen - I assume that could be the problem? Does anyone know approximately what should go in that box? I've tried something similar to what the screenshot displays, changing the server
name and database names of course, but I get the same error.
KWHi
From within DPM console select Management tab. From here select About DPM. Obtain needed information from section DPM’s SQL Server.
The data source = DPM ServerName\SQL instance
initial catalog = DPMDB Name
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial
to other community members reading the thread. Regards, Dwayne Jackson II. [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights."
Figure 1: From DPM console select About DPM -
When changing database directory in lk6.5, no alarms are logged anymore.
When changing database directory in lk6.5, no alarms are logged anymore. Traces are running ok, only any query in MAX concerning alarms, will result in an empty response
Hi Ryan,
I tried many ways. First as you described. Second; delete all databases (with MAX) and start lookout, hoping lk would make al necessary settings.
I tried short path name, long path name. All the same results; database will be made (or manually with Max or automatically by lk), all traces works, only NOT the Alarm logging. (database isn't corrupted, while a query done in MAX don't result in an error, just empty result).
I the meantime I found something;
C:\Documents and Settings\my name\my documents\Databse --> traces works, alarms not
C:\Program Files\National Instruments\Lookout 6.5\Database --> all works
So it seams that specificly "my documents" does'nt work for alarms, just for traces (????)
I also found the following message when trying to export the alarms; "The given Citadel database is not currently configured to log alarms to a relational database." Does this ring a bell? -
Create folder in current directory
Hi all,
I would like to be able to create a folder through my java program, in the current directory that the java program is in.
Furthermore, I do not want to have to change any code if the java program is suddenly moved to a different folder.
Something like this, but obviously currentDirectory would have to actually be the specific directory that the program is in:File f = new File(currentDirectory);
f.mkDir();Also, just on a side note if anyone has any knowledge of MySQL, I would like to be able to do this when using 'batch mode' and pointing a batch file to a text file containing mysql commands:
mysql -u root -p < d:\mysql\jdbc\createdatabase.txtso the current directory would replace 'd:\mysql\jdbc\'.
thanks very muchHi Jon
On the first topic, try this.
import java.io.File;
public class MakeDir {
public static void main(String[] args) {
if (args.length != 1 || args[0] == null || args[0].trim().length() == 0) {
System.out.println("Usage: java MakeDir <folder name>");
System.exit(-1);
File f = new File(System.getProperty("user.dir") + "\\" + args[0]);
f.mkdir();
}/John -
Dear all.
I need to mail to the current processor, when in Change request im choosing SDHF correction and authorize. System creates corresponding SDHF correction. At this moment SDHF correction contain no actions, if i press edit button actions appears. But i need it earler.
Work steps:
SLFN - SDCR (mail to current processor)- SDHF...
tried to:
Transaction SDHF use Action profile SDHF_ACTIONS
Created my own action in this A.P.
Processing Time Immediate processing
Processing Times Not Permitted No restrictions
Sort Order For Display 0
Schedule Automatically = 'X'
PartnerFunction SDCD0004
Description Current Processor
Determination Technology Determination Using Conditions that Can Be Transported
Rule Type Workflow Conditions
Action Merging Max. 1 Action for Each Action Definition
start condition
Only status 'Created':
&CRM Service Process.User Status& = E0001SDHFHEAD
then inserted in SDHF_ACTIONS Action stack
Regards Sindry
Edited by: Sindry on Feb 21, 2011 10:01 AMHI Jansi.
Not exactly. But useful info
I need send mail to the current processor, steps to proceed:
1. Create SLFN notification tcode notif_create
2. Create SDCR change request from actions of SLFN
3. In SDCR setting subject = Urgnt Correction and save.
4. Now i choose action of SDCR Authorize change request!! and when i press save corresponding SDHF correction is created.
My needs: is to send mail to current processor right after creation without entering SDHF.
And also moment to discuss: after SDHF correction created in Transaction Data - Actions is EMPTY, only if i press Edit button actoins appear.
I need action that works before pressing edit button, with SDHF creation.
Help plz
Regads Sindry
Edited by: Sindry on Feb 21, 2011 11:38 AM -
What is Weblogic current directory?
I have multiple clusters and servers created on a Weblogic instance.
What is the current directory, e.g. if I read/write a file from servlet without specify the directory? ldealy, the directory is neutral to clusters/servers.
ThanksHi,
Please place your Properties file *(Or Whatever file you want to read...)* inside the *<DOMAIN_ROOT>* Directory for Example Location: "user_projects/domains/mydomain" directory
After Placing any Property file inside the "domain root" directory can be read without restarting the Server...
below is a simple example for the same.......
*"a.properties"*
city=NewYour
country=America
*"index.jsp"*
<%@ page import="java.util.*" %>
<html>
<head>
<title>Hi It's Wroking</title>
</head>
<body bgcolor="maroon" text="white">
<center>
<%
InputStream is=new FileInputStream("./a.properties"); // No need to specify the File Path now
Properties prop=new Properties();
prop.load(is);
out.println("City: "+prop.getProperty("city"));
out.println("Country: "+prop.getProperty("country"));
%>
</center>
</body>
</html>
Like this you need not to redeploy your Application...If you want to make any changes in the property file ...Just eidt it...and the Properties files changes will be dynamically picked up by the application,
Thanks
Jay SenSharma
http://weblogic-wonders.com (Wonders Are Here)
Maybe you are looking for
-
Remote App and iTunes wont work! Please help.
I am having a really hard time making the remote app work with my HP laptop. I have a Mac that connects flawlessly through my remote app but the HP just wont see my phone. I have done everything possible with firewall settings but still can not conne
-
Remove HTML tags from a string
I have a string that contains a couple of HTML or XHTML tag, for example lv_my_string = '<p style="something">Hello <strong>World</strong>!</p>'. For a special use case, I want to remove all HTML from that string and process only the plain text lv_my
-
Links in GAF's Confirmation Step
Hi, I have configured Confirmation Step for GAF application. How can I add links/URLs that would take me the ESS/MSS homepage, and overview screen(step 1 of GAF application)? Thanks, Reena
-
Hello Experts, In our database (10g/Solaris 9) the major wait event is "Buffer Exterminate". Ours is an OLTP database. We have set Auto SGA. As per metalink this wait event happens when Oracle tries to pull memory out of some pool and allocates it to
-
Hello all, Can you please give me some details about the SOA requirements for BW. Are there some special requirements for this; or the ones for the R3 apply? Thanks a lot Ramona