VB Button to kick off a script
Hi Experts, can anyone please tell me if there is a way to create a VB Button on a template to kick off a script? We tried sending in data based on formulas in a template but realize it would be much quicker via script. It would have to be seemless for our end users so a button to do this would be optimal. Any suggestions? Thanks, Tracey
Hi,
I have the VBA working with one exception, it brings up the script I want to run but then I need to click "Finish" to actually launch the script. My Code is below. How can I have it automatically run the script without me having to click "Finish" on the dialouge prompt/window?
PS - Even though the teamid is Company (Public) I still needed to leave that String blank in the DataManagerRunPackage line for it to work... not sure why.
Thanks all!
Sub RUNPACKAGE()
Dim ea As New FPMXLClient.EPMAddInAutomation
Dim packageId As String, groupId As String, teamId As String
ea.DataManagerRunPackage "FPP_SPREAD", "Data Management", ""
End Sub
Similar Messages
-
Auto-kick off MaxL script after Oracle GL data load?
Hi guys, this question will involve 2 different modules: Hyperion and Oracle GL.
My client has their accounting department updating Oracle GL on a daily basis. My end-user client would like to write a script to automatically kick off the existing MaxL script which is for our daily data load in Hyperion. Currently, the MaxL script is manually executed.
What's the best approach to build a connection for both modules to communicate with each other? Can we use a timer to trigger the run? If so, how?#1 External scheduler.
I've worked on Appworx and it has build a chain dependent task. There are many other external schedulers like Tivoli,....
#2 As Daniel pointed out you can use Windows scheduler.
For every successful GL load add a file to a folder which is accessible for your Essbase task.
COPY Nul C:\Hyperion\Scripts\Trigger\GL_Load_Finished.txt
Create another bat file which is scheduled to run on every 5 or 10 mins (this should start just after your GL Load scheduled task)
This is an example i've for a triggered Essbase job.
IF EXIST %BASE_DIR%\Trigger\Full_Build_Started.txt (
Echo "Full Build started"
) else (
IF EXIST %BASE_DIR%\Trigger\Custom_Build_Started.txt (
Echo "Custom Build started"
) else (
IF EXIST %BASE_DIR%\Trigger\Post_Build_Batch_Started.txt (
Echo "Post Build started"
) else (
IF EXIST %BASE_DIR%\Trigger\Start_Full_Build.txt (
Echo "Trigger found starting batch"
MOVE %BASE_DIR%\Trigger\Start_Batch.txt %BASE_DIR%\Trigger\Full_Build_Started.txt
call %BASE_DIR%\Scripts\Batch_Files\Monthly_Build_All_Cubes.bat
) else (
IF EXIST %BASE_DIR%\Trigger\Start_Custom_Build.txt (
Echo "Trigger found starting Custom batch"
MOVE %BASE_DIR%\Trigger\Start_Custom_Batch.txt %BASE_DIR%\Trigger\Custom_Build_Started.txt
call %BASE_DIR%\Scripts\Batch_Files\Monthly_Build_All_Cubes_Custom.bat
) else (
IF EXIST %BASE_DIR%\Trigger\Start_Post_Build_Batch.txt (
Echo "Trigger found starting Post Build batch"
MOVE %BASE_DIR%\Trigger\Start_Post_Build_Batch.txt %BASE_DIR%\Trigger\Post_Build_Batch_Started.txt
call %BASE_DIR%\Scripts\Batch_Files\Monthly_Post_Build_All_Cubes.bat
)So this bat file if it finds Start_Full_Build.txt in the trigger location, it'll rename that to Full_Build_Started.txt and will call the Full Build (likewise for custom and post build)
Regards
Celvin
http://www.orahyplabs.com -
Waiting for a process kicked off by servlet
I am kicking off a script on a Unix machine from my servlet on os390 using,
Process p = rt.exec("full_path/script");
How do I know when the process is complete so that I can show the xml page that the process is creating?
Justin Mennen
[email protected]there is a method waitFor() in Process meant for that purpose
-
Clusterware 10g: what kicks off 3rd-party failover script?
I am trying to use Oracle Clusterware 10g (installed on two identical Dell Linux boxes,
OEL 5.2) to failover a 3rd-party application, specifically websphere MQ. I have a ksh
script that is supposed to start/stop/restart the application.
Clusterware will fail over the IP address fine to the other box if I yank the primary box's
cable, but the app itself doesn't fail over. If I knew what (in Clusterware) did the
"kicking off" of the ksh script I could troubleshoot it more. I used the instructions in:
http://www.oracle.com/technology/products/database/clusterware/pdf/TWP-Oracle-Clusterware-3rd-party.pdf
and I'm pretty sure I did it right.
Any ideas?Here is the action script:
#!/bin/ksh
LOG="/san1/var/mqm/config/Controlmq.log"
echo "script started at `date` from `hostname`" >> $LOG
############################### func_stopMQ ######################################
func_stopMQ () {
QUEUENAME=$1
while [[ `ps -ef | grep $QUEUENAME | grep -v grep | grep -v Control| awk {'print $2'} | wc -l` -gt 1 ]]
do
echo "DEBUG : `ps -ef | grep $QUEUENAME | grep -v grep | grep -v Control` " >> $LOG
echo "there are `ps -ef | grep $QUEUENAME | grep -v grep | grep -v Control| awk {'print $2'} | wc -l` processes running associated with $QUEUENAME on `hostname`" >> $LOG
endmqm $QUEUENAME
endmqlsr -m $QUEUENAME
## echo "sleeping for 10 seconds before checking again"
sleep 10
done
## echo "All set, there are no processes associated with $QUEUENAME "
echo "stopped $QUEUENAME at `date` from `hostname`" >> $LOG
return 0
################################ func_startMQ ######################################
func_startMQ () {
QUEUENAME=$1
case $QUEUENAME in
MECM|MEQM)
PORT=1414
MEQA|MEQB)
PORT=5077
esac
## echo "starting $QUEUENAME"
strmqm $QUEUENAME
sleep 5
## echo "STARTING listener for $QUEUENAME"
runmqlsr -t tcp -p $PORT -m $QUEUENAME &
sleep 5
runmqsc $QUEUENAME < /san1/var/mqm/config/startCH_$QUEUENAME.DEF
echo "started $QUEUENAME at `date` from `hostname`" >> $LOG
return 0
################################ func_checkMQ ######################################
func_checkMQ () {
QUEUENAME=$1
PROCESSCOUNT=`ps -ef | grep $QUEUENAME | grep -v grep| grep -v Control| awk {'print $2'} | wc -l`
if [ $PROCESSCOUNT > 1 ]
then
echo "there are $PROCESSCOUNT processes associated with $QUEUENAME" >> $LOG
echo ":::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::" >> $LOG
echo "Status of $QUEUENAME : " >> $LOG
runmqsc $QUEUENAME < /san1/var/mqm/config/ChannelStatus.DEFS
return 0
else
echo "there are $PROCESSCOUNT processes associated with $QUEUENAME" >> $LOG
echo ":::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::" >> $LOG
echo "Status of $QUEUENAME : " >> $LOG
runmqsc $QUEUENAME < /san1/var/mqm/config/ChannelStatus.DEFS
return 1
fi
ACTION=$1
# QUEUENAME=$2
case $ACTION in
start)
## func_startMQ MECM
## func_startMQ MEQA
func_startMQ MEQM
func_startMQ MEQB
stop)
## func_stopMQ MECM
## func_stopMQ MEQA
func_stopMQ MEQM
func_stopMQ MEQB
check)
## func_checkMQ MECM
## func_checkMQ MEQA
func_checkMQ MEQB
echo "Sorry, the proper usage for this command is ControlMQ.sh start|stop|check"
exit
esac -
Hi all,
I've adopted the script stated in HightlightOneRequiredField.pdf so that the print button in my form can detect and prevent null field before pop up the print dialog. It works fine.
In my form, I've created a mandatory 2-radio buttons group with click event script written, using ".presence", in each button. When user clicks:
Button A: make subform A visible and subform B invisible;
Button B: make subform A invisible and subform B visible.
Apart from the visibility of the subforms, what I want more is to add a .mandatory script (together with the click event) in the buttons to turn some fields' mandatory in the subforms on and off so that when user clicks:
Button A: will also turn some fields' value type in subform A to be "User
Entered-Required", whereas some of that in subform B to be "-
optional";
Button B: will turn the subform B's fields to "-Required" and subform A's
fields back to "-optional"
However no luck with me. When I press the print button after any of the radio buttons checked, the print dialog still show up even the subforms' fields are null as if those fields' value type always remain "-optional"
I wonder if this problem is caused by Chinese binding name ? The script written in the radio button B is:
FormA.presence = "invisible";
FormB.presence = "visible";
if (B1.mandatory = "disabled")
B1.mandatory = "error";
if (B2.mandatory = "disabled")
B2.mandatory = "error";
if (B3.mandatory = "disabled")
B3.mandatory = "error";
if (A1.mandatory = "error")
A1.mandatory = "disabled";
if (A2.mandatory = "error")
A2.mandatory = "disabled";
if (A3.mandatory = "error")
A3.mandatory = "disabled";
B1, B2 and B3 represent the Chinese fields' binding name in FormB
A1, A2 and A3 represent the Chinese fields' binding name in FormA
(The script in radio button A is reversed in this way.)
Have I done something wrong in the above (click event) javascript?
Please help.
Thanks in advance.
AlexHi all,
I've adopted the script stated in HightlightOneRequiredField.pdf so that the print button in my form can detect and prevent null field before pop up the print dialog. It works fine.
In my form, I've created a mandatory 2-radio buttons group with click event script written, using ".presence", in each button. When user clicks:
Button A: make subform A visible and subform B invisible;
Button B: make subform A invisible and subform B visible.
Apart from the visibility of the subforms, what I want more is to add a .mandatory script (together with the click event) in the buttons to turn some fields' mandatory in the subforms on and off so that when user clicks:
Button A: will also turn some fields' value type in subform A to be "User
Entered-Required", whereas some of that in subform B to be "-
optional";
Button B: will turn the subform B's fields to "-Required" and subform A's
fields back to "-optional"
However no luck with me. When I press the print button after any of the radio buttons checked, the print dialog still show up even the subforms' fields are null as if those fields' value type always remain "-optional"
I wonder if this problem is caused by Chinese binding name ? The script written in the radio button B is:
FormA.presence = "invisible";
FormB.presence = "visible";
if (B1.mandatory = "disabled")
B1.mandatory = "error";
if (B2.mandatory = "disabled")
B2.mandatory = "error";
if (B3.mandatory = "disabled")
B3.mandatory = "error";
if (A1.mandatory = "error")
A1.mandatory = "disabled";
if (A2.mandatory = "error")
A2.mandatory = "disabled";
if (A3.mandatory = "error")
A3.mandatory = "disabled";
B1, B2 and B3 represent the Chinese fields' binding name in FormB
A1, A2 and A3 represent the Chinese fields' binding name in FormA
(The script in radio button A is reversed in this way.)
Have I done something wrong in the above (click event) javascript?
Please help.
Thanks in advance.
Alex -
I have an IPAD 1. I keep getting kicked off a site and back to the start page. Any one know why and how can I fix it? Thank you.
Try this...
Close All Open Apps... Perform a Reset... Try again...
Reset ( No Data will be Lost )
Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
http://support.apple.com/kb/ht1430 -
Why do I keep getting kicked off twitter ?
I keep getting kicked off twitter whenever I scroll down too far. Twitter closes and I get brought back to my home screen. Anybody know how I can fix this?
Try reset iPad
Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
Note: Data will not be affected. -
Kick off SSIS master package once new data gets into a transactional table
hello
I have a SSIS master package.. I also have an UI which the user uses to configure up some date ranges (that I need to use to load the data from the package). After date configuration, when user clicks on RUN SSIS button in UI, that configured data gets loaded
up in a transactional db table. Once new data is entered into that table, i need to kick off this master SSIS package.
Question is , is there any other method besides using table triggers?
Please advice.
ThanksAnother method is to have a automated job created in SQL Agent which keeps on polling the transactional table. you can configure it to run periodically (may be every 30 mins etc). Each time it starts it needs to check the status of a table which captures
details of whether user has pressed RUN SSIS button (you need to include that logic in UI to set a bit in a status table when button is pressed). If status is set, it will check if transactional table has data (IF EXISTS(SELECT 1 FROM Table)). Once these two
are truw it will go to next step where it calls master package. At the end it needs to log somewhere that data transfer is completed and also need to reset the bit field as well.
So job will have three steps
Step1: check bit is set and table has data
ie
IF (SELECT bitField FROM StatusTable)=1 AND EXISTS(SELECT 1 FROM TTable)
SELECT 1
ELSE
RAISERROR 'Table not ready',16,1
and set job advanced option as
quit job reporting success for failure condition and go to next step for success condition
Step2: Execute master package
Step3: rest status bit and update daya transfer status in a log table with date of run,record count etc
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
I keep getting kicked off iTunes on my iPad
Keep getting kicked off iPad, what can I do?
That's called crashing.
Try a reset, no data will be lost:
Hold the home and power buttons at the same time until the Apple boot logo appears. -
HT4623 Getting kicked off an App
Help! When i am on an App on my Ipad there are many times when I get kicked off and the screen on the ipad goes to the home screen. This is rediculice! What can I do???
Standard troubleshooting...
Try a reset by pressing the home and sleep buttons until you see the Apple logo, ignoring the slider. Takes about 5-15 secs of button holding and you won't lose any data or settings.
Remove all apps from Recently Used list...
- From any Home Screen, double tap the home button to bring up the Recents List
- Tap and hold any icon in this list until they wiggle
- Press the red (-) to delete all apps from this list.
- Press the home button twice when done.
If still a problem restore with your backup.
If still a problem restore as new, i.e. without your backup. See how it runs with nothing synced to it.
If still a problem, it's likely a hardware issue. -
TS1702 Getting kicked off my app to home screen!
I am getting kicked off my Craigslist app to the home screen after only about 5min. I'm very frustrated and have done all the steps on the list. Any advise from someone who has solved this issue would really be appreciated.
1. Close all apps in the Task Bar. Double-click the Home button and hold apps down for a second or two. Tap the minus sign to close app.
2. Hold the Sleep and Home button down until you see the Apple Logo.
3. Test Calendar again. -
Ok, Can someone please tell me what the heck is going on.
When ever i click on "edit" I get kicked off of dreamweaver. Then i
get this box with this saying: "The application dreamweaver has
unexpectedly quit. The system and other application have not been
affected." This has never happen before. I've only had dreamweaver
for less then 4 weeks, and I haven't downloaded anything new. I
have been using dreamweaver everyday, and this is the first time of
this happening. All the other buttons at the top work just fine.
It's only the "edit" button at the top that makes the application
quite. I have restarted the application 3 times, and each time i
hit "edit" it happens all over again. Please HELP!
Why_atlYowsers! Have you restarted your computer? If it still does
that I'd try reinstalling Dreamweaver. If it still does it then I'd
probably call Adobe. -
I have an original iMac running on 10.4.11. Suddenly I could not sign on to my browser, although I was connected to the internet - with 4 bars. I would get signed on and then get kicked off because Safari was requesting a Keychain password. I never used keychain so did not have a password.
Eventually i tried to reload the original software, but am niow unable to get the computer restarted and startup disk is in the machine. I have tried to start by holding down the "C" key, but after the apple comes on it reverts to a "Darwin message"Try holding down the option key then power on. This brings up the startup manager. Click on your hd. Click on right arrow key.
What does the darwin mesage say?
Run hardware test.
The orginal iMac had a 15inch crt screen.
To eject the dvd.
power off your machine. hold down your left mouse button. power on your machine. This should eject the cd.
Eject cd
Here is a web page on twelve ways to eject the cd.
http://www.osxfaq.com/dailytips/01-2003/01-16.ws
On a PowerPC-based Macintosh (but not an Intel-based Macintosh), you may use Open Firmware to eject a CD or DVD disc when normal methods for ejecting it have not succeeded.
Immediately after the startup sound, press and hold the key combination Command-Option-o-f. Enter commands:
eject cd
mac-boot
http://docs.info.apple.com/article.html?artnum=106752 -
Why do I keep getting kicked off line when I'm in the middle of something
Why is it I keep getting kicked off in the middle of doing something
Try #5.
Some things to try first:
1. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
2. Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
3. Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
4. Go into your router security settings and change from WEP to WPA with AES.
5. Renew IP Address: (especially if you are droping internet connection)
• Launch Settings app
• Tap on Wi-Fi
• Tap on the blue arrow of the Wi-Fi network that you connect to from the list
• In the window that opens, tap on the Renew Lease button
6. Potential Quick Fixes When Your iPad Won’t Connect to Your Wifi Network
http://ipadinsight.com/ipad-tips-tricks/potential-quick-fixes-when-your-ipad-won t-connect-to-your-wifi-network/
~~~~~~~~~~~~~~~~~~~~~~~~~
iOS 6 Wifi Problems/Fixes
How To: Workaround iPad Wi-Fi Issues
http://www.theipadfan.com/workaround-ipad-wifi-issues/
Another Fix For iOS 6 WiFi Problems
http://tabletcrunch.com/2012/10/27/fix-ios-6-wifi-problems-ssid/
Wifi Doesn't Connect After Waking From Sleep - Sometimes increasing screen brightness prevents the failure to reconnect after waking from sleep. According to Apple, “If brightness is at lowest level, increase it by moving the slider to the right and set auto brightness to off.”
Fix For iOS 6 WiFi Problems?
http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
iOS 6 iPad 3 wi-fi "connection fix" for netgear router
http://www.youtube.com/watch?v=XsWS4ha-dn0
Apple's iOS 6 Wi-Fi problems
http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
~~~~~~~~~~~~~~~~~~~~~~~
How to Fix a Poor Wi-Fi Signal on Your iPad
http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Fix-A-Poor-Wi-Fi-Signal-O n-Your-iPad.htm
iOS Troubleshooting Wi-Fi networks and connections http://support.apple.com/kb/TS1398
iPad: Issues connecting to Wi-Fi networks http://support.apple.com/kb/ts3304
WiFi Connecting/Troubleshooting http://www.apple.com/support/ipad/wifi/
How to Fix: My iPad Won't Connect to WiFi
http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
iOS: Connecting to the Internet http://support.apple.com/kb/HT1695
iOS: Recommended settings for Wi-Fi routers and access points http://support.apple.com/kb/HT4199
How to Quickly Fix iPad 3 Wi-Fi Reception Problems
http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
iPad Wi-Fi Problems: Comprehensive List of Fixes
http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
Connect iPad to Wi-Fi (with troubleshooting info)
http://thehowto.wikidot.com/wifi-connect-ipad
Fix iPad Wifi Connection and Signal Issues http://www.youtube.com/watch?v=uwWtIG5jUxE
Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
How To Fix iPhone, iPad, iPod Touch Wi-Fi Connectivity Issue http://tinyurl.com/7nvxbmz
Unable to Connect After iOS Update - saw this solution on another post.
https://discussions.apple.com/thread/4010130
Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
~~~~~~~~~~~~~~~
If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
Cheers, Tom -
Application kicks off upon startup
My daughter loaded the skype application onto my MacBook Pro. Now every time I start or restart the MacBook, the skype application kicks off. I have looked through all the skype screens and system settings on my MacBook, and can't figure out how to turn this off. Can anyone help?
Go to System Preferences > Accounts, click the Login Items tab, select Skype in the list of login items, and click the "-" button below the list.
Maybe you are looking for
-
How can I remove iMessages from my iPad?
I gave my grandmother my iPad and she is receiving my iMessages. She is not very tech savy so I can not have her remove it herself and she lives in a different country. Is there a way I can do it through my computer so she can stop seeing my messages
-
How to identify 'Ctrl+M' character in a file.
Hi! I have a problem in identifying 'Ctrl+m' or 'Ctrl+M' character in a given String or a file. Any one knowing, how to achieve this is Welcomed. This character(Ctrl+M) is not visible in DOS-Editor, Notepad, Eclipse, or TextPad. I can identify this c
-
Always open window full screen
I have this app called SizeUp that allows me to use a key combo or mouse to make the window full screen, for all different types of apps I run on the Macbook pro. This does it's job well. What I really want is for all windows to do this by default
-
Importing Digital8 Video from Camcorder
I am having problems importing digital8 video from a Sony camcorder. The import process starts out fine with each clip tagged with the correct date the video was shot. At some point, the import process results in a clip for each second or so of video
-
Skype name and password didnot recognized
Hi, Please advise for my problem above Many Thanks,