Several scripts on an event
Possible to have more than one script on an event. I have a series of lists of radio and after the selections, a button is pressed and then the selection is displayed in the header and footer. Based on one of the rooms there is a warning that should appear on the first page footer. How could I get the warning to appear? I tried to find the answer in the forum, but could not find anything similar to this. Any help on this is appreciated, thank you very much.
Hello
The color red did not post
When you access objects on the Master Page, you need to address the node. For example:
xfa.resolveNode("#pageSet.Page1.Header").rawValue = text;
Hope that it fixes. If this is not the case, check the Javascript Console.
Niall
Tags: Adobe LiveCycle
Similar Questions
-
several alerts to an event in iCal
Is it possible to apply several alerts to an event in the calendar. I often have an event and I want to be alerted to tell about the week before and then 1 day before
Hello
You can change the settings in calendar > Preferences > alerts (events)
There is an easy way to access the calendar > Preferences. Just use the command, the shortcut key (comma).
-
How to create a report of vm-info of several scripts?
Hello
I combined several scripts for the following and it ceates 4 correct outputfiles.
But it is possible to create a 1fichierdesortie with all the lines?
Thank you, Robert
Initialization section *.
##################################
Declaring global and static variables
VMware VirtualCenter server name
$vcserver = 'coat '.
Path to the output file
$outputfile1="D:\Output_scripts\VMware\VMinfo_part1.csv".
$outputfile2="D:\Output_scripts\VMware\VMinfo_part2.csv".
$outputfile3="D:\Output_scripts\VMware\VMinfo_part3.csv".
$outputfile4="D:\Output_scripts\VMware\VMinfo_part4.csv".
$outputfile_total="D:\Output_scripts\VMware\VMinfo_Total.csv".
#################
Add VI-toolkit
#################
Add-PSsnapin VMware.VimAutomation.Core
Initialize - VIToolkitEnvironment.ps1
to connect-VIServer $vcserver
************* Start Process 1 *********************************************
$report1 = @)
Get - VM | % {
$vm = $_ | Get-VMGuest
$row = "" | Select VMname VMTools, IPAddr1, IPAddr2, IPAddr3, OsFullName, host name
$row. VMname = $_. Name
$row. VMTools = $vm. State
$row. Host name = $vm. Host name
$row. IPAddr1 = $vm. IPAddress [0]
$row. IPAddr2 = $vm. IPAddress [1]
$row. IPAddr3 = $vm. IPAddress [3]
$row. OsFullName = $vm.osfullname
$report1 += $row
}
$report1 | Sort - property VMname | Export-Csv $outputfile1 - NoTypeInformation
************* Start Process 2 *********************************************
$Report2 = @)
Get - vm | % {
$vm = get-view $_.ID
$row = "" | Select-Object VMname, VMState, TotalNics, TotalCPU "TotalMemory Mb.
$row. VMname = $vm. Name
$row. VMState = $vm.summary.runtime.powerState
$row. TotalNics = $vm.summary.config.numEthernetCards
$row. TotalCPU = $vm.summary.config.numcpu
$row. {TotalMemory MB} = $vm.summary.config.memorysizemb
$report2 += $row
}
$report2 | Sort - property VMname | Export-Csv $outputfile2 - NoTypeInformation
************* Start Process 3 *********************************************
$report3 = @)
Get - vm | % {
$vm = $_
$disksize = (($_ | get-harddisk | mesure-objet-propriété CapacityKB-somme).) Sum) / 1 Mb
$_ | Get-Datastore. Where-Object {$_.} Type - eq "VMFS"} | % {
$row = "" | Select "Disc Total GB" data store, Aantaldisks, VMname
$row. VMname = $vm. Name
$row. Aantaldisks = $vm. Harddisks.Length
$row. Data store = $_. Name
$row. {Total GB drive} = $disksize
$report3 += $row
}
}
$report3 | Sort - property VMname | Export-Csv $outputfile3 - noTypeInformation
************* Start Process 4 *********************************************
$ROTAP = @{name = "ROTAP"; Expression = {$_.} CustomFields.Item ("ROTAP")}}
$User = @{name = 'User'; Expression = {$_.} CustomFields.Item ("User")}}
$Description = @{name = 'Description'; Expression = {$_.} CustomFields.Item ("Description")}}
Get - VM | Select-Object - property 'name', $ROTAP, $User $Description | Sort - Name property. Export-Csv $outputfile4 - noTypeInformation
************* End Process ***********************************************
Disconnect-VIServer-confirm: $false
Run the Export - Csv cmdlets 4 each write a specific table in the CSV file.
Each group has different properties or columns if you want to make the analogy with the CSV file.
Because you can't have a CSV file with different columns that will not be possible as far as I know.
An alternative could be that you collect all the information in a line that has all the properties.
This way you go you end up with 1 table that you can export to CSV file 1.
Here's how it could be done for the first 2 CSV files
Get-VM | % { $vmGuest = $_ | Get-VMGuest $vm = Get-View $_.ID $row = "" | Select VMname, VMTools, IPAddr1, IPAddr2, IPAddr3, OsFullName, Hostname, VMState, TotalNics, TotalCPU, "TotalMemory Mb" $row.VMname = $_.Name $row.VMTools = $vmGuest.State $row.Hostname = $vmGuest.Hostname $row.IPAddr1 = $vmGuest.IPAddress[0] $row.IPAddr2 = $vmGuest.IPAddress[1] $row.IPAddr3 = $vmGuest.IPAddress[3] $row.OsFullName = $vmGuest.osfullname $row.VMState = $vm.summary.runtime.powerState $row.TotalNics = $vm.summary.config.numEthernetCards $row.TotalCPU = $vm.summary.config.numcpu $row.{TotalMemory Mb}= $vm.summary.config.memorysizemb $report += $row } $report | sort -property VMname | Export-Csv $outputfile -NoTypeInformation
As the basis of each report is the loop through all the guests (Get - VM cmdlet) should be quite easy to incorporate the other 2 files CSV in a similar way.
-
RH11 Registry Script customized for event parameters are not saved
I added a script customized to my 11 RoboHelp project. In the dialog box Save event I enter my function to call and select the PostWordDocUpdate event. I then click OK , and then save it in my project. If I close the project and re - open the event is registered is no longer so I need to perform this task, everytime I open the project. Is it possible to have the registration of the registered event?
The dialog box that show you is only for the registration of a new event. In the Script Explorer module, click the icon of a calendar with a 1 on it. This will give you a list of all recorded events. Is your event included in this list?
-
AppleScript: How can I attach a script to an event?
I have an applescript script that create a PDF and upload to a specific destination. (see below)
I want to call this script whenever the user "saves" the doc.
I am a novice when it comes to applescripting InDesign... I don't know if its possible to attach a script to the function "Save"?
I guess I need to incorporate an event listener? Yet once, I guess. Perhaps there is a better way? attach the script to the command-s key combination?
the goal is to give the user the ability to send a PDF file, whenever they record a document.
Here's the script to this day:
......................
the _ExportPDF value (display dialog "sending proof?") with the icon warning buttons {'Cancel', 'PDF'} ( default 2)
Tell application "Adobe InDesign CS6"
If the back button _ExportPDF is 'PDF' then
Set myFolder ' PDFProofs:
the dest myFolder as text Unicode value
the value screenSettings PDF export preset "[high quality Print]."
Set page range of PDF export preferences to all pages
the docName document name value 1
If docName ends with ".indd" then
the docName text 1 thru-6 of docName value
end if
Tell application "Adobe InDesign CS6"
Export 1 document format type PDF to (dest & docName ".pdf") using the screenSettings without options
adapted from the document If active is true then
say active document for Save
close document 1
end if
(*
According to the PDF export preferences
See the PDF set to true
tell the end
*)
tell the end
end if
tell the end
......................
I thought about it.
an event listener must be placed in the folder of InDesign startup scripts
This script listening to Save events... more precisely: afterSave, afterSaveAs, afterSaveACopy
(he could listen for other events as well, but I'm only interested in recording after functions)
I wanted to start my upload PDF script after all these events... so the script was very simple
Tell application "Adobe InDesign CS6"
Set myEventNames to {"afterSave", 'afterSaveAs', 'afterSaveACopy'}
Repeat with myEventName in myEventNames
make the listener event with properties {event type: myEventName, handler: ' Macintosh HD:Applications:Adobe InDesign CS6:Scripts:Scripts Panel: Samples:AppleScript:PDFUpload.scpt '}
end repeat
tell the end
the path to my applescript PDFUpload = Manager
one and done
Thanks for all your help! R
-
ESXi installs several scripts and other questions fun!
Hello
I've been messing around with a USB stick and have a first installation works well (after a lot of messing around!) I wish I had installed several out there so I can just choose a facility and off it goes my syslinux.cfg is below:
label rebuild Server 1
menu label ^ rebuild Server 1
kernel mboot.c32
Add vmkboot.gz ks = usb---vmkernel.gz---sys.vgz---cim.vgz---ienviron.vgz---install.vgz---mod.tgz
label rebuild Server 2
menu label ^ rebuild Server 2
kernel mboot.c32
Add ks2 vmkboot.gz usb---vmkernel.gz---sys.vgz---cim.vgz---ienviron.vgz---install.vgz---mod.tgz =
I made a copy of the cfg file and renamed it to ks2 and added that ks2 = usb. I have no idea why the first works and is not the other. Obviously, I'm not that linux savvy and someoen can point me if all is well in the right direction.
The second question I have is - how the hell can we change the keyboard available UK? Is it possible to add a script?
The very, very last question is... is - it possible to deploy HP Systems Insight Manager by script?
Thanks a lot, a lot, if you've read so far!
In addition, you my want to specify a path of your the KS.cfg isolinux.cfg file. Also, so that this works, you must specify the path to uppercase. your isolinux.cfg may resemble
label Rebuild Server 1 menu label ^Rebuild Server 1 kernel mboot.c32 append vmkboot.gz ks=usb:/KS.cfg --- vmkernel.gz --- sys.vgz --- cim.vgz --- ienviron.vgz --- install.vgz --- mod.tgz label Rebuild Server 2 menu label ^Rebuild Server 2 kernel mboot.c32 append vmkboot.gz ks2=usb:/KS2.cfg --- vmkernel.gz --- sys.vgz --- cim.vgz --- ienviron.vgz --- install.vgz --- mod.tgz
FWIW. We identify our files kickstart with the host name of the ESXi Server
-
Problems with the script to output event
In fact I don't know if I have a problem with the Exit event or if there is something wrong with my script syntax... The output of a field event, I check if the field is empty or not and check a flag I put in place.
The first if statement works - if I get back a value in the field, everything goes as planned. If I delete the value of the field, nothing happens.
//if field has a value hide subSection04 if (!(this.rawValue == null || this.rawValue.length == 0)) { subSections.subSection04.presence = "hidden"; } //if field is empty and flag equals true show subSection04 else if ((this.rawValue == null || this.rawValue.length == 0) && (subFlags.Commercial.rawValue == true)) { subSections.subSection04.presence = "visible"; } //if field is empty and flag equals false hide subSection04 else if ((this.rawValue == null || this.rawValue.length == 0) && (subFlags.Commercial.rawValue == false)) { subSections.subSection04.presence = "hidden"; }
There are a few groups radio button that also control this behavior, they are all inter relate. So I tried also triggers the Click event of a radiobutton Group (which resembles the value in this field) out of this area, but that doesn't seem to work.Hi Jono,
Your expression subFlags.Commercial.rawValue is true compares a String data type with a Boolean data type.
Edit the expression as subFlags.Commercial.rawValue is 'true'
I hope that this should work for you.
Your code should look like
//if field has a value hide subSection04 if (!(this.rawValue == null || this.rawValue.length == 0)) { subSections.subSection04.presence = "hidden"; } //if field is empty and flag equals true show subSection04 else if ((this.rawValue == null || this.rawValue.length == 0) && (subFlags.Commercial.rawValue == "true")) { subSections.subSection04.presence = "visible"; } //if field is empty and flag equals false hide subSection04 else if ((this.rawValue == null || this.rawValue.length == 0) && (subFlags.Commercial.rawValue == "false")) { subSections.subSection04.presence = "hidden"; }
Nith
-
No matter which web page opening causes crashes and several scripts does not
Once I open firefox, it hangs on nearly every Web page. After a few minutes, a script error does not appear. The shutdown script does nothing most of the time. Most often, one to ten more script errors does not answer will appear. I tried reset firefox and firefox running in safe mode, neither of which has helped the problem.
I had this problem recently, after Windows updates on all sites that use Flash. It is many, many sites...
It is a standard orientation which addresses the most common issues with Flash. I'm sure you've seen some of it before, but just in case:
(1) make sure that all recorders/downloaders who interact with the Flash media are as up-to-date as possible, or turn them off.
(2) disable graphics hardware acceleration in Firefox and Flash
(A) in Firefox, see the post above
(B) in Flash, see this article from Adobe technical support: http://helpx.adobe.com/flash-player/kb/video-playback-issues.html#main_Solve_video_playback_issues
(3) turn off protected mode (Windows Vista/7/8)
See this article from Adobe support under the heading of 'Last resort': Adobe Forums: how to fix protected Flash Player for Firefox mode?
-
create subroutines for several structures of the event and common stop button
Hi guys,.
I wonder if there is a better way to design algorithm below scenerio that similar technical rehearsal for each structure of the event.
Please find in annex vi where I designed the code to a boolean (D). I want to design a similar code for all other bolleans. (In the present design code, photo is displayed when the mouse is flown over D). I obviously have other pictures for the other,(A,B,C,E,F) booleans. Can we have a kind of subroutines for other Boolean types and a single stop for all the application button.
Thank you very much in advance for your support.
Sorry (I forgot to add vi) Please find attached.
-
Creating and reading a variable of several scripts
I'm creating a series of scripts to our helpdesk and one of the things we're trying to do is play critical for users when troubleshooting connects to the system before being queued. However, we want to be able for that turn on or off depending on whether there are no failures.
I record outages in help desk in a script, and I give them also the ability to switch a variable in this script as to if the failure Prompt critical should play or not.
The question I have is how to read the value of this variable in my main script? What is the best way to achieve this?
Why not write the value of the variable (power) in an XML file?
See the attached file.
Please rate of messages.
adignan-
-
There are several scripts that I can't use.
I loaded the scripts in my library of Muse, I can see them using the text tool. But I can't click on them.
It is disabled for most scripts. How it should work?
So you see, I can use the grand Fredericka.
This does not work for Cantarell.
I chose yesterday, but cannot use it.
What I am doing wrong?
Yes I use CC - otherwise I couldn't use Fredericka grand and a few others.
Thanks in advance
Uwe
Hello Fotoroeder,
What is happening with all the sites of muse or a specific? Create a new site and try to add the same font in a text box.
If you are faced with the same question in the new site then I advise you to reset the preferences of Muse by renaming a folder of preferences on your machine.
You can find the file in the following location
Windows:
C:\Users\(username)\AppData\Roaming {replace (username) with your windows user name}
Once rename com.adobe.AdobeMuseCC.2015.0 com.adobe.AdobeMuseCC.2015.0_old
MAC:
Go to Finder > go > go to folder
type ~/library/preferences and press return
Once rename com.adobe.AdobeMuseCC.2015.0 com.adobe.AdobeMuseCC.2015.0_old
Be sure Muse of output before you rename the folder.
In case the problem still persists please let me know.
Kind regards
Vivek
-
Several scripts currently running a cmdlet
Hi all
I have a few .ps1 scripts I want to run from a single cmdlet.
Currently in my cmdlet, I have the following:
PowerShell-command "&"C:\MyScript01.ps1"
It works fine, but when I add a second, I get the following error.
PowerShell-command "&"C:\MyScript01.ps1"
PowerShell-command "&"C:\MyScript02.ps1"
Results
The term 'C:\MyScript02.ps1' is not recognized as the
name of a cmdlet command, function, script file or executable program. Check the spelling of the name, or if a path has been included
check that the path is correct and then try again.
On line: 1 char: 2
+ & < < < < "C:\MyScript02.ps1".
+ CategoryInfo: ObjectNotFound: (C:\vHealthCheck...ndMemReport.ps1:String)], CommandNotFoundException
+ FullyQualifiedErrorId: CommandNotFoundException
How can I add a second line?
It should work, are you sure of what c:\myscript02.ps1 is?
-
How to use several scripts in a single .fla file
Hi, I make a small game and do not want to have thousands and thousands of lines of code to deal with. I was curious to know if there was a way to use another script to a different level in my game.
Probably, but it is not clear what you mean. You can have the code divided and planted in as many places as you please you most of the time. But you will always have the same thousands of lines to deal with.
-
Have several scripts for a custom button
Can I run different scripts when you click on the same custom button based on the selection in a menu object drop down? The selection in the drop-down list determines what script runs.
For example: If the drop-down list selection is 'A' - sustom button executes A script
If the drop-down list Selectionin is 'B' - the same custom button runs only script B.
Note: Each script contains a small number of cases
How do I script that?
You must use an if... else statement.
If (list == 'A') {}
do things;
}
ElseIf (drop-down list == 'B') {}
do other things;
}
ElseIf (etc.) {}
do more things;
}
And you can nest if statements inside the other if statements.
-
How spool out put of several scripts and get a single spool output file
Hello
I have a master script that calls three other scripts. The three scripts produce their own files of spooling. But I would like to have the master script also produce a single output (in addition to the release of three individual, I mean). How to do this? Can you please help.
When I run the above script m.sql it does not produce the other 3 log files (1.log, 2.log etc.), but m.log (which is master log file which should have output of each of the three call script) is an empty file with 0 bytes!Following are the scripts: --m.sql (master script) spool c:\m.log @1.sql @2.sql @3.sql spool off --1.sql spool c:\1.log insert into test values(1); commit; spool off --2.sql spool c:\2.log insert into test values(2); commit; spool off spool c:\3.log insert into test values(3); commit; spool off --table used SQL> desc test Name Null? Type ----------------------------------------- -------- ---------------------------- A NUMBER
Thank you
Published by: orausern on May 1st, 2011 03:17Try this:
sqlplus uid/pwd @m.sql >AllSpools.log
PS: Add a statement of 'exit' at the end of the main script.
: p
Maybe you are looking for
-
my firefox crashes every half hour more or less... I've reported no result
Signature of the problem: Problem Event Name: APPCRASH Application Name: firefox.exe Application Version: 29.0.1.5239 Application Timestamp: 5369959a Fault Module Name: StackHash_c210 Fault Module Version: 6.1.7601.18247 Fault Module Timestamp: 521ea
-
How to get the contents of drive E: on Equium P300-16 t?
With the help of PartitionMagic, lost access to the partition that has been drive E: (the data partition). Fortunately, every thing is fine. But how to recreate or get a new copy of the recovery of files that were on the E: drive? PC is Equium P300-1
-
Re: Need drivers for the A300 Satellite iBH
Hello I just formatted my laptop, and because I lost the restore disc I'm trying to find the drivers on the toshiba site. But I can not find the network controller, one, nor storage massive one, can someone help me please? Thank you very much!!
-
Poor/little reliable Lenovo P500 wifi signal
Recently, I bought my new Lenovo ideapad p500... and like most of the time. I dealt with some very unstable wireless connections with this machine. Another device, not more than 2 feet of distance and equidistant to the router, a full signal, yet my
-
LAKE and Rad_error_nocontent problem of model 4.5.0.77
Hello After have released an app with this code to get location area Code and withouth Rad_error_nocontent any problem with devices with os 4.3 or more, using: GPRSInfo.getCellInfo () .getLAC) GPRSInfo.getCellInfo () .getCellId) But in an operating s