OC complex validation procedures discussion

Hi all,
So glad to find such a place here. I have used OC for 3 years and would like to make friends with you all. If you got any complex validation procedures in OC that haven't been resolved, welcome to write to me at [email protected], i would like to discuss with you all.
fight2009

Thanks a lot for your reply and clarification. Our Oracle DBA is in the IT Department and to ask him to put the package in production will take several days, because the IT department told us that their DBA must compile, test and validate the package passing through a long process. As I understood we have not choice and we must request the DBA to do this.
Before OC we worked with a local system and we performed extracts from the Database to the SAS system every time we wanted to run any derivation/validation procedures.
Best Regards,
Nassim

Similar Messages

  • Advanced and complex validation procedures

    Hi,
    We have a derivation procedure with more than 40000 caracters and impossible to split it. I know that we can create a package and put it in a created account e.g. pack and give an execute access to the rxc_pd account then call this package from OC within procedure, custom code, predetail.
    Can a Datamanager perform this work (create the package, compile it, put it in the write account and grant the access)? if yes: which tools are recommanded to do that?
    What is the common way to do for the long procedures?
    What are the common tools used by the datamanager programer?
    I will appreciate a lot for any help.
    Thanks in advance

    Thanks a lot for your reply and clarification. Our Oracle DBA is in the IT Department and to ask him to put the package in production will take several days, because the IT department told us that their DBA must compile, test and validate the package passing through a long process. As I understood we have not choice and we must request the DBA to do this.
    Before OC we worked with a local system and we performed extracts from the Database to the SAS system every time we wanted to run any derivation/validation procedures.
    Best Regards,
    Nassim

  • HTTPS SharePoint site with HTTPS Provider hosted app - The remote certificate is invalid according to the validation procedure

    We have SharePoint 2013 site configured with SSL and we have developed a provider hosted app which interacts with SharePoint list.
    If we try accessing the Provider hosted app from the SharePoint site with HTTP [http://mysharepointsite.com/] there are no any errors thrown.
    But whenever the same Provider hosted app is tried accessing from the same SharePoint site using https address
    [https://mysharepointsite.com/] we are getting below error:
    The remote certificate is invalid according to the validation procedure.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack Trace:
    [AuthenticationException: The remote certificate is invalid according to the validation procedure.]
    System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception) +2983172
    System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) +473
    System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) +86
    System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) +262
    System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) +473
    System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) +86
    System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) +262
    System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) +473
    System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) +86
    System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) +262
    System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) +473
    System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest) +8530566
    System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult) +230
    System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) +645
    System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) +9
    System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) +87
    System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result) +1467
    System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size) +84
    System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size) +22
    System.Net.ConnectStream.WriteHeaders(Boolean async) +761
    [WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.]
    System.Net.HttpWebRequest.GetResponse() +8534156
    Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute() +58
    Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServer(ChunkStringBuilder sb) +975
    ProviderHostedHTTPSWeb.Default.Page_Load(Object sender, EventArgs e) +348
    System.Web.UI.Control.LoadRecursive() +71
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178
    We have already added the certificate used for the SharePoint site and the provider hosted app in the SharePoint central admin trusts.
    Any idea's how can I resolve this issue?

    Hi,
    According to your post, my understanding is that you failed to access provider host app using https.
    The reason for this is that SharePoint implements its own certificate validation policy to override .NET certificate validation.
    Fix is to setup a trust between SharePoint and the server requiring certificate validation.
    For more information, you can refer to:
    http://blogs.technet.com/b/sharepointdevelopersupport/archive/2013/06/13/could-not-establish-trust-relationship-for-ssl-tls-secure-channel.aspx
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Validation Procedures, discrepancy for received dcm

    Hi,
    I'm creating a validation procedure where I should get a discrepancy if the CRF page is blank, however, using the HAS_DATA doesn't work at all here and the discrepancy doesn't come up. I have the RECEIVED DCM with status RECEIVED and...I'm not sure but is it possible to show a discrepancy when the status of the RECEIVED DCM is 'RECEIVED' ? or do they have to have PASS status so OC will show the discrepancy and information related?
    Thanks
    Edited by: user10312383 on Dec 9, 2010 3:06 PM

    Hi,
    I'm creating a validation procedure where I should get a discrepancy if the CRF page is blank, however, using the HAS_DATA doesn't work at all here and the discrepancy doesn't come up. I have the RECEIVED DCM with status RECEIVED and...I'm not sure but is it possible to show a discrepancy when the status of the RECEIVED DCM is 'RECEIVED' ? or do they have to have PASS status so OC will show the discrepancy and information related?
    Thanks
    Edited by: user10312383 on Dec 9, 2010 3:06 PM

  • Complex "validation rule" using Java Bean code

    Hi,
    I have never used validation rules with jdeveloper, but i need a complex validation rule of one column of my table.
    Can i put a "validation rule" on an attibute of a view object, or on a column of a table, that use Bean code ?
    My column must contain different values depending of the other columns of the table, so i think i can't do this without java code...
    I tried to doubleClick on the column to create a validator, but I have put a "Print" inside, and seen that it is executes lots of times, but I want to execute the validation only when the value of the column change !
    How can I do this ? What do i need to use ?
    Regards,
    Trigger

    I have use John's solution, it works well !
    Sorry vinod_t_krishnan i am good with java but i don't know how to use well EL Expressions so I did not try your method...
    The code if so is interested...
        public boolean validateOvpdOvprCode(String ovpdovprcode) {
            RowIterator ovRubrique = this.getOvRubrique();
            RowIterator ovRubriqueType = this.getOvRubriqueType();
            String modifiable = (String)ovRubriqueType.getRowAtRangeIndex(0).getAttribute("OvrtModifiable");
            String majuscule = (String)ovRubrique.getRowAtRangeIndex(0).getAttribute("OvruMajuscule");
            String type = (String)ovRubrique.getRowAtRangeIndex(0).getAttribute("OvruTypeDonnee");
            BigDecimal repMin = (BigDecimal)ovRubrique.getRowAtRangeIndex(0).getAttribute("OvruRepMini");
            BigDecimal repMax = (BigDecimal)ovRubrique.getRowAtRangeIndex(0).getAttribute("OvruRepMaxi");
            modifiable = modifiable.toUpperCase();
            majuscule = majuscule.toUpperCase();
            type = type.toUpperCase();
            BigDecimal ovprBD = null;
            if (modifiable.equals("N")) {
                errorMessage = "Ce champ n'est pas modifiable ! Actualisez la page pour réinitialiser sa valeur !";
                return false;
            } else {
                if (ovpdovprcode == null)
                    return true;
                if (type.equals("N")) {
                    float ovprInt = 0;
                    try {
                        ovprInt = Float.parseFloat(ovpdovprcode);
                        ovprBD = new BigDecimal(ovprInt);
                    } catch (Exception e) {
                        errorMessage =
                                "Ce champ est de type numérique, il ne doit contenir que des chiffres et un 'point'";
                        return false;
                    if(repMin != null && repMax != null)
                        if(ovprBD.compareTo(repMin) == -1 || ovprBD.compareTo(repMax) == 1) {
                            System.out.println("4");
                            errorMessage = "La réponse doit être comprise entre " + repMin + " et " + repMax + ".";
                            return false;
                if (majuscule.equals("O"))
                    if (!ovpdovprcode.equals(ovpdovprcode.toUpperCase())) {
                        errorMessage = "Ce champ doit comporter uniquement des majuscules";
                        return false;
                return true;
        }

  • Defining complex validations for flex items

    Hi,
    We've defined a flex regions and a number of flex items. We would like to define more complex validation logic at the entity object level, whereby we'd like to reference both 'fixed' entity attribute values as well as values of the flex items.
    Could you please indicate how this can be achieved in the validateEntity method of the EntityImpl.java class.
    We know beforehand which flex items will be displayed based on the value of one of the fixed entity attributes (e.g. if the attribute request_type='assist' then display flex items A and B, if request_type='info' then display flex items D, E and F). We use flex items because the number of request_types and corresponding 'dynamic' attributes is too large (and subject to frequent additions, deletions or modifications) to incorporate in a fixed static db table structure.
    If you can suggest alternatives to using JHeadstart flex items, these are more than welcome, of course.
    Many thanks beforehand,
    Ibrahim

    Dear Steven,
    First of all many many thanks for your prompt reply. We can use JSF EL expressions to conditionally render flex items. I'd like to illustrate my question with a simple example:
    We have three fixed entity attributes displayed:
    RequestType
    Birthday
    Sex
    and two flex items (rendered at runtime for a specific runtime value of RequestType):
    Smoker (Y/N)
    Weight
    Before saving the record I'd like to check a number of validation business rules that depend on the fixed entity attributes as well as the two flex items being displayed.
    Consequently, I'd need to be able to access the flex item values provided by the user, inside my validateEntity method (right ?).
    I can define simple validations for the flex items, but I can only access the flex item value and possibly the DependsOnItemValue.
    PS: When I define a flex item of type 'inputtext' and try to access its value using a bind variable in the validation query of the flex item e.g.
    :ItemValue = 'blabla'
    Suppose the user fills in the value Abracadabra, the validation logic substitutes as follows:
    Abracadabra = 'blabla' (which generates an Oracle error). I'd expect the following substitution to take place:
    'Abracadabra' = 'blabla'

  • Any real time complex validations and assignments

    Hi frds,
    Any one can share few real time complex validations and Assignments on product object?
    Thanks in advance
    Regards.

    Rajeev,
    I do not have real time validation exaples. There are couple of blogs on SDN
    search for
    MDM Expression Engine
    (the document name is MDM Express Engine: Validations,Assignments and More)
    Parsing and Validating Numbers
    (used for check digits but gives more insight on writing validations.)
    I hope this helps
    Regards
    Bala Pochareddy

  • Cannot browse valid procedure in portal after creating a new one.

    i can browse http://xxx/pls/web/web.home by ie5 after install 9ias. but when i created a new procedure in the same schema,ie returns "procedure do not exists.".
    The new procedure is valid in 'dba studio'.
    do i need more config??
    thanx.
    null

    Do this...
    Login as <portal_schema> to SQL*Plus.
    grant execute on <your procedure> to public.
    Then you will be able to run this procedure thru browser.

  • Complex validation rules

    Experts,
    I want to do validation check for this screen http://www.2shared.com/photo/hRS0k6yI/validation_check.html.
    The use case is :
    Basically if one of the checkbox is selected, the user need to select the radio button under it or enter some value in the text box below it.
    At a time user can only select one check box and 1 radio button below it or enter something in the text box below it.
    If what the user is looking for is not available in the checkbox option, he can enter something in the "Others - Text area- extreme right" - but he cannot select any checkbox/radio button in that case
    Can someone please tell me how to achieve this validation ?
    is there any way to do this other than writing ifs condition..
    Jdev 11.1.1.5
    thnks

    Hi,
    There is no way to write validation for your case without using if-else condition as your case deals with so many conditions and needs different messages to be thrown based on particular case.
    What is the issue with writing if conditions?
    Sireesha

  • Complex Validation

    Hello Experts,
    I have table with fields like customer, unit etc..
    Customer field is Not a unique field.
    Each customer should be assigned to ONLY one UNIT.
    when the same customer is entered if another unit is selected then Import should fail.
    For Ex:
    File 1 has the following data init..
    Cust   |  Unit
    Xyz   |  raw-materials
    Vjk    |   storage
    Once this data is imported.
    File 2 has
    Cust   |  Unit
    Xyz   |   storage
    jhu     |   storage
    Then this record  (Xyz   |   storage ) should  fail because Xyz should always be assigned to Raw-materials.
    How can i create the Validation which checks the duplicates and verifies the Unit field value.

    Hi Eva,
    As you don't want to maintain it as Unique field.
    As per your requirement, i also feel this thing you can take care during import of data. In Import Manager, upload a source file with New as well as with existing customers records in MDM. Now after doing all field and value mapping. In Match Record tab,Select your Matching field as Customer only. So correspondingly, in Default import action--> For newly created record (Customer: Jhu), Select default import Action as Create and for already existing customer Match Type: Exact e.g. Xyz Select Default import action tab as Skip which will fail this customer to update again. After this save map and check whether this map works fine for further coming source files or not.
    I don't have MDM Access   so cant check it. Kindly revert with result if this helps you.
    e.g. first time you have source file as
    Cust | Unit
    Xyz | Null
    Next time again if cust Xyz comes with some Unit say raw-materials it will not update this record though for already existing record it has unit value as Null.
    Note: It will not create customer(duplicate) with same value xyz irrespective of Unit value fill or not. So use it wisely if it fits your requirement because it will not check for Unit.
    Alternative: If the above solution does not fit you and as you are checking this thing on the fly so use of BPM workflow with BRM can definitely help you where you need to search for the customer and Unit using a custom application which will search in mdm repository. if already exists in mdm so you can roll back that customer record else commit record in mdm.
    Regards,
    Mandeep Saini
    Edited by: Mandeep Singh Saini on Dec 10, 2010 9:00 PM

  • Validation Procedure Error

    Hi,
    When I generate a procedure it gives me as failure status, but when i go and check view parse error it shows me blank screen. Can any one help me in solving this issues.

    Hi,
    If you are having a Blank screen showwing up in the Log file it probable means your PSUB isnt running.
    Try and go to C:\opapps\oc\45\log and open the log file that starts with rxcpsd.... That will tell you what is the status of your PSUB service and what was the error.
    Post the output here so that we may analyze it further.
    best regards
    Trainer
    CDM PORTAL
    www.cdmportal.info

  • Complex pricing procedure

    Hi Gurus
    My client has a requirement whereby they need to bill on materials which have over stayed in their premises in excess of 30 days. The client deals with the business of storage of materials for it customers. They have proposed two levels of tariff 30-60 days 20USD and 61-90 30 USD. the rates are to be prorated i.e per day. Meaning that if a customer has 10 boxes in store which have over stayed by 20 days he will pay ( 20days X 10 boxes X 20/30). how do we go about this?

    Hi Josiah Mugo,
    There are two possible solution for your scenario.
    These are as below:
    Option A:
    Create two condition types say ZA01 and ZA02
    ZA01 will calculate the value based on days for e.g 20 days *20/30
    The second condition type ZA02 will have base value of ZA01and. It will have unit of measure as cartons. i.e. 20.
    As per your need you can maintain the values in scale too.
    Option B:
    Here you have to create the routine of Alt calculation type which will take care of the required calculation.
    Hope this will help you.
    Thanks and Regards,
    Atulkumar Dagade

  • Across row validation in tabular form and across items in row validations.

    Hi,
    We are upgrading to APEX 4.0.
    I need to create a tabular form that will have a start date and an end date. FOr each new row or updated row I need ensure its start date is after the end date of all rows already entered and its end date is after the start date of row being entered. Also that if no end date is entered then no other rows can be found with a null end date.
    SO I need across field validations with in a row and across row validattions. That is I need rowset validations as well.
    Is it possible to do this with APEX? WHat kind of tabular solution would allow these type of validations. How might these validations be done?

    Okay, Here's a quick rundown on how to build a manual form using APEX_ITEM and collections. The process goes in 4 steps: gather the data, display the data, update based on user input, then write the changes. Each step requires it's own piece of code, but you can extend this out as far as you want. I have a complex form that has no less than a master table and 4 children I write to based on user input, so this can get as complex as you need. Let me know if anything doesn't make sense.
    First, create the basic dataset you are going to work with. This usually includes existing data + empty rows for input. Create a Procedure that fires BEFORE HEADER or AFTER HEADER but definitely BEFORE the first region.
    DECLARE
      v_id     NUMBER;
      var1     NUMBER;
      var2     NUMBER;
      var3     VARCHAR2(10);
      var4     VARCHAR2(8);
      cursor c_prepop is
      select KEY, col1, col2, col3, to_char(col4,'MMDDYYYY')
        from table1
        where ...;
      i         NUMBER;
      cntr      NUMBER := 5;  --sets the number of blank rows
    BEGIN
      OPEN c_prepop;
        LOOP
          FETCH c_prepop into v_id, var1, var2, var3, var4;
          EXIT WHEN c_prepop%NOTFOUND;
            APEX_COLLECTION.ADD_MEMBER(
            p_collection_name => 'MY_COLLECTION',
            p_c001 => v_id,  --Primary Key
            p_c002 => var1, --Number placeholder
            p_c003 => var2, --Number placeholder
            p_c004 => var3, --text placeholder
            p_c005 => var4 --Date placeholder
        END LOOP;
      CLOSE c_prepop;
      for i in 1..cntr loop
        APEX_COLLECTION.ADD_MEMBER(
            p_collection_name => 'MY_COLLECTION',
            p_c001 => 0, --designates this as a new record
            p_c002 => 0, --Number placeholder
            p_c003 => 0, --Number placeholder
            p_c004 => NULL, --text placeholder
            p_c005 => to_char(SYSDATE,'MMDDYYYY') --Date placeholder
      end loop;
    END;Now I have a collection populated with rows I can use. In this example I have 2 NUMBERS, a TEXT value, and a DATE value stored as text. Collections can't store DATE datatypes, so you have to cast it to text and play with it that way. The reason is because the user is going to see and manipulate text - not a DATE datatype.
    Now build the form/report region so your users can see/manipulate the data. Here is a sample query:
    SELECT rownum, apex_item.hidden(1, c001),  --Key ID
         apex_item.text(2, c002, 8, 8) VALUE1,
         apex_item.text(3, c003, 3, 3) VALUE2,
         apex_item.text(4, c004, 8, 8) VALUE3,
         apex_item.date_popup(5, null,c005,'MMDDYYYY',10,10) MY_DATE
    FROM APEX_COLLECTIONS
    WHERE COLLECTION_NAME = 'MY_COLLECTION'This will be a report just like an SQL report - you're just pulling the data from the collection. You can still apply the nice formatting, naming, sorting, etc. of a standard report. In the report the user will have 3 "text" values and one Date with Date Picker. You can change the format, just make sure to change it in all four procedures.
    What is critical to note here are the numbers that come right before the column names. These numbers become identifiers in the array used to capture the data. What APEX does is creates an array of up to 50 items it designates as F01-F50. The F is static, but the number following it corresponds to the number in your report declaration above, ie, F01 will contain the primary key value, F02 will contain the first numeric value, etc. While not strictly necessary, it is good practice to assign these values so you don't have to guess.
    One more note: I try to align the c00x values from the columns in the collection with the F0X values in the array to keep myself straight, but they are separate values that do NOT have to match. If you have an application you think might get expanded on, you can leave gaps wherever you want. Keep in mind, however, that you only have 50 array columns to use for data input. That's the limit of the F0X array even though a collection may have up to 1000 values.
    Now you need a way to capture user input. I like to create this as a BEFORE COMPUTATIONS/VALIDATIONS procedure that way the user can see what they changed (even if it is wrong). Use the Validations to catch mistakes.
    declare
      j pls_integer := 0;
    begin
    for j1 in (
      select seq_id from apex_collections
      where collection_name = 'MY_COLLECTION'
      order by seq_id) loop
      j := j+1;
      --VAL1 (number)
      apex_collection.update_member_attribute (p_collection_name=> 'MY_COLLECTION',
          p_seq=> j1.seq_id,p_attr_number =>2,p_attr_value=>wwv_flow.g_f02(j));
      --VAL2 (number)
      apex_collection.update_member_attribute (p_collection_name=> 'MY_COLLECTION',
          p_seq=> j1.seq_id,p_attr_number =>3,p_attr_value=>wwv_flow.g_f03(j));
      --VAL3 (text)
      apex_collection.update_member_attribute (p_collection_name=> 'MY_COLLECTION',
          p_seq=> j1.seq_id,p_attr_number =>4,p_attr_value=>wwv_flow.g_f04(j));
      --VAL4 (Date)
      apex_collection.update_member_attribute (p_collection_name=> 'MY_COLLECTION',
          p_seq=> j1.seq_id,p_attr_number =>5,p_attr_value=>wwv_flow.g_f05(j));
    end loop;
    end;Clear as mud? Walk through it slowly. The syntax tells APEX which Collection (p_collection_name), then which row (p_seq), then which column/attribute (p_attr_number) to update with which value (wwv_flow.g_f0X(j)). The attribute number is the column number from the collection without the "c" in front (ie c004 in the collection = attribute 4).
    The last one is your procedure to write the changes to the Database. This one should be a procedure that fires AFTER COMPUTATIONS AND VALIDATIONS. It uses that hidden KEY value to determine whether the row exists and needs to be updated, or new and needs to be inserted.
    declare
    begin
      --Get records from Collection
      for y in (select TO_NUMBER(c001) x_key, TO_NUMBER(c002) x_1,
                 TO_NUMBER(c003) x_2,
                 c004 x_3,
                 TO_DATE(c005,'MMDDYYYY') x_dt
               FROM APEX_COLLECTIONS
               WHERE COLLECTION_NAME = 'MY_COLLECTION') loop
        if y.x_key = 0 then  --New record
            insert into MY_TABLE (KEY_ID, COL1,
                COL2, COL3, COL4, COL5)
              values (SEQ_MY_TABLE.nextval, y.x_1,
                  y.x_2, y.x_3, y.x_4, y.x_dt);
        elsif y.x_key > 0 then  --Existing record
            update MY_TABLE set COL1=y.x_1, COL2=y.x_2,
                 COL3=y.x_3, COL4=y.x_4, COL5=y.x_dt
             where KEY_ID = y.x_key;
        else
          --THROW ERROR CONDITION
        end if;
      end loop;
    end;Now I usually include something to distinguish the empty new rows from the full new rows, but for simplicity I'm not including it here.
    Anyway, this works very well and allows me complete control over what I display on the screen and where all the data goes. I suggest using the APEX forms where you can, but for complex situations, this works nicely. Let me know if you need further clarifications.

  • Lead Management Validations - PCUI

    Hi, I am creating new fields for Lead Management and I did this using the easy enhancement workbench, now I need to make some validations on the data from those fields based on data on other fields from the lead.
    Is there a BADI I could use for this? Or is there a better way to do this than using a BADI?
    Thanks a lot for your cooperation.

    Hi Felipe, regarding your question, when would you like these validations to take place and how would you like the results of these validations be presented? When you want these validation being performed at runtime, e.g. after pressing enter and the results to be displayed in the message subscreen at the top of the screen you should have a look at the following IMG path: CRM -> Basic Functions -> Incompleteness. For 'simple' validations you can define custom procedures and for more complex validations you can use the second option in that path. In the case these validation should occur upon save, have a look at BAPI 'CRM_LEAD_H_BADI ', method 'CRM_LEAD_H_CHECK'. Hope this answers your question, Tiest.

  • JDev 11g: Best Practice Multi Field Validation / Reset in a Dialog Control

    I'm using JDev 11g and want to do the following (excuse my newbie learning curve):
    1. Ability for the user to have a "dialog" form that they can edit their user information such as name, password, email, etc.
    2. When user clicks OK want the system to validate that password fields are the same (there are two of them).
    3. When user clicks Cancel I want the form to reset and the dialog to close.
    Sounds easy right? However, I've seen several ways to implement and none of them seem straight forward and don't appear to work like I would want so instead spending the next day coding want to know if there's an easy solution.
    For # 2:
    The examples on the web use a phase listener for multi-form validation which when using a small dialog in a larger arena seems like overkill since the entire view will get my event right? Is there a similar thing for subform or subview?
    Another example uses a listener for value change, however that doesn't work to well when trying to validate two fields match.
    For # 3:
    A standard OK Cancel dialog does not auto reset a form within it (it leaves the text - even invalid text in the field). Adding my own button for reset doesn't close the form and adding a reset listener doesn't close the form either. Is there a simple way and I'm just overlooking it? Should I use the standard buttons and somehow assign the cancel to reset the form or define my own and somehow close the popup? There's not too much documentation I can find about using Javascript to modify objects such as closing a dialog.
    Anyone have the best approach that should be followed with less headache downstream and better portability to other forms with more complex validation? Any examples I missed that shows this working in a dialog?
    Thank you,
    Kris

    Hi,
    I don't understand #2, so ignoring it
    #1 You can set the immediate property on the two password fields. In a value change listener you compare the two provided values and if they match, you continue processing. Otherwise you set an error message and call response complete. Note that as much as we like to provide everything declarative, coding is something that we cannot neglect completely in a programming environment.
    #3 You can intercept the dialog close event and in this event determine which button was pressed. If it was the cancel button, get the current row from the underlying iterator and call refresh() passing one of the arguments you find when typing "Row." e.g DB refreshWithDBForget.
    Frank

Maybe you are looking for

  • Qosmio x500/02G Number Pad Not Working

    Hello, I have a x500 that i recently purchased and installed Windows 7 Professional on it. Now i cannot use the number pad on the right hand side of the keyboard. I've tried using various combinations of NUMLOCK and SCROLLLOCK to no avail. Surely the

  • FTP won't connect Get multiple daemons

    I had the problem where no one could connect with any password in FTP. I replaced the /Library/FTPServer/Configuration/ftpaccess file and fixed the bad password problem. For a few minutes I could connect. Now I cannot. When I try to connect I get: ++

  • Email attachment count

    hello java guru's can someone tell me how will i get all the attachments(>2) and print each attachments content.. part = new Packages.javax.mail.internet.MimeBodyPart(is); for each of the attachment, i want the filename, filecontent in a sort of arra

  • Problem in using JSTL tag libs

    Hi there, I am trying to use JSTL tag libs in my web app, but i get the following error message: org.apache.jasper.JasperException: /index.jsp(22,0) According to TLD or attribute directive in tag file, attribute test does not accept any expressions a

  • Why do I have to unlock or duplicate all my documents

    Why since upgrading to OSX Lion do i have to duplicate or ulock documents in iPages before I can make changes?