Regarding Implementation of  Custom Validation.

Hi,
I have made a customize validatioin rule and a swing which used to input validation rule parameter.
I created 3 files
1) CustomRule.java
2) CustomRuleBeanInfo.java
3) CustomRuleCustomizer.java
But I am not able to pass value from swing component to CustomRule.java . it is coming as null .
Can anyone help me out in resolution .
Thanks and Regards,
Anoop Sharma

Hi Uryikin,
Thanks for your response.
Standard Retractor does not satisfy the Business requirement in full.
The RFC connection you have suggested is what we are implementing through RSPLAN function Type creation.
In the RSPLAN we are implementing a Class which will fetch the Data from the Infoobject.
This infoobject will be fed from the target Infocube. After this Class getting populated Mapping will be done b/w BI source fields and the R/3 source fields.
Now the problem arise when a Function Module needs to be created that will actually bring the data to R/3 side.
The server where  Data Load function Module is to written is still unknown to me..
The Function Module Return type is also unknown...
As this is totally customised we have to identify the return type for submission of Blueprint...
Kindly refer to this link we are implementing this same steps only on different scenario...
http://www.docstoc.com/docs/25252336/MDX-The-Basis-for-SAP-NetWeaver-BI-Third-Party-Interfaces/
Please Reply...

Similar Messages

  • Implementation of Custom Retractor in Cost Center Planning

    Hi All,
    I am facing a problem regarding Implementation of Custom Retractor.
    In our Project TM1 Server which is presently existing is to be replaced by BI server for Cost Center Planning.
    The value needs to be retracted back to the R/3 server for poplutaing the  Source Table fields.
    Now our Business requirement is best suited by implementing a Custom Retractor which would fetch the data from
    BI back to R/3 Server.I have some queries regarding this implementation.
    1> The Data load Function Module & Post Data Load Function Module which is implemented for Data loadinf into R/3 server
    is written in which server (BI / R3)? If its written in R3 as the case seems them how the BI table type needs to be declared in the
    function module?
    2> What the  Function Module is returning ..is it directly updating the DB table or returning a structure?
    Our project is still in the Realisation Phase....So no development has began yet....
    Eagerly waiting for your response.
    Thanks a lot..

    Hi Uryikin,
    Thanks for your response.
    Standard Retractor does not satisfy the Business requirement in full.
    The RFC connection you have suggested is what we are implementing through RSPLAN function Type creation.
    In the RSPLAN we are implementing a Class which will fetch the Data from the Infoobject.
    This infoobject will be fed from the target Infocube. After this Class getting populated Mapping will be done b/w BI source fields and the R/3 source fields.
    Now the problem arise when a Function Module needs to be created that will actually bring the data to R/3 side.
    The server where  Data Load function Module is to written is still unknown to me..
    The Function Module Return type is also unknown...
    As this is totally customised we have to identify the return type for submission of Blueprint...
    Kindly refer to this link we are implementing this same steps only on different scenario...
    http://www.docstoc.com/docs/25252336/MDX-The-Basis-for-SAP-NetWeaver-BI-Third-Party-Interfaces/
    Please Reply...

  • Custom Validator Types in BC4J

    HI,
    I am having a few problems implementing a custom validator type. Through following the documentation, I have created a new type via the registered rules tabs attached to my business components project. The created class extends oracle.jbo.server.rules.JboCompare Validator.
    Once registered, the class appears in the validation tab of the edit Entity wizard as expected.
    However, when I try to enforce a validation rule based on the created bean, I get the following :
    Cannot create an instance of the validation rule bean or editor.
    Validation rule class may not be in classpath.
    Exception oracle.jbo.dt.object.JboException(ClassNotFoundException)
    The class created is definately in the classpath for my project. I have also tried creating the class inititally, and then adding the class to the registered rules, as opposed to creating a new class via registered rules.
    Is this a bug, or have I missed something?
    Thanks,
    DB
    null

    Sorry for the delay in response on this -- it took me some time to track down the problem.
    When you create a customer validator, the class is added to your current project. However, the IDE doesn't include the myclasses directory as part of it's class path.
    The workaround is to edit the [JDeveloper_home]\bin\jdeveloper.ini, and add your current projects class output path to the IDEClassPath (e.g. IDEClassPath=..\lib\jdeveloper_intl.zip;...;..\myclasses)
    Thanks for the info. I have logged this as a bug, so hopefully we can resolve it in a future release.
    -- Brian

  • Implementing Custom Validation Logic for Payment Disbursements

    Hi All,
    Is there anyone here, who has implemented Custom Validation Logic for disbursements in Oracle payments.
    Theory: Under Payments Setup Administrator -> Formats -> Formats, we can setup a payment format and even attach a XML template. Apart from this we can setup Pre-defined validations or user Defined validations.
    For Pre-defined validations / seeded validations, Oracle has provided an API
    IBY_VALIDATIONSETS_PUB.evaluateCondition. We can use this API, and call a custom package by using the keyword 'CUSTOM' in the call.
    Has anyone played around with this package and successfully implemented custom validations. Does anyone have a sample code on how to implement this. The Payment Manager Implementation guide is of little help.
    Thanks

    This document was very helpful to me in creating a custom validation.
    http://docs.oracle.com/cd/E18727_01/doc.121/e13416/T387353T419293.htm

  • Problem with custom validated data types using domain on 11g

    Hi,
    I ' m on a migration process from 10 to 11 and I notice that a custom domain didn't work correctly anymore
    to be more specific every time that I was submiting a page a was getting an error cannot convert from myclass to oracle.jbo.domain.String
    I search the forum and I saw a similar problem
    Cannot convert type class java.lang.String to class oracle.jbo.domain.Clob
    at which Frank says that it is a known bug and suggests a work around.
    I use the workaround and it worked but some more issues came up:
    1. If the validation fails I get the error that I throw at the validate method not in a popup with just my message
    but in the whole window with the whole error stack, meaning that my custom validation is not handled like native ADF validation errors by
    the framework (at 10.1.3.4 worked OK)
    2 If i dont give a value at the attribute in the validation phase mdata variable is not null but is length is zero (at 10.1.3.4 its value was null)
    public class AFM implements DomainInterface, Serializable {
    public AFM(String val) {
    mData = new String(val);
    validate();
    private String mData;
    protected void validate() {
    // ### Implement custom domain validation logic here. ###
    mData==null // returns false
    mData.length()==0 // returns true
    3. Can i force validation only for new or updated values? I saw that the validation process is taking place every time a row is fetched.
    This is not only a performance issue, the bigger problem is that if a fetched from the DB value fails the validation an error is return but the
    user cannot change the value to correct it.
    TIA
    Tilemahos

    since i don't get any answer I wonder if i should have use a more provocative title like
    "custom domains in 11g don't work"
    is it true?
    Tilemahos

  • How to implement the schema validation with XSD in adapter module

    Dear All,
    I am trying to develop a EJB as the file adapter mudule.
    Please guide me how to implement the schema validation of the source message with XSD.
    Or provide me the relative resources about this task.
    Thanks & Regards,
    Red
    Edited by: Grace Chien on Nov 19, 2008 8:23 AM

    Hi Grace,
    You can do the xml scema validation in PI7.1 version directly.
    To develop the adapter module for xml schema validation
    Validating messages in XI using XML Schema
    Schema Validation of Incoming Message
    Regards
    Goli Sridhar

  • Custom Validation in ESS Edit Screen

    All,
    We have a requirement in ESS Address screens that all country users should key in only English Data. We are in SAP ESS SP12 and all the Address Components are in WD Java. The validation on all the address screen fields for this requiement has to be handled and give an error message back to the user.
    The Options that I Checked out were:
    1) Handling the Validation through BADI HRPAD00INFTYUI or HRPAD00INFTYBL.
    2) Handling the validation in WD Java layer inside the country spoecific components isConsistent method of the Detail View Component controller
    Which is the best place (ABAP or JAVA) to handle Custom validations on the Edit Screen and give back message to the user? Please suggest if any other better options are available other than the above mentioned ones.
    Regards,
    Nagarajan.

    Hi,
    Both are doable if you are good in java and have NWDI ,handling validations in the wd java layer is easy. If you are good in ABAP you can handle in ABAP.It depends on how you write your code, if you do validations in java and if your validation fails you can show errors to user right away which will reduce your call to backend at isconsitent method for checking the errors.
    Thanks,
    pkv

  • Custom Validation Routine not getting triggered

    Hi,
    I need some information regarding the Validation Routines that is maintained in SPRO.
    I created a validation routine and activated it. And also I maintained all the configurations needed. But when I create an ASN in VL60, the program control is not going inside the validation routine that I created.
    When I checked the program /SPE/RTS, I found that it contains all the SAP Std validation routines except the routine that I created. I believe that an entry need to be created automatically in the program /SPE/RTS when activarte my custom validation routine, which is not happening.
    Does any one else has faced this issue before? Thanks a lot in advance.....
    Thanks & Regards
    Sreeraj Pulickal

    Vinod,
    I do have a separate client for testing and I had moved all the changes from DEV to Testing client. But since no entry has been created in program /SPE/RTS for my custom validation routine in DEV, there is point in moving all the changes. The validation routine won't get triggered.
    So I created an implicit enhancement in /SPE/RTS to include my validation routine. I'm not sure whether this is the right approach, but it solved my problem.
    Thanks
    Sreeraj.

  • Implementing a custom logger

    Hi,
    I am using Adobe Flash Builder 4.6.I was trying to implement a custom logger with the logging API.
    According to my understanding a flashlog.txt file has to be created which contains all the logs.But for me th file is not getting created.
    Do I need a debugger version for this isuue.I am completely new to flex so kindly provide me information on debugger version of flashplayer also.
    Thanks and regards
    Marzada

    Have you looked at http://livedocs.adobe.com/flex/3/html/help.html?content=logging_09.html and followed the steps?

  • OTL Time card: Where to write custom validations

    Hi,
    I need to write some validations after the user submits time card.
    WHat is the package in which I can write these custom validations? Does oracle recommend any specific package?
    Also, If i have two projects,
    Time card period: 01-01-12 to 01-08-12
    Project 1 ends on 01-05-12
    Project 2 starts from 01-06-12
    Would it be possible to restrict project lov if user tries to enter project on 01-07-12, not to use project 1?
    if not possible where can I make that validation in the code?
    Appreciate your help.

    Hi,
    I will answering your doubts no 3 and 4
    Instead of using XML template, I would suggest you to use WED Adi, which can be called from the OTL page
    button. And at that time the only thing u have to upload server with the WebAdi template.
    Here you will not need to build a custom table, a view will solve the purpose. And there is not need of further maintenance
    For the file to be read only you can include it in the code while extending your respective controller class.
    But Oracle recommend not to extend controller class. Let the client be aware of it, that it requires the extension
    of controller class of the page. If he thumps up the extension of controller class then your life becomes pretty simple.
    Regards,
    Pankaj Kedia

  • Custom Validations and Error Handling

    Hi
    I have a requirement that I have to use the custom validation and the errors and/or exceptions should display in the page. All the errors needs to be displayed in the page at the same time.
    Suppose If i have two fields like...1)First Name and 2) BirthDate ...both are required fields. If user does not enter any values for both the fields, the errors should display in the page like 'First Name is required! Save Failed' /n
    'Float the mouse cursr over the red arrows to see the filed serror mesg'. So all the errors in JSF page should be recorded and displayed when user mouse over taht particular component.
    I am new to JSF. Can you please anybody tell me what is best way to implement this in JSF?

    We should not use the JSF built-in validation framework and desiging the custom validation. For that we are writing the validate() method in BackingBean.
    My Requirement is as follows...
    Capture all the errors in JSF page and display the same JSF page with all the errors.
    For example: If I have 5 fields in form, and 3 fields out of it fails in validation ...we need to show the page with all the fields and some kind of Red border and arrow on the fileds that are failed in validation.
    Also in the bottom of the page we need to display the first field error mesg .....
    -- Suppose say First Name, Last Name, DOB, Gender, Field5 are the fields and only Last Name, DOB and field5 are failed in validation...
    Then we have to display in the botton of the page **{color:#ff0000}'Last Name is required! Save Failed{color}**' along with this,
    We need to display the mesg *{color:#ff0000}''Float the mouse cursor over the red arrows to see the filed error mesg'{color}*. -> This means we are dislaying the page with red arrows on the fileds that are failed in validation.
    So when user mouse over in the arrow...we should display the error message for that particular field.

  • Custom validation rules

    Using adf/bc with jdev 10.1.3.3. I've created a custom validation rule class according to the instructions in the adf guide. In that class, I've defined just one property, along with its getters/setters. I've registered my rule in the business component project and associated the rule to an entity attribute via the entity object editor. My problem is that I don't see any way for me to set the property/value of the property that's defined in the validation rule class. For example, in the SRDemo app, in the entity editor for ServiceRequest, if you highlight Validation in the left pane then select the AttributeMustExistInViewRowRule for the Status attribute and click the Edit button, you can set various property values that have been defined in the validation rule class. These values appear to then be updated to that entity's xml file. When I'm in my entity object editor and i've assigned a validation rule to an attribute, I can type in the error message text in the Edit Validation Rule dialog, but it says there are no properties to edit! I guess I haven't wired something together quite right? Note, I have not created the customizer and bean info classes for the design time aspect of this stuff. I assume that you do not absolutely need these classes to create and work with a customr validation rule? Anyone know what I'm doing wrong?

    ok, i figured out the problem. The property/value fields in the Edit Validation Rule dialog will not appear until you've actually compiled the custom validation rule class. I had tried to create the validation rule class, register it with the bc project, and assign it to an entity attribute all without first compiling the class. I stumbled upon this 'fix' in jdev's help, which leads me to another question. For the help topic entitled Creating Custom Declarative Validation Rules for Oracle ADF Business Components, the instructions have you create a class that implements JbiValidator and provide implementation for the method vetoableChange, from which you typically call validateValue. The adf guide's example has the custom validation rule class that extends AbstractValidator and implements JboValidatorInterface. In this example, you provide implementation for the validate method. What's the difference between these two approaches and when should I use one over the other? Thanks.

  • Material master custom validation

    hi, friends i have doubt about Material master Custom validation coding .i want some codes...please send me some sample codes...

    Hi Krishna,
                     Tell me your requirement clearly.
    refer this thread.This may help you
    In material master How to add a new field on Basic data 1 view
    Regards
    Karthik

  • SharePoint 2013 Custom Content Type with Site Column custom validations

    Hello,
    Can somebody please suggest me how I can create custom content type with site columns with custom validation to site columns programmatically?
    Thanks,
    Praveen Kumar Padmakaran

    Hi,
    From your description, my understanding is that you want to create content type with site column with validation.
    You could create a site column, and add some validation to the site column. After you could create a custom content type, please add the site column with validation to the content type. Please refer
    to this code below:
    static void Main(string[] args)
    // replace your url
    using (SPSite site = new SPSite("http://sp/sites/sp2013"))
    using (SPWeb web = site.OpenWeb())
    //define the type of the field
    SPFieldType type = SPFieldType.Number;
    // create a site column
    SPField field = CreateSiteColumn(web, "newTest", type, "");
    // add custom formula for the field
    SPFieldNumber fieldNumber = web.Fields.GetField("newTest") as SPFieldNumber;
    fieldNumber.ValidationFormula = "=[newTest]>5";
    fieldNumber.ValidationMessage = ">5";
    fieldNumber.Update();
    SPContentTypeId parentItemCTypeId = web.ContentTypes[0].Id;
    // create custom content type
    SPContentType contentType = CreateSiteContentType(web, "newContent", parentItemCTypeId, "Custom Content Types");
    // add the site column to the content type
    AddFieldToContentType(web, contentType, field);
    // add fiedl to contenttype
    public static void AddFieldToContentType(SPWeb web, SPContentType contentType, SPField field)
    if (contentType == null) return;
    if (contentType.Fields.ContainsField(field.Title)) return;
    SPFieldLink fieldLink = new SPFieldLink(field);
    contentType.FieldLinks.Add(fieldLink);
    contentType.Update();
    // create a custom content type
    public static SPContentType CreateSiteContentType(SPWeb web, string contentTypeName,SPContentTypeId parentItemCTypeId, string group)
    if (web.AvailableContentTypes[contentTypeName] == null)
    SPContentType itemCType = web.AvailableContentTypes[parentItemCTypeId];
    SPContentType contentType =
    new SPContentType(itemCType, web.ContentTypes, contentTypeName) { Group = @group };
    web.ContentTypes.Add(contentType);
    contentType.Update();
    return contentType;
    return web.ContentTypes[contentTypeName];
    // create a site column
    public static SPField CreateSiteColumn(SPWeb web, string displayName,SPFieldType fieldType, string groupDescriptor)
    if (!web.Fields.ContainsField(displayName))
    string fieldName = web.Fields.Add(displayName, fieldType, false);
    SPField field = web.Fields.GetFieldByInternalName(fieldName);
    field.Group = groupDescriptor;
    field.Update();
    return field;
    return web.Fields[displayName];
    You could refer to these articles:
    C# code to create Site Column, Content Type, and add fields to Content Type
    http://spshare.blogspot.jp/2013/10/c-code-to-create-site-column-content.html
    How to do custom validation for site column in SharePoint
    http://www.c-sharpcorner.com/uploadfile/anavijai/how-to-do-custom-validation-for-site-column-in-sharepoint/
    Best Regards,
    Vincent Han
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected].

  • Creating a Custom Validator

    I follow the step in http://www.netbeans.org/kb/articles/jAstrologer-validate.html, I have a problem on Creating a Custom Validator, I always get error on Netbean , How the EmailValidator implements Validator in here , what concept I miss
    package Hell.validator;
    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    import javax.faces.application.FacesMessage;
    import javax.faces.component.UIComponent;
    import javax.faces.context.FacesContext;
    import javax.faces.validator.Validator;
    import javax.faces.validator.ValidatorException;
    * @author root
    public class EmailValidator implements Validator {
      public void validate(FacesContext facesContext,
                UIComponent uIComponent, Object value) throws ValidatorException {
            //Get the component's contents and cast it to a String
             String enteredEmail = (String)value;
            //Set the email pattern string
            Pattern p = Pattern.compile(".+@.+\\.[a-z]+");
            //Match the given string with the pattern
            Matcher m = p.matcher(enteredEmail);
            //Check whether match is found
            boolean matchFound = m.matches();
            if (!matchFound) {
                FacesMessage message = new FacesMessage();
                message.setDetail("Email not valid - The email must be in the format [email protected]");
                message.setSummary("Email not valid - The email must be in the format [email protected]");
                message.setSeverity(FacesMessage.SEVERITY_ERROR);
                throw new ValidatorException(message);
    }

    Darryl.Burke wrote:
    Never heard of that error.Neither do I.

Maybe you are looking for

  • Using a seperate thread to control motors

    Hi am new to Java and am struggling with a probelm. The application is to control 4 motors connected to the parallel port. When the user presses a button the motor is set to a certain speed (byte output to port). Once the button is released the port

  • After effects cc incomplete renders and other problems after installing 2014

    i left an almost 5 minute long project rendering last friday only to find out this morning that the first 55 seconds where left out of the render, with my work area set to the entire timeline. in the past i've had some other issues such as no audio w

  • Parallel Query/Execution

    Guys, What is parallel quering/execution? How does it help to improve the performance. Thanks

  • GetURL issue on browser  "interactive" mode

    Hello all. I'm having a hard time to show a webpage back on the browser, after getURL is triggered to get it. The environment is the following: Nokia N95, S60 3rd Edition's web browser, Flash Lite 2.0. Opening the mobile browser, I have a XHTML page,

  • Tomcat 4.0 & JDK1.4

    I keep getting "Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated" warning AND "Class mypackage.myclass not found" errors I installed JDK1.4 locally and none of my webapps worked, so I re-installed JDK1.3 and I do not rece