How to validation checking of a combox?

i want to validation of a combobox  field    ...... my error is  when i use try catch
error'public member value in type 'icombox' not found.   and  with out checking value is added
please solve yhis issue?
Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
        Dim oForm As SAPbouiCOM.Form
        oForm = SBO_Application.Forms.Item(FormUID)
        ' Select Case pVal.EventType
        '  Case "SM_VLDFM"
        ' Case SAPbouiCOM.BoEventTypes.et_CLICK
        If pVal.FormUID = "SM_VLDFM" And pVal.ItemUID = "1" And pVal.BeforeAction = True And pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED Then
            If oForm.Mode = SAPbouiCOM.BoFormMode.fm_ADD_MODE Or oForm.Mode = SAPbouiCOM.BoFormMode.fm_UPDATE_MODE Then
                oComboBox = oForm.Items.Item("OrVal").Specific()
                If oComboBox.value = "" Then
                    SBO_Application.StatusBar.SetText("Enter The  Order No ", SAPbouiCOM.BoMessageTime.bmt_Long, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
                    oForm.Items.Item("OrVal").Click(SAPbouiCOM.BoCellClickType.ct_Regular)
                    BubbleEvent = False
                    ' Exit Sub
                End If
            End If
        End If
end sub

plz help me..........
Edited by: Animesh Sinha on Feb 3, 2009 12:45 PM

Similar Messages

  • How to config Check Digits function module for Student Number Validation

    Hi SLCM Experts,
    In the SAP-SLCM, How to use check digits function module for validate student number.  Just only config it or need to customizing program.
    *Any idea to student number validation in SLCM?*
    Best Regards,
    Suvatchai K.

    Hi ,
    Can you expalin it further ?
    You configure the St. no in piq_matr . And set it  as external or internal no. range which suits your business .
    What is the validation you are looking for ?
    Regards
    Gajalakshmi

  • How can i create validation Checks in Online Adobe Form

    Hi Gurus
    i am trying to create Online Adobe form.how can i do the validation checks while the user enter the values in Adobe form (For Ex: lets take personnel Number if the end user enter the personnel number it must go and  check the Data base table , if its right personnel number then processes next value or if its not right personnel number then it must show the error message).  please help me.
    Thanks in Advance
    Edited by: Reddy on Nov 24, 2011 10:08 AM

    HI Reddy,
    I think you can use either  'Submit' button or  web service for the validation. When we use the web service then it will work in offline mode also(user has to be on intranet - either via remote connectivity using VPN or office network) .
    if you are going for 'Submit'  and If you want to validate the number when the user enter value, then write the code in 'Exit' event  .
    Write the below code in the  event.
    ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
    This code will trigger the submit event in the web Dynpro component.
    Hope this will helps you.
    Regards
    Shaira.

  • How to perform validity checks just before form data is saved?

    hello all,
    i need to perform some checks on various fields just before data on a standard form is saved, and to eventually rollback the transaction.
    if the checks are succesful i have to perform some db operation in transaction with main data.
    solution ( if existent! )  has to be addin only -> no triggers / no procedures / no sbo_transaction thingies
    scenario:
    involved tables:
    OITM
    USERDEFINEDTABLE1
    USERDEFINEDTABLE2
    involved forms:
    Items - OITM - formtypeex = "150"
    logic:
    an user defined field U_UDFCHECKACTIVE has been added to OITM, a combo box has been added to items form containing values Y and N, bound to OITM.U_UDFCHECKACTIVE.
    when the user saves an item, if OITM.U_UDFCHECKACTIVE == Y we have to perform additional checks on USERDEFINEDTABLE1
    if the check result is true we have to save OITM current data and insert a record in USERDEFINEDTABLE2 containing itmgrp value (  )
    if the check result is false we have to block save operation
    if OITM.U_UDFCHECKACTIVE == N no check is performed and everything works normally
    we started hooking the form data event for oitm / form type 150:
    Application.SBO_Application.FormDataEvent += new SAPbouiCOM._IApplicationEvents_FormDataEventEventHandler(FormDataEventHandler.SBO_Application_FormDataEvent);
    then we filtered the event
    switch (BusinessObjectInfo.FormTypeEx)
                        case "150":
                            if (BusinessObjectInfo.BeforeAction &&
                                (BusinessObjectInfo.EventType == SAPbouiCOM.BoEventTypes.et_FORM_DATA_UPDATE ||
                                    BusinessObjectInfo.EventType == SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD))
                                BL.Items_BusinessLogic.SBO_Application_FormDataEvent(ref BusinessObjectInfo, out BubbleEvent);
    in our business logic class i don't know how to correctly check the values just before they are saved to db
    for example i tried using oitm.browser :
    if (oitm.Browser.GetByKeys(BusinessObjectInfo.ObjectKey))
                            String value =  oitm.UserFields.Fields.Item("U_UDFCHECKACTIVE ").Value as String;
                             //perform checks
                                  //if ok insert records and bubbleevent = true
                                  //if ko rollback the bubbleevent = false
    //if checks are not to be performed then bubbleevent = true....
    but it's wrong, as it populates oitm object from db, and not from the form. i have old values stored in the object, values tha are to be overwritten with those present on form.
    i tried inspecting the form for data sources but i don't know how to navigate to the right one, i found only system generated objects with SYS_##, with no clue about the related dbfield
    i tried getting the values directly from the form, but in object BusinessObjectInfo i don't have anything that identifies univocally the form i'm editing.
    i mean if i have 2 item forms open, i don't know which one is the one i'm saving.
    i'm expecting to find somewhere a temporary oitm business object containing values that are to be saved, values that i can easily check.
    so i'm asking you how to find those values in order to perform my bl checks
    thank you in advance

    Hi Christian,
    The values that are about to be saved should be in the datasources:
    form.DataSources.DBDataSources.Item("OITM");
    form.DataSources.DBDataSources.Item("ITM1");
    The form variable should be form 150.
    Best regards,
    Pedro Magueija

  • How can I achieve good validation check on String Input?

    This is a portion of my code,am just starting to learn java programming.public class Thickness
    public Thickness(){
    public static void main(String[]args)
    int thickness=0;
    double length;
    String strL;
    strL=JOptionPane.showInputDialog(null,"Enter the length of your building:");
    length=Double.parseDouble(strL);
    while((length<4)||(length>12))
    JOptionPane.showMessageDialog(null,"Error!This Program only works for"+"\n"+"Building whose Length lies Between 4m and 12m:");
    strL=JOptionPane.showInputDialog(null,"Enter the length of your building:"+"\n"+"Note that Minimum Length is 4m:"+"\n"+"Maximum Length is 12m:");
    length=Double.parseDouble(strL);
    So that if the user enters a length outside the specified range of values the error message,"Error!This Program only works for"+"\n"+"Building whose Length lies Between 4m and 12m:" will be displayed and the program will prompt the user to re-enter the length.
    This validation check works perfectly as long as the input is double or integer,What I need now is to include a check to display an error message if the user inputs nothing or supplies a character (other than integer or double)as input.I want to be able to customise the error message,like having(JOptionPane.showMessageDialog(null,"Error!This is an invalid input:")).
    I know the compiler will also generate an error message if the user inputs a String instead of a double,but I want to be able to achieve this instead of the compiler doing it for me.
    pls I will be very happy if you can assist me with the code that would perform this check.
    Thanks in advance                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    length=Double.parseDouble(strL);Read the API. It tells you that it can throw some kind of exception if the input isn't valid. Then it's up to you to properly handle the exception. If you don't handle it, the VM does by displaying the exception and terminating the app.
    API docs:
    http://java.sun.com/j2se/1.5.0/docs/api/index.html
    Tutorial on exceptions:
    http://java.sun.com/docs/books/tutorial/essential/exceptions/index.html

  • How to make BOL as mandatory validation check

    Hi All,
    I have a requirement to make BOL field in ASN as mandatory and system should not allow to create 2nd ASN with same BOL number.
    Regards,
    CK

    Hi CK,
    The BOL number validation is not there in standard yet. ASN creation does not look for the BOL number. If you really want to have such a validation you could think of implementing the check within your implementation of the validation framework. You might have to introduce check in the custom validation profile and use the BADI /SCMB/BOL_VALFRMWRK to implement the validation check.
    This is only feasible  way you can meet your requirement.
    Thanks,
    Nikhil

  • How to disable certificate validity checking

    Either
    (1)
    using the default com.sun.jndi.ldap.LdapCtxFactory,
    and setting some unknown properties;
    or
    (2)
    creating a custom X509 implementation, and then
    Security.setProperty("cert.provider.x509v1", "MyX509CertificateImpl");
    (my class did not seem to get loaded);
    or
    (3)
    decompile Sun X509CertImpl.class
    or
    (4)
    decompile CertificateValidity.class.
    I tried all of these, and (4) succeeded.
    I would rather have a more official method.
    Any help would be appreciated. Email [email protected] please.
    Our AD LDAPS cert has expired and renewing it is not an option right now.
    But I thought disabling validity checking would be a good trick
    to know anyway.

    I have finally solved this issue, after only 4 months (it was my first issue using archlinux). Since the most part of shadow functionality is managed by pam, /etc/login.defs is not used at all. I had to edit /etc/pam.d/login. I had to comment out this line in that file:
    # session optional pam_mail.so dir=/var/spool/mail standard
    I am very satisfied, I hated those unuseful "No new mail"

  • If I buy an iphone second hand, how can I check that is valid and purchased for real?, If I buy an iphone second hand, how can I check that is valid and purchased for real?

    Hello
    I'd like to buy an iphone second hand and although I trust the source I'd like to be able to check with certainty that the phone was bought instore.
    I was thinking to ask for the receipt and check the serial number. is the serial number written on the back of the phone and the recipt(if the phone is sealed)?
    Similarly, if I buy an ipad 3 or 4 second hand, how do you check this again?
    Please let me know with some details about this.
    Thanks
    Anthony

    Ask the person you are buying the phone from to provide the original proof of purchase for the phone. If you do not know the seller personally I would be very cautious about purchasing the phone. There are many many stolen, hacked and jailbroken phones out there and these will only cause you grief down the road.

  • How does APEX check for null values in Text Fields on the forms?

    Hello all,
    How does APEX check for null values in Text Fields on the forms? This might sound trivial but I have a problem with a PL/SQL Validation that I have written.
    I have one select list (P108_CLUSTER_ID) and one Text field (P108_PRIVATE_IP). I made P108_CLUSTER_ID to return null value when nothing is selected and assumed P108_PRIVATE_IP to return null value too when nothign is entered in the text field.
    All that I need is to validate if P108_PRIVATE_IP is entered when a P108_CLUSTER_ID is selected. i.e it is mandatory to enter Private IP when a cluster is seelcted and following is my Pl/SQL code
    Declare
    v_valid boolean;
    Begin
    IF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NULL THEN
    v_valid := TRUE;
    ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NOT NULL THEN
    v_valid := TRUE;
    ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NULL THEN
    v_valid := FALSE;
    ELSIF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NOT NULL THEN
    v_valid := FALSE;
    END IF;
    return v_valid;
    END;
    My problem is it is returning FALSE for all the cases.It works fine in SQL Command though..When I tried to Debug and use Firebug, I found that Text fields are not stored a null by default but as empty strings "" . Now I tried modifying my PL/SQL to check Private_IP against an empty string. But doesn't help. Can someone please tell me how I need to proceed.
    Thanks

    See SQL report for LIKE SEARCH I have just explained how Select list return value works..
    Cheers,
    Hari

  • Validation Check - Duplicate vendor Invoices

    Hi,
    We have a situation where the Duplicate Vendor Invoices have been entered by the users, bearing the same date and reference nos. as the original ones. When we checked we observed that, the system gives the warning message, but the same is ignored by the users. To prevent the same from happening again, we want to convert the warning message into the error message.
    Could any one guide as to how can we set up the validation checks, such that the system would throw an error message. In the vendor masters, we have set up the check for Duplicate Invoices.
    Thanks in advance.
    Best Regards,

    Hi,
    If you already know the message number, then go to T.code:OBA5 or
    T.code:SE91 (if its an custom message class) and change the message from waring to Error.
    If you are not aware of Message, and try to post a duplicate invoice & when the warning message comes, double click on the same, it will give you the message number.
    This will resolve your issue.
    Please let me know the result of the same
    Thanks
    Kalyan

  • How do I check if the associated PageItem is there/exists from a XMLElement ?

    Hi,
    I have the following structure:
    Extension Builder 1.5;
    InDesign 5.0;
    Image (Rectangule Frame);
    XML tag associated with the Image.
    The following scenario:
    I do have an application that checks if this strucuture is available and intact, that is, the user has not deleted the tag (XMLElement) and/or the Rectangule Frame(PageItem);
    I do not want loop through allPageItems (the page should have many of them - more than 1000) and get the XMLElement;
    So, I loop over the XMLElements and get the associated PageItem through xmlElement.xmlContent property;
    The document images properties (image, epss, etc) never are populated (document.epss.length = 0);
    I can validate if the tag was deleted or untaged easy.
    The problem:
    User deletes the Image/Rectangule Frame (PageItem) and keep the xml tag (untag the XMLElement);
    The isValid property (xmlElement.isValid = true) is true;
    The associated PageItem becomes a Text and is valid as well;
    The question:
    How do I check if the associated PageItem is there/exists from a XMLElement ?
    Regards
    Marcos

    Found it, I think
        e.isControlDown()

  • How can i check the duplicate NPD project name?

    Dear all,
    I would like to know on how i can check the duplicate NPD's project name? I found that some NPD's project is initiate serveral time with the same or semilar name from user name. Supposing the project name was "Smart Pilot". I always found that project may type differently such as "Smart PILOT","smart pilot" or even "Smart Pilots". Supposing i would like to validate all of these name before save by using validation framework, or custom validation. Is it possible?
    Supposing it was possible, can you please guiding me on how?
    Thank you so much in advance for all of the answer.
    Phaithoon W.

    So here is some example code for a quick validator. Note that this uses a hard coded English error message, rather than a translation. If you want to use translations instead, look at some of the examples in the ReferenceImplementations\Validation\SourceCode\ReferenceValidation folder in the Extensibility Pack, and review the Validation Training as well (in the ReferenceImplementations\Validation\Documentation folder).
    Note that the provided code is for demonstration purposes only and is not supported by Oracle.
    The classes:
    using System;
    using System.Data;
    using System.Xml;
    using Xeno.Data.NPD;
    using Xeno.Prodika.Application;
    using Xeno.Prodika.Services;
    using Xeno.Prodika.Validation;
    using Xeno.Prodika.Validation.Validators;
    namespace Oracle.Agile.PlmProcess.Validation
        public class NPDUniqueProjectNameValidatorFactory : XmlConfigValidatorFactoryBase
            protected override IValidator Create_Internal(XmlNode configNode)
                return new NPDUniqueProjectNameValidator();
        public class NPDUniqueProjectNameValidator : BaseValidator
            private const string sql = @"select 1 as dup from NPDPROJECTML where UPPER(title) = UPPER ('{0}') and FKPROJECT <> '{1}' and LANGID = {2}";
            public override bool Validate(IValidationContext ctx)
                var project = ctx.ValidationTarget as INPDProjectDO;
                bool hasDuplicate = false;
                string sqlToExecute = String.Format(sql, project.ProjectML.Title, project.PKID, UserService.UserContext.User.PreferredLanguage);
                using (IDataReader reader = AppPlatformHelper.DataManager.newQuery().execute(sqlToExecute))
                    if (reader.Read())
                        hasDuplicate = true;
                if (hasDuplicate)
                    ctx.AddError(String.Format("A project already exists with the name '{0}'.", project.ProjectML.Title));
                return hasDuplicate;
            private IUserService UserService
                get { return AppPlatformHelper.ServiceManager.GetServiceByType<IUserService>(); }
    Next, add the following to the ValidationSettings.xml file in config\Extensions:
    1. add the validator factory, with a reference name in the config:
    <ValidatorFactories>
            <!-- Custom  Validator Factory declaration goes here -->       
            <add key="NPD_CheckProjectNameForDuplicate" value="Class:Oracle.Agile.PlmProcess.Validation.NPDUniqueProjectNameValidatorFactory,ReferenceValidation" />
    </ValidatorFactories>
    2. Add a rule for NPD project Save event:
    <rule type="3202">
                <condition event="save">
                    <if type="NPD_CheckProjectNameForDuplicate" require="true" report="true" />
                </condition>
    </rule>
    Compile the reference example into a dll, and add that dll into web\npd\bin
    When you try to save a project with a duplicate name, it should now give you the error message.

  • Raw Device Validation Check for Name Failed..

    Hi all,
    I have installed Oracle Clusterware 10.2.0.4 and Oracle database software 10.2.0.4 on Solaris SPARC 10 and i using a NAS storage for the same
    And when i try to create a database using DBCA i got the following error.
    Raw Device Validation Check for Name /u03/oradata/spfile/spfile{SID}.ora failed. The specified file /u01/oradata/spfile/spfile{SID}.ora doesnot exit.Please a existing file.
    Note: i am not using ASM., i am using RAW device for Database
    Any help highly thankful
    -Arun

    Hi
    this is how i have mounted the NAS...
    10.0.0.0:/vol/prodt3_vol16/ora_dbfr_inn1s - /u07/DBFR/INS nfs - yes rw,bg,hard,nointr,rsize=32768,wsize=32768,proto=tcp,noac,forcedirectio,vers=3,suid
    how do i ensure that it is not being used....we should not use ASM its an client requinment ...
    Thanks

  • How can I check to see if there is money left on an iTunes card if I can't read the scratch off code?

    How can I check to see if there is money left on an iTunes gift card if I can't read the scratch off code?

    Sorry, but other than trying to redeem the card there's no way to check whether it is still valid or was previously redeemed.
    Regards.

  • How can i check the file  which is upload from  the server

    when upload the excel file from the server file to the internal table ,how can i check the data whether it accord with  the required condition .
    for example ,i want to upload the file which have the data whose type is pack, and it have three integer and  two decimal ,how can i check in my code.
    thanks,

    Hi Sichen,
    First upload the file, Then do ur validations and delete the records that doesn't satisfy ur requirements.
    Thanks,
    Vinod.

Maybe you are looking for

  • LabView Run-Time Engine 2009 installation failure

    Hi, I have problem to install Labview Run-Time Engine 2009. This error occur: Die Installation von NI VC2008MSMs x86 ist auf Grund des folgenden Fehlers fehlgeschlagen. Auf den Windows-Installationsdienst konnte nicht zugegriffen werden. Die kann vor

  • Possible to Restore iTunes Library from Back-Up Drive?

    Hi -- I just want to clarify what I've read on another thread about restoring my library from a backup. I have a machine running XP Pro and I find myself in the unfortunate position of having to reinstall the OS. I regularly back-up my machine to an

  • Change default page size

    When printing a front panel the default page size is letter. My windows printer has A4 as default page size. LabView always overrides my printer's default page size to letter. The problem: I want to print programmatically the front panel. With the pa

  • Itu2019s showing confirmed qty more that order qty in sales order

    Dear Guru's I am working on production server issue; the issue is delivery has been created more that sales order qty.  When I am seeing sales Oder schedule lines itu2019s showing confirmed qty more that order qty in sales order what could be the rea

  • No udev rules?

    Hello, everyone i have udev rule put in the /etc/udev/rules.d named 70-alfa-add.rules KERNEL=="wlan*", SUBSYSTEM=="usb", ACTION=="add", ATTR{address}=="00:C0:CA:57:10:B5", NAME="alfa" and it does not work. as i plug my usb device in, interface name d