Help with a date field script

Sorry if this is a repeat. I was interrupted and found that my browser crashed when I'm new so I don't know if the question arises.

I need a script for a date (mm/dd/yyyy) field where the user can fill only a date that is between 12/31/1899 and the current date (no matter what the date when the form is open). I'm getting to write this but I could not with this one. Any help would be greatly appreciated.

Thank you!

I have a feeling that I already answered this question some time ago... Anyway, you can use this code as a script custom validation of the field:

var minDate = util.scand("mm/dd/yyyy", "12/31/1899");
var maxDate = new Date();
event.rc = true;
if (event.value) {
    var d = util.scand("mm/dd/yyyy", event.value);
    if (dmaxDate) {
        app.alert("Error! The entered date must be between " + util.printd("mm/dd/yyyy", minDate) + " and " + util.printd("mm/dd/yyyy", maxDate));
        event.rc = false;
    }
}

Tags: Acrobat

Similar Questions

  • Need help with the data storage store, local array and network connections

    Need help with my ESXi 4.1 installation

    My hardware:

    I built a server with an Asus P6T whitebox, i7 920, 12 Gig RAM, NIC, Intel Pro1000 PT Quad, 3ware 9650SE-12ML with 8 1.5 TB SATA green in a raid 6 array gives me about 8 + TB with a spare drive all housed within a NORCO RPC-4220 4U Rackmount Server chassis.  I also have a 500 GB SATA drive which will hold the ESXi and virtual machines.

    The network includes a firewall, Netgear Prosafe FVS336G, GS724Tv of Netgear ProSafe 24 port Gigabit Managed Switch on a dhcp cable modem internet service provider.

    I also have 2 old NetGear SC101T NAS disks (4to) I want to connect to the system how some - at a later date have... data on them and want to transfer to the new storage array. I always looking into the question of whether they will work with ESXi 4.1, or I might have to only access it through Windows XP.

    My Situation:

    I have already installed ESXi 4.1 and vsphere client with no problems and it is connected to a dhcp cable internet service.  I've set up host via a dynamic DNS service name give me a static hostname on the internet.  I installed three machines to virtual OS successfully at the moment and now want to first start by creating a multimedia storage server which will use some of this new 8 TB array, then separate data storage for use with a web server small overhead storage and a backup.  It is a domestic installation.

    Help with the data store and network:

    I was doing some reading, because I'm new to this, and it looks like I'll probably want to set up my table via ESXi as a nfs disk format.  Now, the data store is usually in another physical box from what I understand, but I put my readers and ESXi all in the same box.  I'm not sure that the best way to put in place with grouped network cards, but I want to make this work.

    I understand that in ESXi 4.1 using iSCSi LUN must be less than 2 TB, but nfs - I should be able to add a bigger partition then 2 TB (for my multimedia) in nfs, right? or should I still add it separately as a separate 2 TB drives and then extend them to get the biggest space.

    Any suggestions or direct resources showing examples on how to actually add some parts of the table as data warehouses separate nfs.  I know that to go to the configuration tab, and then select Add to storage, and then select nfs. I have not my picture, but it's here that I don't know what to do because ESXi 4.1 system already has an address, should I put the same thing to the new data store array also (will it work?), and what should I use for the name of the folder and the store of data... just do something to the top.  I thought to later install Openfiler (for a multimedia storage using this table server) as a virtual machine, use the table with esxi so that I can access the same storage space with widows and linux-based systems.

    I also know I have to find a way to better use my quad nic card... put in place of virtual switches, grouping, etc HELP?

    Any direction, assistance, similar facilities to sample, suggestions or resources that would help would be great. I did a lot of hunting, but still a little confused on how to best to put in place.

    You must think of VMDK files of large databases with records of random size guest go read some data (a DLL or an INI file), maybe write some data back, then go read other data. Some files are tiny, but certain DLLs are several megabytes. It's random i/o all and heavy on the search time. IO Opsys is small random operations that are often sequential (go read data, write data, go read other data,...) so that deadlines are critical to the overall performance. That's why people say OPS are / s of reference and forget the MBs flow. The only time where you bulk transfers are when you read media (ISO files).

    Well, now forget all this. Actually the disk activity will depend on the specific applications (database? mail server? machines compiler?), but the above is true for boots, and whenever applications are idle. You should see the profile to know.

    RAID 10 is faster (and often more reliable) than RAID 5 or RAID-6 except in certain specific cases. In General RAID 10 is ideal for many random writes, since the calculation of parity for RAID-5 and - 6 adds to the overall latency between command and response - latency is cumulative if a little slow here and a little slow it adds up to a lot of overall slow synchronous especially with e/s on a network. OTOH RAID-5 and -6 can produce faster readings due to the number of heads, so you can use it for virtual machines that transfer bulk. Test. You may find that you need several different types subdashboards for best results.

    You said 3ware, they have some good grades on their site, but don't believe it. With my 9650 that I found myself with only a couple of their recommendations-, I put the (simple) table for allocation size 256 k, nr_requests at 2 x the queue_depth and use the planner date limit. I had the habit for the Ext4 file system formatted with stride and stripe-width synced to the table and used the options large_files with fewer inodes (do not use the huge_files option unless you plan to have single VMDK files in the terabyte range). Use a cache of great reading in advance.

    Virtual machines use VMDK files in all cases except raw iSCSI LUN that they treat native disks. VMDK is easier to manage - you can make a backup by copying the file, you can move it to a PC and load it into another flavour of VMware, etc. There could be some features iSCSI to your San as a transparent migration but nothing for me. NFS has less chatter of Protocol if latency lower times to complete an operation. NFS is good to read and write a block of data, that's all it boils down to.

    UPS is good, but it won't help if something inside the machine explodes (UPS does nothing if the PC power supply goes down). If the RAID card has an option for a battery backup module, so it can contain some writings in memory and may end up the disk i/o after replacing the power supply. 3ware also limits the types of caching available if help is not installed, and you get just the right numbers with the module.

  • Please help with dynamic form field names in cfloop

    Hello

    I need to create a form with day, date, month, year and time for 12 months

    Instead of coding them 12 times, I create fileds day, date, month, year and hour in my form 1 time, then I use cfloop from = "1" to "12" = index = 'i' to these fields in form loop 12 times.

    I gave each form field name such as: < input type = "text" name = "' ScheduleDate_ # I #" value ="" > this way, each of these fields will be named differently: ""

    ScheduleDate_1, ScheduleDate_2, ScheduleDate_3, ScheduleTime_1, ScheduleTime_2, etc.

    I am facing problem when this form is sent, I think that the error has something to do with the number sign (#) when it comes to update the back-end

    I use MS SQL

    He doesn't like this:

    < CFLOOP From="1" To="12" index="k">

    < CFIF Len(Trim(Form.MeetYear_#k#)) NEQ 0 AND Len(Trim(Form.MeetTime_#k#)) NEQ 0>

    < cfquery name ='CreateSchedule' datasource =' #DSN # '>

    UPDATE TableSchedule

    The VALUE SchedDay = < cfqueryparam cfsqltype ="cf_sql_varchar" value ='#form. SchedDay_ # k'>.

    SchedMonth =

    < cfqueryparam cfsqltype ="cf_sql_varchar" value =' #form. . "AnnMonth_ # k '>.

    SchedDate =

    < cfqueryparam cfsqltype ="cf_sql_varchar" value =' #form. . "SchedDate_ # k '>.

    SchedYear =

    < cfqueryparam cfsqltype ="cf_sql_varchar" value =' #form. . "AnnYear_ # k '>.

    SchedTime =

    < cfqueryparam cfsqltype ="cf_sql_varchar" value =' #form. . "Anntime_ # k '>

    SchedId = < cfqueryparam cfsqltype ='cf_sql_numeric' value =' #k # '>

    < / cfquery >

    < / CFIF >

    < / CFLOOP >

    Can anyone help please?

    You cannot nest sharps. Do this instead:

    SET SchedDay =

    Dave Watts, CTO, Fig Leaf Software

    http://www.figleaf.com/

    http://training.figleaf.com/

  • Need help with substring data

    Having problems reading CLOB data > 32000 and thought that maybe I can load the data into 3 separate columns less than 32000 k each.

    I tried to substring of a part of it first to see if it worked.

    DDL

    CREATE TABLE 'E406702 '. "" DSR3 ".

    (

    "RECORDNO' CHAR (8 BYTES),

    'DOCUMENTUNIVERSALID' CHAR (32 BYTES),

    "CREATIONDATE" TANK (30 BYTES),

    VARCHAR2 (250 BYTE) "ETL_STATUS."

    VARCHAR2 (4000 BYTE) "DSRDESCRIPTION."

    VARCHAR2 (4000 BYTE) "FORM."

    'REQUESTID' VARCHAR2 (4000 BYTE)

    )

    CONTROL FILE

    DOWNLOAD THE DATA

    INFILE 'DSR2DATA.txt' ' str "\r '"

    ADD

    IN THE DSR3 TABLE

    FIELDS TERMINATED BY ' <: s: >.

    (RecordNo CHAR (8),

    DocumentUniversalID TANK (32),

    CreationDate CHAR (30),

    CHAR ETL_STATUS (250).

    DSRDescription TANK (32700) "substr(:DSRDescription,1,32)."

    SHAPE TANK (4000).

    RequestId TANK (4000))

    Doing this, that I was able to load half of my files.

    Check the newspaper and saw


    SQL * Loader: release 11.2.0.1.0 - Production on sea Feb 19 09:40:40 2014

    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

    Control file: c:\mytest7\DSR3CONTROL.txt
    Data file: DSR2DATA.txt
    Chain of the treatment of the files option: ' str "\r '"
    Bad leadership: c:\mytest7\DSR3CONTROL.bad
    Discard File: none is specified

    (Allow all releases)

    Number of loading: ALL
    Number of jump: 0
    Authorized errors: 50
    Link table: 64 lines, maximum of 256000 bytes
    Continuation of the debate: none is specified
    Path used: classics

    Table DSR3, loaded from every logical record.
    Insert the option in effect for this table: APPEND

    Column Position Len term Encl. Datatype name
    ------------------------------ ---------- ----- ---- ---- ---------------------
    RECORDNO FIRST 8 CHARACTERS
    String endpoint of: "<: s: > '"
    DOCUMENTUNIVERSALID THEN 32 CHARACTERS
    String endpoint of: "<: s: > '"
    CREATIONDATE THEN 30 CHARACTERS
    String endpoint of: "<: s: > '"
    ETL_STATUS THEN 250 CHARACTERS
    String endpoint of: "<: s: > '"
    DSRDESCRIPTION CHARACTER THEN 32700
    String endpoint of: "<: s: > '"
    The SQL string for the column: 'substr(:DSRDescription,1,32) '.
    TRAIN THEN 4000 CHARACTERS
    String endpoint of: "<: s: > '"
    REQUESTID THEN 4000 CHARACTERS
    String endpoint of: "<: s: > '"

    value used for the parameter LINES increased from 64 to 6
    Record 79: Rejected - error on the DSR3 table.
    ORA-01461: can bind to a LONG value only for insert into a LONG column

    Record 82: Rejected - error on the DSR3 table.
    ORA-01461: can bind to a LONG value only for insert into a LONG column

    Record 94: Rejected - error on the DSR3 table.
    ORA-01461: can bind to a LONG value only for insert into a LONG column

    Recording 160: Rejected - error on the DSR3 table.

    What is the problem that.   My goal was to make it work and then try to perform the following operations:

    Change the ddl to

    'DSRDESCRIPTION' CLOB,

    'DSRDESCRIPTION1' CLOB,

    'DSRDESCRIPTION2' CLOB,

    Change the control for this file.

    DSRDescription TANK (32700) "substr(:DSRDescription,1,32700)."

    DSRDescription2 TANK (32700) "substr(:DSRDescription,32701,65401)."

    DSRDescription3 TANK (15000) "substr(:DSRDescription,65402,80000)."

    Is - this bad way to go on this subject?

    If you can load data without any problem and read-only is a problem then you can use SUBSTR and concate (|) to read the entire string. Something like this:

    Select substr (DSRDescription, 1, 32000) | substr (DSRDescription, 32001, 64000) | dsr3 substr(DSRDescription,64001);

    or

    with the data as

    (

    Select substr (DSRDescription, 1, 32000) in the DSRDescription of dsr3

    Union of all the

    Select substr (DSRDescription, 32001, 64000) in the DSRDescription1 of dsr3

    Union of all the

    Select substr(DSRDescription,64001) in the DSRDescription2 of dsr3

    )

    Select * from data;

    Onkar

  • Need help with vSphere data script, packaging and sending it to the data warehouse

    Greetings PowerCLI gurus.


    Everyone can offer suggestions on a script which can query vSphere and pull on the following fields of the virtual computer:

    NameStateStatusHostSpace in useSpace used

    Format in a file in the CSV format and send the file to an FTP server?

    Much respect to all, thanks a lot in advance.

    Hello-

    Happy to help you.

    OK, well, if this database is accessible through a UNC path, you might make a copy directly using Copy-Item.  If you use different credentials, you can encrypt and store in an XML file.  HAL Rottenberg wrote to do http://halr9000.com/article/531.

    Or, if this pension data is something that supports the secure copy (scp) or secure FTP (SFTP), those who would be good options.  Again, you can store the alternative credentials in an encrypted in an XML file format and use them as needed.

    Certainly, there is a balance to be struck between security and ease of use.  It may be such that the transmitted data are not considered sensitive to all, and clear data transfers are acceptable.  Probably still a good idea to take measures to protect the credentials at least.

  • Help with the data store migration script

    Hey everybody,

    I am currently responsible for the migration of disks in new storage. Each virtual computer might have multiple disks on different data warehouses. The script I'm working on that will check the VM for the disks located on a certain store of data, then if necessary to migrate the disk to the new data store. However, I'm lost. I hope I'm at least on the right track. Any help is very appreciated.

    Thank you!

    $csv = import-Csv-Path "e:\scripts\hunter\vantage_qadev.csv".

    foreach ($ent in ($csv))

    {

    $ds = get-Datastore ' QADEV_OS_HUS127 * ' | Sort descending FreeSpaceGB | Select-Object - 1 first

    $vmname = get-VM-name $ent.vmnames

    $vmds = $vmname | Get-hard drive | Select file name

    If ($vmds - eq "* QADEVOS_VSP986 *") {Get - VM $ent.vmnames |} Get-hard drive | Moving-hard drive - Datastore $ds}

    Else {Write-Host "Migration without any preconditions"}

    }

    That's what I did to make it work. The fact it's supposed to I would say...

    $csv = Import-Csv -way "e:\scripts\hunter\vantage_prod.csv".

    foreach ($ent in ($csv))

    {

    $ds = Get-Datastore ' DST_PROD_OS_HUS127 * ' | Sorting FreeSpaceGB -down | Select-Object -First 1

    Foreach ($HardDisk in (Get-VM -name $ent.vmnames |)) (( Get - hard drive))

    {

    $vm = Get-VM -name $ent.vmnames

    $hds = Get - hard drive -VM $vm

    $lunname = Get-VM -name $ent.vmnames | Get - hard drive | Select-Object -Property @{N = "Datastore"; E = {$harddisk. FileName.Split("]") [0]. TrimStart("[")}}

    If ($lunname - like "* DM_PROD_OS_VSP986 *") {Get-VM -name $ent.vmnames |} Get - hard drive | Moving - hard drive { -Data store $ds -confirm: $false}

    else {Write-Host $ent.vmnames ' not migrated '}

    }

    }

    What is a better way to do it?

  • Help with the hidden field formula

    I have a table in the Acrobat document:

    1 box = data of registration of the user

    Box 2 = user registration data

    Box 3 = user registration data

    Box 4 = (box 1 * Box2 * Box3)

    Box 5 = the user's registration data

    Box (box 4 - box of 5) (6)

    The problem:

    During this table opens in the document all the fields must be blank for printing purposes.

    However, all fields are for a person to enter data, and then print to convenvience.

    What I need help on, creates a script that allows the box 4 and 6 box remain empty but also to fulfill their function and display a value of 0 if the service is validated as true.

    Example:

    Zone 1 = 2

    Area 2 = 2

    Zone 3 = 0

    Box 4 = (box 1 * Box2 * Box3) = 0

    Box 5 = 0

    Box 6 = (box 4 - box of 5) = 0

    Can someone help me with this? Let me know if other explanation or screenshots are needed.

    Thank you.

    You say that you only want to show a zero value in the computed fields if all entry fields are not empty, and the calculation result is zero? If so, a custom for the first calculation script could be something like:

    (function () {}

    Get the values of field as strings

    var v1 = getField("Box_1").valueAsString;

    var v2 = getField("Box_2").valueAsString;

    var v3 = getField("Box_3").valueAsString;

    If (v1 & v2 & v3) {}

    Perform the calculation

    Event.Value = v1 * v2 * v3;

    } else {}

    Event.Value = "";

    }

    })();

    The script for one another might be:

    (function () {}

    Get the values of field as strings

    var v1 = getField("Box_4").valueAsString;

    var v2 = getField("Box_5").valueAsString;

    If (v1 & v2) {}

    Perform the calculation

    Event.Value = v1 - + v2;

    } else {}

    Event.Value = "";

    }

    })();

  • Need help with the date of Validation Urgent

    Hello

    We need help in the Validation Date.

    We have 2 fields of Date on the form the Start Date, End Date

    The requirement is: End Date (cannot be more than 30 years as of the start date).

    I wrote after the script on the exit eventof the End Date . But the problem is its calculation of 30 years from the current Date not from the Start Date

    var

    tDate = util.scand (' mm/dd/yyyy', new Date());

    var

    M = tDate.getMonth ();

    var

    D = tDate.getDate ();

    var

    Y = tDate.getFullYear ();

    var

    SRes = util.printd("yyyy-mm-dd", new Date((Y+30), M,D) );

    App.Alert (SRes)

    If

    (SRes < = this.rawValue)

    {

    App.Alert ("cannot be greater than 30 years from the start date")

    () xfa.host.setFocus

    ce );

    }

    can someone help me please

    Kind regards

    Jay

    Hello

    You need to get the LCD field javascript and calculate & compare with the future date in date javascript.

    Try the following script.

    var sDate = StartDate.rawValue;
    var wkStartDate = util.scand ("yyyy-mm-dd", sDate);

    nYear var = wkStartDate.getFullYear ();
    nMonth var = wkStartDate.getMonth ();
    nJour var = wkStartDate.getDate ();

    var wkFutureDate = new Date (+ 30 nYear, nMonth, nJour);

    sDate = EndDate.rawValue;
    var wkEndDate = util.scand ("yyyy-mm-dd", sDate);

    If (wkEndDate.getTime () > wkFutureDate.getTime ()) {}
    xfa.host.messageBox ("cannot be more than 30 years from the start date");
    xfa.host.setFocus (this);
    }

  • Help with POST data if multiple selections are chosen

    I created a form with a menu (list) which includes all 50 States. I used the MESSAGE option, as well as PHP, to treat form data, which will be sent to me. The list menu looks like this: http://askdave.info/help/states_menu.gif and I have "Allow multiple selections" checked in the property inspector.

    If the user chooses several States, I want EACH of these States to be included in the email that I receive. Right now, if I check several States, I get only the latest state selected. For example, here is the email that I get after I check 5 different States. http://askdave.info/help/FormData.gif

    Problem-> in this email, only one State is indicated (Hawaii), even if I selected 5 different States. How can I get the data from the form to list all THE States that are checked?

    Here's what I have:

    < form name = "form1" method = "post" action = "process.php" >
    < input type = "hidden" name = "required" value = "name, phone, email, States, capital" / >

    And then for the menu that lists the States, I have:

    < label >
    < select name = 'States' size = '7' several id = 'States' >
    all States < option > < / option >
    Alabama < option > < / option >
    Alaska < option > < / option >
    Arizona < option > < / option >
    Arkansas < option > < / option >

    and so on...

    What Miss me? How can I get the PHP script to send multiple values, if multiple values are selected? (I'm new to PHP, so go easy on me.) I can post my code, if necessary.) Is this a PHP problem, or do I have to add something to the HTML form?

    Hello

    >>
    I think that DynaForm is synonymous with dynamic form
    >>

    This makes some sense ;-) I was wondering just because there is a pre-made script called DynaForm here, but it has a different 'Logistics' than yours.

    However, both "DynaForm" versions are pretty basic, because they deal only with non-multiple values - fields as a single line, texareas and select´s non-multiple of form input fields. Your script for example just loops through all the existing form fields using the method "foreach":

    Out of form fields and values.
    foreach ($this-> post as $field-online $value) {/ / loop through all form fields}
    If ($field == "required") continue;
    $this-> _addLine ($field, $value); Here´s where the field´s name/value consolidation happens
    }

    .. .and simply includes a 'value' with his 'name' associated field´s. The problem is: this method works, simply to have only 1 value - but any 'multiple value' form fields (for example your 'States' select or check box groups who spend several values as well) require a separate "foreach" in the script treatment, fields and this hasn´t been incorporated here.

    That said, I would suggest using another solution pre-made as PHP Form Mail script that s capable of managing your multiple values - scenario naturally.

  • Need help with simple if/then script

    I'm trying to replicate a simple if/then statement excel in a PDF form. Have tried several things, but am just not a scripter Java.  The hope that I could get help from the community.

    I have three boxes that contain information on costs. They are labeled LaborCost, MaterialCost & EquipmentCost. Later, in the form, I have two boxes of different output for the sum out of my first three boxes.  If it's a positive number and the other is a negative number.  In Excel forumla language, that's what each of the boxes would read as:

    For the 1st result if it is a positive number: @if (+ LaborCost + MaterialCost + EquipmentCost > 0, + LaborCost + MaterialCost + EquipmentCost, 0)

    For the 2nd result if it is a negative number: @if (+ LaborCost + MaterialCost + EquipmentCost < 0, + LaborCost + MaterialCost + EquipmentCost, 0)

    I think that this should be a simple thing to write, but I'm not familiar with the games of the appropriate language.

    Your colletive help is VERY appreciated.

    Steven

    Try following the calculation script customized:

    // Sum the field values, as numbers
    var sum = +getField("LaborCost").value;
    sum += +getField("MaterialCost").value;
    sum += +getField("EquipmentCost").value;
    
    // Set this field value
    event.value = sum > 0 ? sum : 0;
    

    For others, change the last line:

    Event.Value = sum< 0="" sum="" :="">

  • Help with the protected fields

    Hi all

    I have a form that has several fields. Of those, some are protected fields that are intended only for the administrator, rest are intended for users in general. General users should submit the form by filling out only the fields that are intended for them. After submitting the form, when the administrator opens the form, he should be able to enter data in the protected fields and save. How this can be achieved at best, so that only the administrator can bypass the protected fields.

    Thank you.

    Sidonie.

    Hi Francine,.

    Here's a sample: https://acrobat.com/#d=1sM9qMpJpgo2Miox * YaQNg

    In this I have set up four fields that are locked initially. There is a button which, when clicked will ask the user a password.

    Now while the password is "124", the form uses a hash function to convert a hex code. I can't remember where I got the function, but it was one of the Adobe blogs. It would be unsafe to store the password "1234" in the form, then the hash code is stored instead: "03ac674216f3e15c761ee1a5e255f067953623c8b388b4459e13f978d7c846f4." The entered password is converted to a hex code and then compared to this.

    Once the fields are unlocked, the background is highlighted. Protect the fields the administrator again click on button and input an incorrect password.

    Now in your form, you can take parts of this solution - for example have a textfield for password instead of a button; have a blocking script in the exit of the textfields event, etc.

    Hope that helps, sorry for the delay to return to you,

    Niall

  • Help with automatic calculation field


    I'm doing a form to include an automatic calculation for feet cubes (Lxwxh/1728).

    Even if this is possible in the simplified field notation I need to automatically round up for and decimal point. I tried to use the custom calculation script, but I have no experience with java.

    Event.Value = Math.ceil (this.getField("LENGTHRow1").value * this .getField ("WIDTHRow1") .value * this 1728/d("HEIGHTRow1")) .getFiel;

    It's like I had with Googling but I believe that there is some sort of error with the calculation. I would be very happy if someone can show me what should be the script.

    You are missing the part 'value' after the second getField command.

  • Need help with a basic host script?

    All I recently started using Powershell scripts and as big a language it is that I'm still learning at the 'very' early stages. All I would do is create a script that reads some hosts from a text file, and then it receives some info on all the virtual machines associated with this host. I know that the get - vm command can do for ALL the virtual machines in VC but when I run my script it seems to get the information for the VC together and NOT on a per-host basis. (We have several hosts within the domain and require info VM only a couple). Ive checked some samples but nothing that allows me to get the info I need Heres my script so far (very basic, I know!)  $hostlist = (get-vmhost-name (get-content c:\hosts.txt) | select name) #Get VMs for each host foreach ($esx in $hostlist) {$VMs = get - vm foreach ($vm in $VMs) {Write-host $vm. Write-host $vm name. $vm.numcpu MemoryMB Write-host Write-host $vm. Guest}} I know its really basic so far, but all I'm trying to achieve is just get some info on some VMS and report to the console (I know that I can send the information to a spreadsheet myself so now worries it) thank you very much for you help in advance

    You can limit the virtual machines, you receive chaining cmdlets Get-VmHost and Get - Vm together like this

    $hostlist = (get-vmhost -Name (get-content c:\hosts.txt) | select Name)
    
    #Get VMs for each host
    foreach ($esx in $hostlist) {
      $VMs = Get-VMHost $esx | Get-VM
      foreach ($vm in $VMs) {
        Write-host $vm.Name
        Write-host $vm.MemoryMB
        Write-host $vm.numcpu
        Write-host $vm.Guest
      }
    }
    
  • need help with xml data

    Hi all

    need your spiritual help once more!
    I have a table 'product' as below:

    create table product)
    product_id number (2),
    product_info varchar (4000));

    Select * from product:
    product_id product_info
    1 < ticketing > < product = 'TV' > < productservice = "shipping" > < / productservice > < / product = 'TV' > < / ticket >

    I need to get the column product_info information in a new table with 2 columns product and productservice product_details. as in: -.
    Select * from product_details:
    product_id product productservice
    1 expedition TV

    any suggestions on how to do it.
    PS-> for a product it can be several services and there may be several products for a ticket.

    Your XML file is not well formed at all (so many errors in there).

    However, if you had a valid XML code, you could do something like that...

    SQL> ed
    Wrote file afiedt.buf
    
      1  with t as (select 1 as product_id, '' as product_info from dual union all
      2             select 2, '' from dual)
      3  --
      4  -- end of test data
      5  --
      6  select t.product_id, x.*
      7  from t
      8      ,xmltable('/ticketing/product'
      9                passing xmltype(t.product_info)
     10                columns product varchar2(10) path '/product/@name'
     11                       ,service varchar2(15) path '/product/productservice/@name'
     12*              ) x
    SQL> /
    
    PRODUCT_ID PRODUCT    SERVICE
    ---------- ---------- ---------------
             1 TV         shipping
             2 VCR        delivered
    
  • What is the 'Live' page and need help with the data merge

    Hello

    Im very new to indesign naked with me. Im trying to merge data (need to create a fusion template?) and what I understand is that I need to be on the page 'Live '. Someone on the forum suggested this...

    There are two ways to set up the model of fusion. You can put your placholders on the master page or on the live page. If the placehlders are on the master page, only the frame (s) with placeholders, as well as other grouped objects, will be duplicated. On the live page, ID will try to duplictate EVERYTHING on the page, so you must be very careful about installation and sizing of objects.

    I want to be on the LIVE page... How can I do this? Got any other sort but can't get several records for the life of me to come.

    Thank you for your help adavance

    It is the opposite of multiple records per page. Make x copies of a single record on a page, put x sets of organized placeholders as you want on the page. A good way to do it is with Edit > step and repeat after you set up the left superior set. Now merge as one record per page.

Maybe you are looking for

  • I use a dialup access provider, allows Firefox download for interruptions?

    My remote access service uses a timer that will cut me off when I try to download large files. Some sources of files of such interruptions and allows downloading resume where it stopped, instead of having to start all over again. Download of Firefox

  • Satellite P200 - unable to connect to the WLAN router

    I have a Satellite P200 and that you have upgraded from Vista to Windows 7. The wireless is working and to see available networks, but trying to connect it does not ask the WEP key, it just says: he has a connection problem and (possibly) says that i

  • GW instek Gall - 2303 s

    Hello I am an intern for my last year of DUT., so I have to work on GW Instek GPD - 2303S, but I couldn't download for it. On the site OR we can go to this link: http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=2709A75F0A9E5981E0

  • How can I Log In to account in second Partition?

    On my Windows XP PRO, I have a side for the journal of my wife with a password that works very well. However, on the other side where I suppose that is to connect to be asked a password. I've never set up a password on my side of the partition. So, h

  • Acer 8930G - does not start after the start screen

    Every afternoon, I have an Acer 8930 G, he knocks over a few years (approx. 7ish) and this is the first problem I have had with it. When I turn it on, the normal Acer screen looks and where it would normally load just Windows then off. Power exists t