VMFS partition table corruption? Need help to retrieve data

My House ESXi 5.1 was installed on HP Microserver G7. Hypervisor on USB-flash, datastore on Adaptec 3405.

After some problems of power electro Microserver is will not start and I have chosen to build the new server on Microserver Gen8. I moved Adaptec and disks in the new box, installed new ESXi 5.5 U1 (HP image) on USB and after reboot did not store data :-(.

After some research, I found that ESXi is not see any partition table on this raid array:


partedUtil getptbl /vmfs/devices/disks/mpx.vmhba2:C0:T0:L0

unknown

728422 255 63 11702108160

BUT! I tried to start the server of linux liveCD with vmfs-tools 0.2.5 installed partition mounted with vmfs-fuse and able to see the data! But cannot copy all important vmdk (see below).

debugvmfs is also show me some useful information:

Volume Version: 14

Version: 54

Label: STORE

Mode: public

UUID: 4f2ac538-58c181cf-arms-441ea13ee615

Creation date: 2012-02-02 23:17:44

Block size: 1 MiB

Subblock size: 8 KiB

Size of header of the FDC: 64 KiB

County of FDC Bitmap: 64

and it's very strange

debugvmfs/dev/sda1 see the lvm.extent [0]

Device: / dev/sda1

UUID: 4f2ac4da-8de4b166-a-441ea13ee615 848

LUN: 0

Version: 5

Name:

Size: 459.99 GiB

NUM. Segments: 22319

First Segment: 0

Last Segment: 22318


because I don't know that I don't create scopes.


Also, there are two vmdk files on more than 256 GB data store and it cannot copy because of the limitation of vmdk-tools :-(.


I tried to do a magic (like this - partedUtil setptbl "/ vmfs/devices/disks/mpx.vmhba2:C0:T0:L0" GPT "1 2048 11702099429 AA31E02A400F11DB9590000C2911D1B8 0""), but without success;-(.)


All the suggestions, guys?

Finally!

Found that was an "Intel VT - d" enabled in the BIOS. After disable it everything is cool.

It looks like Adaptec 3405 working wrong with it. Will try to change it to P222.

Tags: VMware

Similar Questions

  • Retrieve VMFS partition table... help.

    Hi all

    This morning, when I boot ESXi 4.0.0 I found lost a VMFS volume. By default, my drive has two partitions. I tried to recover the second partition with the instructions on the forum, but it was still not working.

    fdisk- lu/dev/disks/t10. ATA___ST3500418AS___9VM6Z8Y1

    Disk/dev/disks/t10. ATA___ST3500418AS___9VM6Z8Y1: 500,1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders, total of 976773168 areas
    Units is 1 * 512 sectors is 512 bytes

    Device boot start end blocks Id system
    / dev/Disks/T10. 63 8386622 4193280 6 FAT16 ATA___ST3500418AS___9VM6Z8Y1p1
    Partition 1 does not stop the limit of cylinder
    / dev/Disks/T10. ATA___ST3500418AS___9VM6Z8Y1p2 8386623 976773167 484193272 + fb VMFS


    fdisk u /disks/dev/t10. ATA___ST3500418AS___9VM6Z8Y1

    The number of cylinders for this disk is set to 60801.
    There is nothing wrong with that, but it is higher than 1024,
    and could in certain setups cause problems with:
    (1) software that runs at startup (for example, the old versions of LILO)
    (2) start and partitioning software to other operating systems
    (e.g. BACK FDISK, OS/2 FDISK)

    Command (m for help): d
    Partition number (1-4): 2

    Command (m for help): w
    The partition table has been changed!

    The call ioctl() to re-read the partition table

    u Fdisk/dev/disks/t10. ATA___ST3500418AS___9VM6Z8Y1

    The number of cylinders for this disk is set to 1409485.
    There is nothing wrong with that, but it is higher than 1024,
    and could in certain setups cause problems with:
    (1) software that runs at startup (for example, the old versions of LILO)
    (2) start and partitioning software to other operating systems
    (e.g. BACK FDISK, OS/2 FDISK)

    Command (m for hELP): n
    Control action
    extended e
    p primary partition (1-4)
    p
    Partition number (1-4): 2
    First of the sector (by default 8386623-976773167, 8386623): using default 8386623
    Last sector or size + or + sizeM or + sizeK (8386623-976773167, by default 976773167): using default value 976773167

    Command (m for help): t
    Partition number (1-4): 2
    HEX code (type L to list codes): fb
    Changed the type of partition 2 to fb (VMFS)

    Command (m for help): x

    Expert command (m for help): b
    Partition number (1-4): 2
    New beginning of data (by default, 8386623-976773167, 8386623): 8386688

    Expert command (m for help): w
    The partition table has been changed!

    Calling ioctl() to re-read the partition table.

    I have VL connection and go to the Configuration > storage > refresh the volume does not return.

    Please help me!.

    This seems really odd. Do you have all the partitions on these 4 discs when you first installed ESXi?

    What version of ESXi you originally installed (3.5 or 4.0) in the case where that this system has been upgraded?

    Please after the release of fdisk-lu for all 4 disks in the system.

    André

  • Need help to retrieve the XML file

    Hello

    I'm new to xml query and I need help badly. I have a file xml with the following content. I need help to extract data as:

    beginTimelocalDnmeasObjLdnhdlcRxErrAborthdlcRxErrCRChdlcRxErrLackOfBufs
    2015 07-28 T 14: 45:00 + 03:00ERSGSN01MagId.SlotId.E1/T1Trunk.FractionId=2.8.6.1240010200
    2015 07-28 T 14: 45:00 + 03:00ERSGSN01MagId.SlotId.E1/T1Trunk.FractionId=2.9.3.1000
    2015 07-28 T 14: 45:00 + 03:00ERSGSN01MagId.SlotId.E1/T1Trunk.FractionId=2.9.4.1000

    and the XML data I have are:

    <? XML version = "1.0" encoding = "UTF-8"? >

    <? XML-stylesheet type = "text/xsl" href = "MeasDataCollection.xsl"? >

    " < measCollecFile xmlns =" http://www.3GPP.org/FTP/specs/archive/32_series/32.435#measCollec ">

    < fileFormatVersion = "32.435 V9.0" fileHeader vendorName = "Ericsson" >

    < fileSender / >

    < measCollec beginTime = "2015-07 - 28 T 14: 45:00 + 03:00" / >

    < / fileHeader >

    < measData >

    < managedElement localDn = "ERSGSN01" / >

    < measInfo measInfoId = ' E1/T1, hdlc' >

    < job jobId = "Meas_E1T1_all" / >

    < duration granPeriod = "PT900S" endTime = "2015-07 - 28 T 15: 00:01 + 03:00" / >

    < duration repPeriod = "PT900S" / >

    < p measType = "1" > hdlcRxErrAbort < / measType >

    < p measType = "2" > hdlcRxErrCRC < / measType >

    < p measType = "3" > hdlcRxErrLackOfBufs < / measType >

    < p measType = "4" > hdlcRxErrMaxFrameLen < / measType >

    < p measType = "5" > hdlcRxErrNonOctetAlign < / measType >

    < p measType = "6" > hdlcRxErrQueue < / measType >

    < p measType = "7" > hdlcRxOK < / measType >

    < p measType = "8" > hdlcRxOctets < / measType >

    < p measType '9' = > hdlcTxOK < / measType >

    < p measType = "10" > hdlcTxOctets < / measType >

    < measValue measObjLdn="MagId.SlotId.E1/T1Trunk.FractionId=2.8.6.1" >

    < p r = "1" > 2400 / < r >

    < p r '2' = > 1020 / < r >

    < p r = "3" >/< r > 0

    < p r = "4" >/< r > 0

    < p r = "5" > </r > 0

    < p r = "6" >/< r > 0

    < p r = "7" >/< r > 0

    < p r = "8" > 0 </r >

    < p r '9' = > 295 / < r >

    < p r = "10" > 4130 / < r >

    < / measValue >

    < measValue measObjLdn="MagId.SlotId.E1/T1Trunk.FractionId=2.9.3.1" >

    < p r = '1' >/< r > 0

    < p r = "2" >/< r > 0

    < p r = "3" >/< r > 0

    < p r = "4" >/< r > 0

    < p r = "5" > </r > 0

    < p r = "6" >/< r > 0

    < p r = "7" >/< r > 0

    < p r = "8" > 0 </r >

    < p r '9' = > 295 / < r >

    < p r = "10" > 4130 / < r >

    < / measValue >

    < measValue measObjLdn="MagId.SlotId.E1/T1Trunk.FractionId=2.9.4.1" >

    < p r = '1' >/< r > 0

    < p r = "2" >/< r > 0

    < p r = "3" >/< r > 0

    < p r = "4" >/< r > 0

    < p r = "5" > </r > 0

    < p r = "6" >/< r > 0

    < p r = "7" >/< r > 0

    < p r = "8" > 0 </r >

    < p r '9' = > 295 / < r >

    < p r = "10" > 4130 / < r >

    < / measValue >

    < / measInfo >

    < / measData >

    < fileFooter >

    < measCollec = endTime "2015-07 - 28 T 15: 00:01 + 03:00" / >

    < / fileFooter >

    < / measCollecFile >

    Help, please. I tried to select a value using the following xml query which does not lead to any output:

    WITH t AS (SELECT xmltype (bfilename('SGSN_STAT_ERICSSON', 'A20150728.1445+0300-20150728.1500+0300_Meas_E1T1_all.52'), nls_charset_id('UTF-8')) FROM dual xmlcol)

    SELECT beginTime, localDn, measObjLdn, hdlcRxErrAbort, hdlcRxErrCRC, hdlcRxErrLackOfBufs

    T, XMLTABLE

    (XMLNAMESPACES ('http://www.3gpp.org/ftp/specs/archive/32_series/32.435#measCollec' as 'ns1'), )

    ' / measCollecFile'

    passage xmlcol

    columns

    beginTime PATH VARCHAR2 (32) ' / measCollec/@beginTime',

    localDn PATH VARCHAR2 (32) ' / measData/managedElement@localDn',

    measObjLdn PATH VARCHAR2 (32) ' / measData/measInfo/measValue@measObjLdn',

    ["hdlcRxErrAbort PATH VARCHAR2 (32) ' / measData/measInfo/measValue/r[@p="1 ']',

    ["hdlcRxErrCRC PATH VARCHAR2 (32) ' / measData/measInfo/measValue/r[@p="2 ']',

    "[" hdlcRxErrLackOfBufs PATH VARCHAR2 (32) ' / measData/measInfo/measValue/r[@p="3 ']"

    )

    Sincere greetings

    Either way, using an XQuery FLWOR expression:

    select x.*
    from xmltable(
           xmlnamespaces(default 'http://www.3gpp.org/ftp/specs/archive/32_series/32.435#measCollec')
         , 'for $h in /measCollecFile
              , $v in $h/measData/measInfo/measValue
            return element row {
              $h/fileHeader/measCollec/@beginTime
            , $h/measData/managedElement/@localDn
            , $v/@measObjLdn
            , element r1 {$v/r[@p="1"]}
            , element r2 {$v/r[@p="2"]}
            , element r3 {$v/r[@p="3"]}
            }'
           passing xmltype(bfilename('TEST_DIR', 'test.xml'), nls_charset_id('AL32UTF8'))
           columns beginTime           timestamp with time zone path '@beginTime'
                 , localDn             varchar2(32)             path '@localDn'
                 , measObjLdn          varchar2(80)             path '@measObjLdn'
                 , hdlcRxErrAbort      number                   path 'r1'
                 , hdlcRxErrCRC        number                   path 'r2'
                 , hdlcRxErrLackOfBufs number                   path 'r3'
         ) x ;
    
  • How to recover the partition table (corrupt) for the partition in good health?

    Partition (drive H) was working fine, then I rebooted my system normally and the drive is now inaccessible.

    "An error occurred reading the file: the file or directory is corrupted and unreadable." (1392).

    Window CMD CHKDSK says NTFS file system and "unable to determine the State and version volume.»

    [This is a disk external drive with 2 partitions on it - H and Mr. the second partition (drive M) discs works fine.]
    [Vista Ultimate OS]

    Is there a way I can get it to work or get the data off of it?

    Try the procedure described in the article below

    http://www.ehow.com/how_7500292_recover-bad-partition-table.html

  • TIMESTAMP (6) partitioned key-&gt; range partitioned table ddl needed

    What is the DDL TIMESTAMP syntax (6) partitioned key, range partitioned table

    Published by: oracletune on January 11, 2013 10:26

    >
    What is the DDL TIMESTAMP syntax (6) partitioned key, range partitioned table
    >
    Don't know what you're asking. Are you asking how to create a table partitioned using a TIMESTAMP column (6) for the key?

    CREATE TABLE TEST1
    (
        USERID                 NUMBER,
        ENTRYCREATEDDATE     TIMESTAMP(6)
    )
    PARTITION BY RANGE (ENTRYCREATEDDATE) INTERVAL(NUMTOYMINTERVAL(1, 'MONTH'))
    (
        PARTITION P0 VALUES LESS THAN (TO_DATE('1-1-2013', 'DD-MM-YYYY'))
    )
    

    See my answer posted: January 10, 2013 21:56 if you need to do on a TIMESTAMP with TIME ZONE column. You must add a virtual column.
    Creating scores of auto range

  • All gone VMFS Partition tables! on LUN

    Today, we had a 20 TB of data problems and all partition tables VMFS got blownen now. All ESX servers were not able to see the data stores. Everything is back to normal now, but I have a question, not even a VM has stopped working? How is that possible? VMware said eventually they would have all the blue screen, but the LUN was down to 2-4 hours and not even a VM is down, we have more than 300 + VM can someone explain how it worked?   I guess they were running in the memory cache and depending on the amount of data is being written depends on when they started bluescreen? How does it work?  I am pleased, that was the case...

    Hello

    Discover the recovery VMFS partitions for assistance. SMV will stay running because they know where they write on the disc through a caching mechanism. The disk data were not deleted, only the partition table.

    Best regards
    Edward L. Haletky
    VMware communities user moderator, VMware vExpert 2009
    ====
    Author of the book ' VMWare ESX Server in the enterprise: planning and securing virtualization servers, Copyright 2008 Pearson Education.
    Blue gears and SearchVMware Pro items - top of page links of security virtualization - Security Virtualization Round Table Podcast

  • I need help to retrieve my Sansa Sandisk may be crushed

    I've been labbing with my sansa e250 1 G (first generation) today. IM rockbox running on it.

    So, I hooked to my computer to gentoo and discovered that the partitiontable is really strange. So I used dd to copy the whole of an iso file.

    Then, I created a new partition with one big partition table. Then I discovered that I had not compiled vfat stuff in my system.

    So I plugged it to another computer with Ubuntu 9.04. And I can't connect to my sansa properly.

    dmesg says that I plugged a USB device, but it does not appear as a block device.

    I found this cool page with lots of information:

    http://Daniel.haxx.se/Sansa/e200.html

    And I think that e200tool is something for my reader, so I downloaded the source, he compiled (on my ubuntu) and try to init the device.

    I began my sansa in recoverymode and e200tool find my device.

    root@FLINTA:/Home/etu/desktop/E200#. / e200tool init
    e200tool v0.2.3 - alpha by HRM 2006, 2007 (c)
    Looking for 0781:0720... found!
    Initializing USB stub (4780 bytes)... done!
    root@FLINTA:/Home/etu/desktop/E200#

    I downloaded an image of the partition of 20 MB with the firmware, but I can't succeed with the writing on the device process (mainly because I don't know how to do)

    Earlier I coul't not turn off with the e200tool, but it works now.

    What should I write device tomy? And how do I do it?

    E200tool instructions 1

    Other instructions E200tool

    I have no experience with one of these, but they worked for others.

  • Need help to retrieve the magnetic border

    As the title says, I need help to get the magnetic border thing (I don't know what his name). It helps a lot when I am rearraging my dekstop icon so that they are all neatly. Its the sticky feeling when you put an icon next to each other. I installed Stardock Fences before and which could lead to the missing or disabled?

    Hello

    • Right-click on an empty part of the desktop
    • Leave the mouse on the view
    • Click Align icons on the grid

    Tricky

  • Need help to retrieve the password for user account Windows 8.

    I need help!

    I have configured my windows 8 "admin" or "user account" password for over a year now and I don't remember what it is. I tried to download a new antivirus on the computer software but it takes the administrators password to make changes to this laptop.

    How can I know what is this password and how do I solve the problem in order to be able to install new software?

    Thanks in advance

    Josh

    Hello

    "What to do if you forget your password Windows 8/8.1"

    http://Windows.Microsoft.com/en-us/Windows/what-do-forget-Windows-password#1TC=Windows-8

    If you have forgotten your Windows password, there are several ways to recover or reset:

    • If your PC is on a domain, your system administrator must reset your password.

    • If you use a Microsoft account, you can reset your password online. For more information, see the Web to reset your password page.

    • If you use a local account, use your index of password as a reminder.

    If you've tried these suggestions and still unable to connect:

    • If you have Windows 8.1, you will need to reinstall Windows.

    • If you have Windows RT 8.1, you will need to contact the manufacturer of your PC.

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    Microsoft prohibits any help given in these Forums for you help bypass or "crack" passwords lost or forgotten.

    Here's information from Microsoft, explaining that the policy:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-security/keeping-passwords-secure-Microsoft-policy-on/39f56ef0-5d68-41AD-9daa-6e6019c25d37

    See you soon.

  • 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.

  • Need help with the date

    Hi all

    I have a requirement where my table contains the values key1, Key2, and timestamp (example 24 January 2013 06:45:45)

    Now I have several values for the same key1, key2, and date with different stamps. I need to keep records only 2 with less output and max timestamp for key1 and key2.

    Can you please indicate how this can be done?

    Like this

    SQL > create table k (key1, key2 whole integer, date of ts);

    Table created.

    SQL > insert into k
    2. Select 1, 1, trunc (sysdate) + numtodsinterval (level, 'time')
    3 double
    4. connect by level<=>

    10 rows created.

    SQL > alter session set nls_date_format = 'DD-MON-YYYY HH24:MI:SS ";

    Modified session.

    SQL > select * from k;

    CLE1 KEY2 TS
    ---------- ---------- --------------------
    1 1 31 JANUARY 2014 01:00
    1 1 31 JANUARY 2014 02:00
    1 1 31 JANUARY 2014 03:00
    1 1 31 JANUARY 2014 04:00
    1 1 31 JANUARY 2014 05:00
    1 1 31 JANUARY 2014 06:00
    1 1 31 JANUARY 2014 07:00
    1 1 31 JANUARY 2014 08:00
    1 1 31 JANUARY 2014 09:00
    1 1 31 JANUARY 2014 10:00

    10 selected lines.

    SQL > select key1
    2, key2
    3, ts
    4 of)
    5. Select k.*
    6, min (ts) over (partition by key1, key2, trunc (ts)) min_ts
    7, max (ts) over (partition by key1, key2, trunc (ts)) max_ts
    8 k
    9         )
    10 where ts = ts or min_ts = max_ts;

    CLE1 KEY2 TS
    ---------- ---------- --------------------
    1 1 31 JANUARY 2014 01:00
    1 1 31 JANUARY 2014 10:00

    SQL >

  • need help for calculation date

    I need help with this:

    I added successfully a document level script to add the date printed in my document

    this.getField("DatePrinted").value = util.printd ("mm/dd/yy", new Date());

    I now need to fill in a field named "Date" with a date that is 14 days after the date of DatePrinted.

    and I'm lost.

    Can anyone help?

    Get the current date/time

    var d = new Date();

    Add 14 days

    d.setDate (d.getDate () + 14);

    Set a field value

    getField("Deadline").value = util.printd ("mm/dd/yy", d);

    That last part may need to be changed depending on where you place the script. If it's the same script at the document level, the whole thing can be:

    Get the current date/time

    var d = new Date();

    Set a field value

    getField("DatePrinted").value = util.printd ("mm/dd/yy", d);

    Add 14 days

    d.setDate (d.getDate () + 14);

    Set another value of field

    getField("Deadline").value = util.printd ("mm/dd/yy", d);

  • need help on filling data dynamically from list of choice while the page is loading

    Hi all

    I need to dynamically fill data in the picklist (drop-down list on the component) during the loading of the page itself, can you please a little help on this. I mean for the values of the component < f: selectItems > < af:selectOneChoice > must be filled dynamically, so that loading page. I will be grateful if you can provide examples of code.


    Thanks in advance



    Concerning
    Ashok E

    Hello

    the problem with your code is that it is not af:selectItem but f: selectItems


    *

    Frank

  • 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);
    }

  • Need help with coversion date

    Hello

    I have a date format that is varchar2 and value is as on 2009-03 - 31.i need to convert to date and it must be as on 31 March 09

    I get as error 0RA-01981... Please help me in this
    SQL> select to_date('2009-03-31','yyyy-mm-dd') xc from dual ;
    
    XC
    ------------------------------
    31-MAR-09
    

    For your http://ora-01981.ora-code.com/ error

    SS

Maybe you are looking for

  • M70-144: what Toshiba-updates should I download?

    I just got a PSM71E M70-144. I took a glance on the updates for this machine on the official website of Toshiba for downloads.This loads of model of the possible updates (bios, acoustic silencers, etc.) appear. I am quite confused about what updates

  • bug: open tcp ignore timeout

    If it cannot connect it gives error 56: timeout after 20 seconds, regardless of entry time-out. LV 2010 SP1 /Y

  • Propagate user information new/updated on day of many switches/routers

    Hello I'm curious to determine the best way to propagate new information from the user to all switches and routers within the network infrastructure. I have a large various switches in the college system that must be updated with this information in

  • Xerox Phaser 3150 Printer Laser

    Windows 7 not automatically install drivers for older printer, xerox phaser 3150.  Xerox says windows 7 not supported, the printer is obsolete and is replaced by another.  Download windows xp drivers and try to use them to install the printer with an

  • Crisis of digital music files: Please help

    I want to get away from purchase on iTunes and play files from my iTunes library on Windows Media Player. Before this is possible, I need to understand something. I lost the iTunes feature. I followed the instructions in the forum iTunes on the backu