Applescript application with UI dialogs auto relaunch !
I have a strange behavior with Applescript Application with UI dialogs (for exemple, just display dialog "toto" ). These scripts run, quit and then always relaunch with no end, a king of "keepalive" option.
The problem doesn't appear when I run the script from the Applescript Editor, neither with scripts without UI dialogs. I've tried my application script on another Mac, and it was okay, just on normal run and quit.
I can't find the source of my problem on the particular mac, both Macs are up to date (10.8.2). I've cleaned up some startup damemons, relaunch the dyld database. I tried to find a clue with the ps command, but I just can see that my application is relaunched by launchd, without more information.
Has anyone experienced the same problem, or have an idea to find the source of this, thanks.
You're a little light on details there, which is going to make answering your question tricky.
Are you saying, though, that launchd is starting your script? repeatedly?
If so it would help to know what your script is doing. Launchd expects to launch executables and doesn't expect them to quit. If it quits (or dies) within 10 seconds then launchd assumes the process failed and relaunches it. That sounds to me like what you're saying (/var/log/system.log will confirm that).
If that's the case, the problem is that your script is too quick. Slow it down by ensuring it takes at least 10 seconds before it quits (a simple delay added to the end of the run handler should take care of that), then launchd won't try to restart it.
You can also edit the launchd configuration to not be so sensitive to short-lived tasks, but that's probably more work.
Similar Messages
-
Web application with capable of auto update
Hi All,
I have been developing the webapplications using struts (J2ee Technology) and i have developed few web applications and send to the production. now i want to add autoupdate capability of the application, means if any changes was made jsp/action class then application must have capability of updatin the new code.
is my thought/requirements come in reality?
Can anyone suggest/recommend the approach.
Thanks in advanceThank you
Struts is not a JEE technology; its a framework built by Apache.I agree, but given as example,consider servelts are example now.
you have a version of the web application running and when you make changes in your code you see these >>changes in the running application without having to restart the server. Am I correct this time?Yes you are correct!!.. Thanks
If so: did you try starting the server in debug mode? How to do that depends on what IDE you're using, you >>should google it.I am talking about the appliction running in production. What is the relation of IDE and debug mode
Can you please elobarate!!..
Once again my requirement is , Jsps and servlets are packed into war(app version 1.0) and sent customer environment ,
The application is running at customer place, now couple of servlets which was packed in app version 1.0, have been added new functionalites and packed into war(app version2.0).
I need to add capability of updating the version2.0 with replacement of version1.0 which is at client place. How can i do this
Do i need to container help or any other third party tools can be used for this
I am using Tomcat7
Hope i explained detail
Thanks
Dorairaj
Java TeamLead -
Problem with shell commands and scripts from an Applescript Application
Hi-
I am fairly new to OSX software development. I am trying to build an application that creates a reverse SSH tunnel to my computer and starts OSXvnc. The idea is that my Mom or anyone else who needs help can connect to me without having to tinker with their firewalls.
There are plenty of resources on how to do this, and I have found them. What I have a problem with is the following.
I am building this application in Xcode as an Applescript application, because Applescript and shell scripting are the only forms of programming I know. I use an expect script to connect through SSH, and a "do shell script" for the raw OSXvnc-server application to allow screen sharing.
The problem is that when I click on the button to launch OSXvnc-server or the button to launch SSH, the application freezes until the process it spawns is killed or finishes. For example, I can set SSH to timeout after 60 seconds of no connection, and then the Applescript application responds again. I even tried using the ssh -f command to fork the process, but that doesn't seem to help.
I am also using "try" around each of the items.
What am I doing wrong? How can I make the buttons in my app launch SSH and OSXvnc-server without hanging the application while it waits for them to finish?
Thanks so much!See here for an explanation of the syntax.
(20960) -
Applescript to print a .doc file using TextEdit with print dialog.
I want to print a pdf file using TextEdit .
I want to display the print dialog before doing the print operation.
Can any one help me with apple scripts to perform this operation.
We tried to use this script; but when I click Cancel on print dialog. I am getting an error saying "TextEdit got an error: Apple Event Handler failed".
set printDoc to "Macintosh HD:Users:testuser:Testing:testprint.pdf"
tell application "TextEdit"
activate
open printDoc
print printDoc with print dialog
quit saving no
end tell
Can anyone help me to fix this issue ?Clicking the cancel button in the print dialog is sending an error code back to the script. If you use a try statement you can handle it better. The script below will just ignore it. Or you could use an "on error" statement to do something else.
set printDoc to "Macintosh HD:Users:testuser:Testing:testprint.pdf"
tell application "TextEdit"
activate
open printDoc
try
print printDoc with print dialog
end try
quit saving no
end tell
Hope that helps. Though the plaintext of a pdf may be a little hard to read. -
Disable error message in applescript application
I have an applescript application that basically tests for a certain condition. If that condition is met, it does one task. If there is an error, it performs another task. The problem is that when it runs as an application, if it runs into the error, it pops up a message box with that error. I would like it to just continue to the portion of what to do when the error occurs and not bother the user unless really needed.
Here's the script I've made into an application that this is occuring in (was originally found on some other forums and modified for our need):
try
-- test for Kerberos ticket presence and attempt to renew
set kerb to do shell script "/usr/bin/klist | /usr/bin/grep krbtgt"
on error
try
set renewKerb to do shell script "/usr/bin/kinit -R"
on error
set ping to do shell script "ping -o -q xxxx.xxxxxx.com"
--Server name change to protect our innoconce.
if not (ping is equal to "") then
-- offer to renew Kerberos ticket
set response to (display dialog "Your Kerberos ticket has expired. Would you like to authenticate to generate a new ticket?" with icon 2 buttons {"No", "Yes"} default button "Yes")
if button returned of response is "Yes" then
try
set thePassword to text returned of (display dialog "Enter your logon password:" default answer "" with hidden answer)
do shell script "/bin/echo '" & thePassword & "' | /usr/bin/kinit"
display dialog "Kerberos ticket acquired." with icon 1 buttons {"OK"} default button 1
on error
try
set thePassword to text returned of (display dialog "Password incorrect. Please try again:" default answer "" with icon 2 with hidden answer)
do shell script "/bin/echo '" & thePassword & "' | /usr/bin/kinit -l 10h -r 10h --password-file=STDIN"
display dialog "Kerboros ticket acquired." with icon 1 buttons {"OK"} default button 1
on error
display dialog "Too many incorrect attempts. Stopping to avoid account lockout." with icon 2 buttons {"OK"} default button 1
end try
end try
else -- if No is clicked
quit
end if
else
quit
end if
end try
end tryI think I figured it out. I added another try on error on the ping part and it fixed the issue. The error was showing up on the ping part so it should be ok now.
-
Is it possible to make a global keyboard command for an Applescript application?
I have created an application with Applescript, and I want to create a global keyboard command that brings up an input dialogue.
If that's not possible, is there a way to make a dialogue appear when the Dock icon is clicked?The regular keyboard shortcuts work with whatever application is currently active, so that leaves option number 2. To add a dynamic menuu item to the dock menu, you can add a couple of handlers to the CocoaAppletAppDelegate.scpt, which is located in the bundle contents of the Cocoa-AppleScript applet (created when you use the File > New from Template menu item):
on applicationDockMenu_(sender) -- dynamically add a menu item to the dock tile
set myDockMenu to current application's NSMenu's alloc's initWithTitle_("") -- don't really need a title here
myDockMenu's addItemWithTitle_action_keyEquivalent_("My spiffy new menu item", "menuAction:", "")
return myDockMenu
end applicationDockMenu_
on menuAction_(sender) -- do something when the dock menu item is selected
set menuTitle to sender's title() as text
# do something
tell current application to activate -- make sure dialog is in front
display dialog "The " & quoted form of menuTitle & " menu item was clicked…"
tell application "System Events" to keystroke tab using {command down} -- switch to previous application
end menuAction_ -
Closing all applications with one keystroke
Hi
There must be a trick but it has been 3 weeks I had my Imac and still have not found it
How can I CLOSE ALL running application with one keystroke ? also how can I close the finder ... its always running and I am not sure it should.
Up to know I love the Imac and wander how I survived on a pc for 20 years.
AntoineThe Finder is necessary to allow you to navigate your computer: it always runs and if you force-quit it it will immediately relaunch.
Even if you shut down your computer normally any application with unsaved work will ask for a confirmation. You should not force a shutdown: you can damage your disk Directory by doing this and doing it repeatedly could run you into serious problems. You should only do this in the rare even that the computer locks up completely.
It's possible to write an AppleScript which will quit all applications (though you will still be asked for confimation where applicable) but it gets a bit complicated because there are running processes which you don't want to quit, and as you're new to all this I'm reluctant to recommend this as a way to go. Otherwise there is no global method. -
XCode AppleScript Application Mouse Issue
Hi Everyone,
Well I'm completely stumped. I'm trying to write a simple AppleScript application in XCode that looks for mouse enter events onto an NSImageView. I have all the code in place to do this correctly but the problem is that the mouse enter event don't start getting sent until I display a dialog then come back to the main window. From this point everything works fine. I just don't want to have to display a dialog each time I start the app.
Does anyone have any ideas?
ChrisHi Thomas,
Sorry about that. It just doesn't respond to clicks in my old version. I made a simple project with just the image view and connected all mouse events to it except the right clicks and it works here.
on mouse down theObject event theEvent
log "mouse down"
end mouse down
on mouse entered theObject event theEvent
log "mouse entered"
end mouse entered
on mouse exited theObject event theEvent
log "mouse exited"
end mouse exited
on mouse up theObject event theEvent
log "mouse up"
end mouse up
on mouse dragged theObject event theEvent
log "mouse dragged"
end mouse dragged
Hope you get it fixed.
Edited: Just thought of something people say they do when the project acts buggy. Clean all targets whatever that does.
gl, -
Applescript Interacting with a PList
I'de like to create a PList file when someone runs my application, and then change the variables in the file based on what buttons you choose. It would have to also work for various users as I'm distributing the app. Something like:
Display Dialog "Keep a log?" buttons {"No", "Yes"} default button 2 with title "Config"
if button returned of result is "Yes" then
-- Some command to change the variable to "Yes" in a PList file to remember for next use
else
-- Some command to change the variable to "No" in a PList file to remember for next use
end if
Is this possible? If so how? Thanks in advance. Really hoping you see this post, Red_Menace...There are a few ways to use preferences in your application. If you are writing a Cocoa-AppleScript (regular or Xcode), you can use NSUserDefaults. For a regular AppleScript application, a property is persistent and is saved with the script (at least until the script is recompiled), and there is also the defaults command.
-
Applescript Issue with Mavericks: Security?
Hi - I'm having an Applescript Problem with Mavericks:
For years, I've been running EyeTV on my mac. After recording a TV show, EyeTV calls a script called "RecordingDone.scpt".
I've modified this script to do what I need it to do. It's automatically run by EyeTV (using a process called "TriggeredScriptBridge", which I can observe via Activity Monitor). I can also execute the script directly from the Finder, as an Applescript app, and also by running the script via Applescript Editor.
Prior to Mavericks, both EyeTV and manual execution of the script ran correctly.
With Mavericks, running the script executes correctly when run manually. But whenever EyeTV executes the script, it fails. The failure occurs when the script tries to create a new folder or copy a file.
For example, this code runs correctly when initiated manually but fails when initiated by EyeTV:
if (exists folder fileLocation) is false then
try
make new folder at alias ExportLocationTV with properties {name:ParsTitle}
my log_event("DEBUG: Folder successfully created")
on error
my log_event("DEBUG: couldn't make folder!")
end try
end if
Same thing with this code (manual execution works, not so when called by EyeTV):
try
do shell script shellCommand -- do the copy
my log_event("DEBUG: copied successfully")
on error
my log_event("DEBUG: failed to copy!")
end try
My guess is that Mavericks isn't letting EyeTV call a script that writes to disk. Is that what's happening? If so, how do I make things work again? Or if I'm wrong with my guess, anybody have any idea what might be screwing up here?
Thanks much....If this application is from the App Store, it is running in a sandbox and needs to have the proper entitlements.
No, the app is not from the App Store. But perhaps the developers have incorporated sandboxed operation in a recent update? (I don't know much about sandboxing and its effects yet...)
I am guessing that since scripts are supported by the application that the developers have set the appropriate entitlement for that, but the user running the application will still need to authorize writing to a location outside of the sandbox.
Your script is not using a security-scoped bookmark or putting up a file dialog - how are you selecting the destination folder?
OK, some of this is new to me (e.g. security-scoped bookmark), so please bear with me if my responses don't make immediate sense.
The EyeTV app developers have put a few calls to external scripts that can be run when certain events occur within the app (for example, "RecordingStarted.scpt" and "RecordingDone.scpt"). The EyeTV app initiates a process named "TriggeredScriptBridge" that calls the scripts. These scripts are intended to be modified by users to perform tasks upon the TV recording created by EyeTV. They have always worked fine before Mavericks.
Under Mavericks, when the script is run via a call from the EyeTV app, the destination folder(s) are selected by hard-coded links I placed within the script. When I run the script manually, I present a Choose Folder dialog for more flexibility.
So, under Mavericks, do I need to do something different in my scripts to allow access to the disk to create folders, etc.? Or is this something that I can't do because it's the responsibility of the app itself (EyeTV)? Or am I not understanding what's going on here (the most likely scenario... ) -
Hi all Basis Gurus,
This is my question to Basis forum Please reply me immediately. while running ITS in CRM 50 i am getting mentioned below error (Logon on with a dialog user). can u please guide what are things i have to follow to resolve this prblem.
Please suggest me what shall i do.
Error when processing your request
What has happened?
The URL http://sapsrv.techmahindra.com:8010/sap/public/bc/its/mimes/system/SL/page/hourglass.html was not called due to an error.
Note
The following error text was processed in the system DEV : Log on with a dialog user
The error occurred on the application server sapsrv_DEV_10 and in the work process 0 .
The termination type was: ERROR_MESSAGE_STATE
The ABAP call stack was:
Module: %_HTTP_START of program SAPMHTTP
What can I do?
If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system DEV in transaction ST22.
If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server sapsrv_DEV_10 in transaction SM21.
If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 0 in transaction ST11 on the application server sapsrv_DEV_10 . In some situations, you may also need to analyze the trace files of other work processes.
If you do not yet have a user ID, contact your system administrator.
Error code: ICF-IE-http -c: 000 -u: SAPSYS -l: E -s: DEV -i: sapsrv_DEV_10 -w: 0 -d: 20070223 -t: 144317 -v: ERROR_MESSAGE_STATE -e: Log on with a dialog user
HTTP 500 - Internal Server Error
Your SAP Internet Communication Framework Team
Regds,
Govinda ([email protected])I have checked with that setting,but still it is showing the below error.is there any another way?
Error when processing your request
What has happened?
The URL http://gcecc62:8000/sap/bc/webdynpro/sap/zwda_logo_demo was not called due to an error.
Note
The following error text was processed in the system ECC : Die URL enthält keine vollständige Domainangabe (gcecc62 statt gcecc62.).
The error occurred on the application server gcecc62_ECC_00 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: CHECK of program CX_FQDN=======================CP
Method: LATE_CONSTRUCTOR of program CL_WDR_UCF====================CP
Method: HANDLE_REQUEST of program CL_WDR_UCF====================CP
Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
Method: EXECUTE_REQUEST of program CL_HTTP_SERVER================CP
Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
Module: %_HTTP_START of program SAPMHTTP -
How to call an applescript application from Office 2011 Excel VBA
All:
I have been pounding my head how to implement a working VBA application into the Mac environment. I have tried a number of approaches calling applescript from VBA. I would like to call my applescript application and pass one argument. My applescript application is as follows:
<code>
on run argv
set theURL to (item 1 of argv)
set p_path to do shell script "echo ~"
set m_path to POSIX file p_path
set theName to text -((offset of "/" in (reverse of characters of theURL) as text) - 1) thru -1 of theURL
set theFile to (p_path & "/Downloads/" & theName)
set macPath to (POSIX file theFile)
do shell script "/usr/bin/curl " & theURL & " -o " & quoted form of POSIX path of macPath
end run
</code>
My last attempt within VBA is:
<code>
Sub SaveMetaDataFile(URL As String, shortFileName As String)
Dim scriptToRun As String
Dim posixcmd As String
posixcmd = ThisWorkbook.Path
scriptToRun = "tell application " & posixcmd & ":MetaDataFileDownloadScript.app " & URL
MsgBox "[" & scriptToRun & "]"
MacScript (scriptToRun)
</code>
I first tried to call the script directly without the "tell application" and I still obtain an error. I also tried the following in VBA and I get the same error with the last lane of code:
<code>
scriptToRun = "set theURL to " & """" & URL & """" & Chr(13)
scriptToRun = scriptToRun & "set p_path to do shell script " & """" & "/bin/echo ~ " & """" & Chr(13)
scriptToRun = scriptToRun & "set m_path to " & """" & posixcmd & """" & Chr(13)
scriptToRun = scriptToRun & "set theName to " & """" & shortFileName & """" & Chr(13)
scriptToRun = scriptToRun & "set theFile to (p_path & " & """/Downloads/""" & " & theName)" & Chr(13)
scriptToRun = scriptToRun & "set macPath to (POSIX file theFile)" & Chr(13)
scriptToRun = scriptToRun & "do shell script " & """" & "/usr/bin/curl " & """" & " & " & " theURL " & " & " & """" & " -o " & """" & " & " & " quoted form of POSIX path of macPath"
MsgBox scriptToRun
'scriptToRun = scriptToRun & "do shell script " & """/usr/bin/curl """ & " & " & " theURL " & """ -o """ & " & " & " quoted form of POSIX path of macPath"
MacScript (scriptToRun)
</code>
The above code is from the applescript application. The applescript application works well using the terminal via osascript. For example:
xenas-imac:Census Work Xena$ osascript MetaDataFileDownloadScript.app http://www2.census.gove/acs20095yr/summaryfile/Sequence_Number_and_Table_numberLookup.xls
xenas-imac:Census Work Xena$
The whole goal is to download a file into the Download directory from Excel to allow the next step to import the file into Excel for the user. Any help here would be great!
Thank you;
LoriUpdate:
Ok have the module almost working and matches the syntax within the test applescript I had created, but the VBA code via the MacScript() call is generating an invalid procedure or argument call. The following is the test applescript to compare the created string to be passed to VBA MacScript() function:
<code>
set appPath to quoted form of POSIX path of "Macintosh HD:Users:Xena:Desktop:Census Work:"
do shell script "/usr/bin/osascript " & appPath & "MetaDataFileDownloadScript.app " & "http://www2.census.gove/acs20095yr/summaryfile/Sequence_Number_and_Table_numberLookup.xls"
</code>
The following is the VBA module that generates the above word for word as far as I can tell:
<code>
Sub SaveMetaDataFile(URL As String, shortFileName As String)
Dim scriptToRun As String
Dim posixcmd As String
posixcmd = ThisWorkbook.Path
posixcmd = posixcmd & ":"
scriptToRun = "set appPath to quoted form of POSIX path of " & Chr(34) & posixcmd & Chr(34) & Chr(13)
scriptToRun = scriptToRun & "do shell script " & Chr(34) & "/usr/bin/osascript " & Chr(34) & " & appPath & " & Chr(34) & "MetaDataFileDownloadScript.app " & Chr(34) & " & " & Chr(34) & URL & Chr(34)
MsgBox "[" & scriptToRun & "]"
MacScript (scriptToRun)
End Sub
</code>
The message box in the above VBA code matches my test applescript file and I have taken the output of the MsgBox and used it in a test applescript and it works great, but VBA is throwing "Run-time error '5': Invalid procedure call or argument".
Looking at Microsoft's definition it takes a string argument and I have made sure that scriptToRun is a string type, so at this point I suspect there is something wrong with the MacScript() funciton, or I am missing something above. Is there another way to call an applescript application from VBA outside the MacScript() function? Or is there something I am missing? Any help or suggestions is needed.
Thank you;
Lori (CodeXena) -
Error deploying the application with Crystal Report
Hello,
I'm using Visual Studio 2010 and I installed the required version of crystal report for it. I'm developing a windows Application with C# and Crystal Reports. The program runs correctly in the visual studio but when I tried to deploy it by adding the setup it gives me the following warnings:
- Unable to find dependency 'MICROSOFT.VISUALSTUDIO' (Signature='B03F5F7F11D50A3A' Version='1.0.5000.0') of assembly 'crdb_adoplus.dll'
+- The 'SAP Crystal Reports Runtime Engine for .NET Framework 4.0' item selected requires 'Microsoft.Net.Framework.2.0'. Select the missing prerequisite in the Prerequisites Dialog Box or create a bootstrapper package for the missing prerequisite. +
- No 'HomeSite' attribute has been provided for '.NET Framework 2.0 SP2', so the package will be published to the same location as the bootstrapper.
I tried to ignore the warnings and deploy it but when I try to open the crystal report and in the program it gives me an error message then an empty report.
I also tried in the Prerequisites to choose the option : Download prerequisites from the same location as my application. but when I do that I receive the following errors:
- The install location for prerequisites has not been set to 'component vendor's web site' and the file 'MDAC28\mdac_typ.exe' in item 'Microsoft Data Access Components 2.8' can not be located on disk. See Help for more information.
- General failure building bootstrapper.
- Unrecoverable building error.
of course In addition to the previous error.
I'm not using the click-once deployment.
Can you please help and advice me with that? I tried to search through the net for these warnings but with no luck of the solution.
Thank you,No, .Net Framework 2 is not installed. I'm using windows 7 so I installed .Net framework 4. I tried to Install .Net 2 but it doesn't install because of windows 7. I also tried to add it in the prerequisites but again with no luck in solving the issue.
If I try to deploy the App and install it. When I try to open the crystal report the app crushes and gives me the following error:
Report load failed.
exceptions:
CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException: Unsupported Operation. A document processed by the JRC engine cannot be opened in the C++ stack.
at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
--- End of inner exception stack trace ---
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
at DataViewer2.Form5.crystalReportViewer1_Load(Object sender, EventArgs e)
at System.Windows.Forms.UserControl.OnLoad(EventArgs e)
at CrystalDecisions.Windows.Forms.CrystalReportViewer.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Edited by: starrysky88 on Sep 13, 2011 11:35 AM -
Open Sharepoint File Launches application to Open Dialog
We are experiencing the following behavior on one machine in our group. The environment is SharePoint Online 2013, with libraries synchronized to the user PC. User PC is Windows 8.1 with Office 2013.
When you double-click a SharePoint file to open it, it launches the appropriate Office program, but it launches to the "Open" dialog (open local file, use a template, etc.)
If you close the program (Word, Excel, Visio, etc.) and double-click the file again to open it, it typically opens properly. On some occasions, it behaves as described above again.
Once the file is successfully opened, it opens properly from there forward.
When the file is actually opening, the splash screen indicates it is "downloading" the file, and there is a delay. The file is actually synchronized and has a local copy.
If you open a true local copy of any MS file format (not in a synchronized folder), the files open properly.
I suspect this is an issue with the office document cache or something, but I find no fix for this behavior.try these links:
http://sharepoint.stackexchange.com/questions/122609/open-a-link-of-excel-with-the-dialog-popup-window-in-quick-launch-sharepoint-201
http://blog.sharedove.com/adisjugo/index.php/2012/09/29/open-sharepoint-files-in-edit-mode-from-client-applications-and-not-read-only/
Please mark as answer if you find it useful else vote for it if it is close to answer..happy sharepointing -
Integrating WebDynpro ABAP applications with UWL for workflow in Portal
Dear
We want to integrate an abap webdynpro application as task in the workflow with UWL.
More information was found in /people/ginger.gatling/blog/2005/12/14/create-new-uis-for-existing-workflow-tasks-with-abap-web-dynpro-and-universal-worklist
But no answer on the following issue:
We use the transaction SWFVISU to prepare standard setting for our task. This defines how a task is executed, once you select the task subject line on the worklist.
Task TS91700001
Visualization Type ABAP Web Dynpro
APPLICATION z_wd_pas
DYNPARAM IV_WIID=${item.externalId}&period=${item.PERIOD}
NAMESPACE SAP
SYSTEM_ALIAS SAP_BSP_EREC
But we want to start the abap webdynpro application with a dynamic parameter: period 07.2010 or 08.2010 or MM.YYYY. This parameter is a container element of the task, filled when the task is created. Also other parameters are available in the abap webdynpro application.
Component Z_WD_PAS
Interface View PAS
Plug Name DEFAULT
Help Menu Text
Help Link
Package Z_PAS
Language EN
URL http://saperpd1.imec.be:8000/sap/bc/webdynpro/sap/z_wd_pas
with parameters
IV_WIID 000000000000 SWW_WIID
ORG_UNIT 00000000 ORGEH
PERIOD SPMON
PERNR 00000000 PERSNO
Can we set the dynamic parameter list DYNPARAM from the task
or should we read the container in our abap webdynpro application described in http://wiki.sdn.sap.com/wiki/display/WDABAP/IntegratingWebDynproABAPapplicationswithUWLforworkflowin+Portal?
More information: The task is a webservice
Standard task 91700001 Z_PAS_CC
Object Category BOR Object Type
Object Type WEBSERVICE WebFlow Service
Method PROCESSDIALOG Dialog Service
with the following standard program code for this method:
begin_method processdialog changing container.
DATA: l_wi_objkey TYPE swotobjid-objkey.
DATA: l_wiid TYPE swwwihead-wi_id.
CALL FUNCTION 'SWE_WI_GET_FROM_REQUESTER'
IMPORTING
requester_workitemid = l_wi_objkey.
l_wiid = l_wi_objkey.
CALL FUNCTION 'SWF_WSC_START_LH_DIALOG'
EXPORTING
i_wiid = l_wiid
EXCEPTIONS
url_creation_failed = 1
browser_launch_failure = 2
OTHERS = 3.
IF sy-subrc <> 0.
CASE sy-subrc.
WHEN 1.
exit_return '1000' space space space space.
WHEN 2.
exit_return '1001' space space space space.
WHEN OTHERS.
exit_return '1002' space space space space.
ENDCASE.
ENDIF.
end_method.
Before calling the function SWF_WSC_START_LH_DIALOG the parameters for the abap webdynpro should be defined. Is this possible ?
Thanks for your suggestions.
Best regards
Luc MarentI added below sources .
> <ItemType name="uwl.request.webflow.WS91000001" connector="WebFlowConnector" defaultView="WorkItemRequestsView" defaultAction="launchWebDynPro" executionMode="default">
> <ItemTypeCriteria systemId="UWLSETXXX" externalType="WS91000001" connector="WebFlowConnector" />
> <Actions>
> <Action name="launchWebDynPro" groupAction="" handler="SAPWebDynproABAPLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes" launchNewWindowFeatures="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no">
> <Properties>
> <Property name="WebDynproApplication" value="ZWD_WF_002" />
> <Property name="newWindowFeatures" value="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no" />
> <Property name="DynamicParameter" value="wi_id=${item.externalId}" />
> <Property name="openInNewWindow" value="yes" />
> <Property name="System" value="WDSETXXX" />
> <Property name="WebDynproNamespace" value="sap" />
> <Property name="display_order_priority" value="5" />
> </Properties>
> <Descriptions default="" />
> </Action>
> </Actions>
> </ItemType>
> <ItemType name="uwl.request.webflow.decision.WS91000001.UWLSETXXX" connector="WebFlowConnector" defaultView="WorkItemRequestsView " defaultAction="viewDetail" executionMode="default">
> <ItemTypeCriteria systemId="UWLSETXXX" externalType="WS91000001" connector="WebFlowConnector" />
> </ItemType>
Maybe you are looking for
-
I travel from the U.S. to Tokyo and other Asian cities on a regular basis. Thus, have set a number major cities clocks. Problem is, They were entered in a random fashion as I visted each location. I would like to arrange them in a time zone sequence(
-
HOW to use class in different file???
hi I want to use other class and write them separately in different .java file but when i compile the one who call the class it says it cannot resolve the symbol, which is the class name I call Can anyone help me
-
Best way to include a jpg file in a project (where to locate the file)
Inside of my main VI - I am "building a path to the current VIs" directory where I have a jpg file. This jpg file displays fine when running this VI. To do this I get the current path, strip the VI name and then add the jpg name to the path. Now whe
-
CP 5 Project templates wrong after upgrade to CP 5.5
Hi, I just upgraded my CP 5 to CP 5.5 and discovered that all my project templates are NOK anymore This is what I see: All Placeholders no matter which one have an angle of -1 in CP 5.5. I opened the templates in CP 5 and they are still OK. Reopen in
-
I have a question that I couldn't find on the services. How can I organize the artists in my ipod so that it won't display it like this. Artist Artist feat. Artist Artist feat. Artist and Artist Its driving me crazy. Thanks