How can I validate(i.e., to make pass) a resource/statement programmaticall

hi
could any body help me
how can I validate(i.e., to make pass) a resource or a statement programmatically?
how can i see individual items from a collection?
thx in advance
pasumarthi

Hi pasumarthi,
I was just reading this other thread here http://qazone.empirix.com/thread.jspa?threadID=138&tstart=0 and I found it very informative

Similar Messages

  • How can I validate a date field in Portal Forms

    I have a date field in portal forms that I want to perform validation on to make sure it's in the proper format before being accepted (mm/dd/yyyy). How can I validate against that field?

    Hi Ben,
    I took the time to test and revise. This is code that will validate a date entry (format MM/DD/YYYY). Just paste this in the "Before the start of the form..." window of the Additional PL/SQL code section of the form. Then add validateDate(); into the onBlur event window of the field in question. Replace the CYCLE_END_DATE with the field name in question.
    HTP.P('
    <SCRIPT LANGUAGE=javascript>
    function validateDate() {
    var ddObj;
    var mmObj;
    var yyObj;
    var day;
    var mon;
    var year;
    var field_val;
    var field_name;
    for (var j=0; j < document.forms[0].elements.length; j++) {
    field_name = document.forms[0].elements[j].name;
    field_val = document.forms[0].elements[j].value;
    if (field_name.substring(field_name.indexOf(''DEFAULT.'') + 8, field_name.lastIndexOf(''.01'')) == ''CYCLE_END_DATE'') {
    var delimPos = field_val.search(/\//i);
    if (delimPos < 0)
    alert(''Invalid date entry! Please enter in MM/DD/YYYY format. '' +
    ''e.g, Dec 21, 2003 would be entered as 12/21/2003'');
    else
    if (field_val.length != 10)
    alert(''Invalid date entry! Please Please enter in MM/DD/YYYY format. '' +
    ''e.g, Jan 1, 2003 would be entered as 01/01/2003'');
    else {
    month = field_val.substring(0, field_val.indexOf(''/''));
    day = field_val.substring(field_val.indexOf(''/'') + 1, field_val.lastIndexOf(''/''));
    year = field_val.substring(field_val.lastIndexOf(''/'') + 1, 10);
    /* Need to subtract 1 from value because in Javascript, January begins with 0
    and ends with 11 for December */
    month = month - 1;
    ddObj = new Date(year, month, day);
    mmObj = new Date(year, month, day);
    yyObj = new Date(year, month, day);
    if (ddObj.getDate(ddObj.setDate(day)) != day)
    alert(''Invalid day!'');
    if (mmObj.getMonth(mmObj.setMonth(month)) != month)
    alert(''Invalid month!'');
    if (mmObj.getYear(mmObj.setYear(year)) != year)
    alert(''Invalid year!'');
    </SCRIPT>
    ');

  • How can i validate an untouched cell and change bground color if error

    Hi ,
    three questions
    1. I can validate data in cells in setValueAt method but the cell data will be validated only if user click on that cell.
    how can i validate another cell if user does not even touch it.
    2. and if error how can i change background color.
    3. i have JTextField for column as cell editor/renderer. To change the data user have to double click on cell. How can I make it to click once to edit the value in the cell.
    Thanks in advance for help.

    how can i validate another cell if user does not even touch it.
    Why would you want to validate a cell if a user doesn't change it?for example user clicked Add row, and i added a row in the table with blank information...so .all cells in the new row have blanks, so if user does not enter the data in the second column... which he did not touch...i want to catch it and produce error
    How can I make it to click once to edit the value in the cell.
    Something like this:
    DefaultCellEditor dce = (DefaultCellEditor)table.getDefaultEditor(Object.class);
    dce.setClickCountToStart(3);Thank you..
    Read this section from the Swing tutorial on "How to Use Tables" for more information:
    http://java.sun.com/docs/books/tutorial/uiswing/components/table.html

  • How can I validate an X509Certificate ?

    I'm not really sure of what makes a certain cetificate different from a certificate that I create in my comupter... I mean, how can I validate that a certain certificate belongs to the entity it says it belongs to?
    Is my question clear enough?
    I hope someone can help me with this...

    Hello,
    You do not validate certificates per say, they are either valid or they are not.
    Certificates contain a certificate chain/path leading back to a certification authority. Your computer/java has a list of trusted authorities. If the afore mentioned path does not lead back to one of them, authenticity (of software/documents) amongst other things can not be gauranteed. In this case, you would contact the publisher of the cert and verify it is them by comparing keys.
    Yes you can create you own certificate and distribute it, but you will be the one to handle all requests to verify that the pub.key in the cert is actually yours.
    I hope this has cleared it up... and is accurate for that matter (if anyone cares to point out).
    Warm regards,
    Darren

  • How can I force Time Machine to make a complete backup of my Hard Drive.  I just installed a new external drive for Backup since my previous one failed.  Now when I back up, Time Machine only backs up my data folder and the Users folder.

    How can I force Time Machine to make a complete backup of my Hard Drive.  I just installed a new external drive for Backup since my previous one failed.  Now when I back up, Time Machine only backs up my data folder and the Users folder.
    When I start a backup. Time Machine says "Oldest Backup: None; Latest Backup: None", so it seems like it should do a complete backup, but it only does a partial. 

    Hi I'd like to jump in here. Your app showed me this:
    Time Machine:
              Skip System Files: NO
              Mobile backups: OFF
              Auto backup: YES
              Volumes being backed up:
                        Macintosh HD: Disk size: 749.3 GB Disk used: 453.81 GB
              Destinations:
                        Plastic Wrapper [Local] (Last used)
                        Total size: 999.86 GB
                        Total number of backups: 64
                        Oldest backup: 2013-07-24 23:25:11 +0000
                        Last backup: 2013-11-17 01:40:47 +0000
                        Size of backup disk: Too small
                                  Backup size 999.86 GB < (Disk used 453.81 GB X 3)
              Time Machine details may not be accurate.
              All volumes being backed up may not be listed.
              /sbin excluded from backup!
              /usr excluded from backup!
              /System excluded from backup!
              /bin excluded from backup!
              /private excluded from backup!
              /Library excluded from backup!
              /Applications excluded from backup!
    Aside from the size of my backup drive, which I will increase at some point, I'd really like to have time machine backing up all system folders, especially Applications. How to I reset this hidden exclusions?
    Thanks,
    Darcy

  • HT1338 Hi How can i reinstall OS Mavericks to make my laptop run like the first time?

    Hi,How can i reinstall OS Mavericks to make my laptop run like the first time?

    Hardware Information:
              MacBook Pro (17-inch, Early 2011)
              MacBook Pro - model: MacBookPro8,3
              1 2.2 GHz Intel Core i7 CPU: 4 cores
              6 GB RAM
    Video Information:
              Intel HD Graphics 3000 - VRAM: 384 MB
              AMD Radeon HD 6750M - VRAM: 1024 MB
    System Software:
              OS X 10.9.2 (13C64) - Uptime: 0 days 0:59:22
    Disk Information:
              TOSHIBA MK7559GSXF disk0 : (750.16 GB)
                        EFI (disk0s1) <not mounted>: 209.7 MB
                        Macintosh HD (disk0s2) / [Startup]: 749.3 GB (407.34 GB free)
                        Recovery HD (disk0s3) <not mounted>: 650 MB
              MATSHITADVD-R   UJ-898 
    USB Information:
              Apple Inc. FaceTime HD Camera (Built-in)
              Apple Inc. Apple Internal Keyboard / Trackpad
              Apple Inc. BRCM2070 Hub
                        Apple Inc. Bluetooth USB Host Controller
              PIXART USB OPTICAL MOUSE
              Western Digital  External HDD     500.11 GB
                        EFI (disk1s1) <not mounted>: 209.7 MB
                        WD-KENKEN (disk1s2) <not mounted>: 499.76 GB
              Apple Computer, Inc. IR Receiver
    FireWire Information:
              Iomega eGo HDD 800mbit - 800mbit max
                        disk2s1 (disk2s1) <not mounted>: 262 KB
                        Iomega_HDD (disk2s2) <not mounted>: 1 TB
    Thunderbolt Information:
              Apple Inc. thunderbolt_bus
    Kernel Extensions:
              at.obdev.nke.LittleSnitch          (4050 - SDK 10.8)
    Launch Daemons:
              [System] at.obdev.littlesnitchd.plist 3rd-Party support link
              [System] com.adobe.fpsaud.plist 3rd-Party support link
              [System] com.adobe.SwitchBoard.plist 3rd-Party support link
              [System] com.blackmagic-design.desktopvideo.XPCService.plist 3rd-Party support link
              [System] com.blackmagic-design.DesktopVideoHelper.plist 3rd-Party support link
              [System] com.blackmagic-design.streaming.BMDStreamingServer.plist 3rd-Party support link
              [System] com.microsoft.office.licensing.helper.plist 3rd-Party support link
              [System] com.noiseindustries.FxFactory.FxPlug.plist 3rd-Party support link
    Launch Agents:
              [System] at.obdev.LittleSnitchUIAgent.plist 3rd-Party support link
              [System] com.adobe.AAM.Updater-1.0.plist 3rd-Party support link
              [System] com.blackmagic-design.DesktopVideoFirmwareUpdater.plist 3rd-Party support link
    User Launch Agents:
              [not loaded] com.adobe.AAM.Updater-1.0.plist 3rd-Party support link
    User Login Items:
              iTunesHelper
              Dropbox
              RealPlayer Downloader Agent
    Internet Plug-ins:
              FlashPlayer-10.6: Version: 12.0.0.44 - SDK 10.6 3rd-Party support link
              QuickTime Plugin: Version: 7.7.3
              Flash Player: Version: 12.0.0.44 - SDK 10.6 Outdated! Update
              AdobePDFViewer: Version: 10.1.1 3rd-Party support link
              Default Browser: Version: 537 - SDK 10.9
              SharePointBrowserPlugin: Version: 14.0.0 3rd-Party support link
              JavaAppletPlugin: Version: 14.9.0 - SDK 10.7 Outdated! Update
    Safari Extensions:
              Slick Savings: Version: 1.0
              Searchme: Version: 1.3
              Amazon Shopping Assistant: Version: 1.1
              Ebay Shopping Assistant: Version: 1.1
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
              AirPlay: Version: 2.0 - SDK 10.9
              AppleAVBAudio: Version: 203.2 - SDK 10.9
              iSightAudio: Version: 7.7.3 - SDK 10.9
    iTunes Plug-ins:
              Quartz Composer Visualizer: Version: 1.4 - SDK 10.9
    User Internet Plug-ins:
              RealPlayer Plugin: Version: (null) 3rd-Party support link
    3rd Party Preference Panes:
              Blackmagic Desktop Video  3rd-Party support link
              Flash Player  3rd-Party support link
              Tuxera NTFS  3rd-Party support link
    Old Applications:
              dynamiclinkmanager:          Version: 6.0.0 - SDK 10.5 3rd-Party support link
                        /Library/Application Support/Adobe/Common/dynamiclink/CS6/dynamiclinkmanager.app
              SA Color Finesse 3 UI:          Version: 3.0.6(275) - SDK 10.5 3rd-Party support link
                        /Applications/Adobe After Effects CS6/Plug-ins/Effects/Synthetic Aperture/(CF3 Support)/SA Color Finesse 3 UI.app
              dynamiclinkmediaserver:          Version: 6.0.0 - SDK 10.5 3rd-Party support link
                        /Library/Application Support/Adobe/Common/dynamiclinkmediaserver/1.0/dynamiclinkmediaserver.app
    Time Machine:
              Mobile backups: OFF
              Auto backup: NO - Auto backup turned off
              Time Machine not configured!
    Top Processes by CPU:
                   8%          storeagent
                   4%          WindowServer
                   1%          EtreCheck
                   1%          PluginProcess
                   1%          RealPlayer Downloader Agent
    Top Processes by Memory:
              227 MB          Safari
              104 MB          com.apple.IconServicesAgent
              104 MB          Messages
              98 MB          mds_stores
              80 MB          Dropbox
    Virtual Memory Information:
              2.62 GB          Free RAM
              2.06 GB          Active RAM
              182 MB          Inactive RAM
              1.13 GB          Wired RAM
              338 MB          Page-ins
              0 B          Page-outs

  • How can i use iphone 4 to make video calls through 3G network

    Pls let me know how can I use my IPhone4 to make video calls through my Airtel 3G network. Also pls suggest if any alternate is available. Thanks

    Re: Skype
    If I used skype wouldn't I only ge able to call other Skype users??

  • How can I validate my warranty with a refurbished iphone?

    On August 28th I visited Miami and I went to the Apple Store to replace my Iphone 4 broken out of warranty with a Refurbished Iphone.
    The problem is that the refurbished Iphone replacement never worked! I tried to verify my coverage status but it is out of warranty. I know that there are 90 days of warranty. However, how can I validate this warranty because the IMEI is not accepted to chat or contact Apple Support? Somebody can help me?
    Thank you

    SILsam wrote:
    I've already checked it, however the device does not have coverage. It was a refurbished iphone 4 and theoretically it has 90 days of warranty.
    According to your original post, your limited warranty is scheduled to expire on November 28th.  That service replacement warranty was never intended to include live support via chat or phone conversations with an AppleCare advisor.

  • How can i validate  the field directline under personal information of ESS?

    Hi all,
    How can i validate the field directline under personal information--> communication data  of ESS?The thing is we don't have NWDI setup in our organization.Is there any possibility of doing it under SPRO trn.
    Thanks and Regards,
    sam

    Hi,
    This is probably a wrong forum that you have posted your question to.
    Regards,
    Siddhesh

  • How can i validate(compare) two date type attribute in EO.

    Hi All,
    jdev version 11.1.2.1.0
    i have created one EO where two date type attribute ToDate and FromDate now i want to add validation rule.
    which validate that difference b/w ToDate and FromDate not more than 3 month.
    How can i validate this?

    You can create script expression
    Something like
    if((toDate.getTime()-fromDate.getTime())/(1000 * 60 * 60 * 24)>30)
      return true;
    else
      return false;-Arun
    P.S : Above example calculates based on number of Days (30). If you want 3 months, you need to put a logic - Simply 90 days? What about the months with 31 days and 28/29 days? etc.

  • How can i validate input number into a Field of  type char in oracle form?

    hi.....
    can any one help me.....please...!!!?!!
    How can i validate input number into a Field of type char in oracle form?

    i have tried doing that, but still the field except numbersthere was an error in that code. it should have been
    var_num:=to_number(var_char);however, it appears that you want the entry NOT to be a number. if this is the case then try
    begin
      if to_number(:block.item) = 0 then null; end if;
      message('The entry cannot be numeric');
      raise form_trigger_failure
    exception
      when value_error then
       /* this is where you put the code you want to be run when the
          entry is non-numeric */
    end;

  • How can I validate my XSD programatically ?

    Hi,
    I know how to validate XML against an XSD. But how can I validate an XSD itself? i.e Programatically press the "validate" button in XML Spy.
    I have tried validating it against http://www.w3.org/2001/XMLSchema.xsd . But this does not work for imports. i,e MySchema.xsd imports CommonSchema.xsd and uses CommonSchemas element definitions.
    When I validate against XMLSchema.xsd it does not check the imports.. i.e i can delete an import statement and its still valid - and in this case it obviously shouldnt be.
    Anyone any ideas?
    Cheers,
    Alan

    Hi Caffaine,
    sounds like a difficult problem... I tried to do something similar to this a few years ago under Java 1.3, and I can tell you that you'll have a couple of problems.
    1) ResourceBundles are a type of cache, so the one you load first is the one you are stuck with for the remainder of the program execution. The only ways around that AFAIK is to either author your own non-static ResourceBundle, or to have the user re-execute the client every time they want to change locales (neither of which is particularly appealing). Not sure if anything in Tiger has rectified this, but I don't think it has.
    This also means that your server will be stuck in a certain locale. Probably the best thing to do would be to write your clients so that all information heading back to the server heads there in Unicode, so that you're dealing with a common encoding on the server side. This means no bytes or chars. Strings would be the thing to use.
    2) AFAIK, Java has no way of programatically changing the Windows input locale. Though if I am wrong, someone please correct me!
    Hope that helps!
    Martin Hughes

  • How can i validate a path

    hi experts,
    how can i validate a path... i tried to use cl_gui_frontend_services=>directory_exist
    but it gives me an error
    for a local path and an app server path??
    thx in advance

    Hi Carlos,
    you follow the below coding, where you will get to separate validation
    for presentation server & application server file path.
    FORM present_validation .
      DATA: lw_check TYPE c,
            lw_file TYPE string.
      IF po_psv IS INITIAL.
        IF sy-ucomm = 'ONLI' OR sy-ucomm = space.
          MESSAGE  'Please input the file name' TYPE lc_e.
        ENDIF.
      ELSE.
        lw_file = po_psv.
        lw_check = cl_gui_frontend_services=>file_exist( lw_file ).
        IF lw_check IS INITIAL.
          MESSAGE  'Please input the correct file path' TYPE lc_e.
        ENDIF.
      ENDIF.
    ENDFORM.                    " PRESENT_VALIDATION
    FORM application_validation .
      DATA: lw_file TYPE string.
      lw_file = po_asv.
      IF po_asv IS INITIAL.
        IF sy-ucomm = 'ONLI' OR sy-ucomm = space.
          MESSAGE  'Please input the file name' TYPE lc_e.
        ENDIF.
      ELSE.
        OPEN DATASET lw_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
        IF sy-subrc NE 0.
          MESSAGE  'Please input the correct file path' TYPE lc_e.
        ENDIF.
      ENDIF.
    ENDFORM.                    " APPLICATION_VALIDATION
    Hope this can solve your problems.
    Regards,
    Tutun

  • How can i validate items in java

    hi....
    how can i validate items in java....so that user can not type in characters
    in the place of number????
    please help?!?

    Hope u know getText() method returns string
    i.e text1.getText() returns string.
    U need to convert the string to integer with integer class. Go
    to the documentation to search for it.
    Then attach a conditional statement stating if not numeric
    , then not valid. if u have little knowledge of java, u will understand it.
    Otherwise, wait till tomorrow bcos I'm late for xmas carol.

  • How can I validate data after writing and over reboot/powercycle?

    Hi,
    How can I validate data after writes are done? How can I validate data after reboot or powercycle of the machine is done?
    What are the options I should give while running vdbench? When should I use -v, -vq, -vt, -v -j, -vq -j, -vq -jr, -v -jr options?

    Please look for the "Data Validation and Journaling' chapter in the documentation.
    Henk.

Maybe you are looking for

  • No Devices and Interface in MAX

    Hi all, I recently installed the evaluation version of LabVIEW and I am trying to communicate with a Mark-10 Series 5 force gauge. The problem, however, is that MAX does not seem to detect the instrument or any other instrument. There isn't even a De

  • After upgrading macbook pro from mountain lion to mavericks computer performance slowdown

    after upgrading macbook pro from mountain lion to mavericks computer performance slowdown

  • Windows XP to Windows 7 problem.

    When I iried installing Windows 7, it will stop while attempting to expand the files and suddenly display an error code , like 08X-------070, sorry I forgot to write it down. But the disturbing part is my PC will not start again, as it comes up with

  • Receipt number Generation In CC&B

    Hi, Can anyone explain me How to generate a receipt number is generating in cc &b. Where we have to code the format(Plug in for this receipt_number). I want to display my own java program when i clicked on receipt button in payment event. How to link

  • Assigning Order type to Sales Organization

    Hi Guys, I have created Sales Documents. But while assigning sales area to sales document type, I am getting the following error: "Check the existing conversion for distribution channel and division" and won't let me save the change of ref Sorg. Pls