Formula Validation in PlSql

Hi,
I want to validate a formula using Pl/Sql or SQL.
The iseal example is
X= 10*(5+(4/2))-15
And i have to derive the value of X
Is there any way to validate the bracket start and end ??
Also if there is any reference available or any ready available queries are there then please let me know.
Regards,
Bharat.

Dear Blu,
I got your answer. But i just wanted ask if there is any way to validate if a bracket is closed or not for a formula? If the bracket is not closed , then it must show some warning message.
I was looking into few docs and i guess there is something in Oracle applications itself to define the formula, and at the time of derivation , it just checks for the syntax if the predefined formula is matching with the derived formula. I am not completely sure about it.
I would appreciate if you find any ways to validate the formula.
Regards,
Bharat.

Similar Messages

  • Unable to create elemt entry with APIf or element with formula validation

    Hello Im trying to create an element entry that has validation for the input value. The element name is Mortgage Loan Disbursment
    The input values are :
    Disbursment amount (user enterable)
    Total Installements(user enterable)
    and there is a validation for the total installment called 'Mortage Loan Validation' which does a check from the global value MORTAGE_LOAN_INST
    Im getting the error below:
    My question is which parameter do i have to use in the API to create the element sucessfully
    SQL> declare
    2 l_effective_start_date date;
    3 l_effective_end_date date;
    4 l_element_entry_id number;
    5 l_object_version_number number;
    6 l_create_warning BOOLEAN;
    7 begin
    8 pay_element_entry_api.create_element_entry
    9 (
    10 p_validate => FALSE
    11 ,p_effective_date => '02-APR-1992'
    12 ,p_business_group_id =>361
    13 ,p_assignment_id => 18141
    14 ,p_element_link_id => 141
    15 ,p_entry_type => 'E'
    16 ,p_input_value_id1 => '198'
    17 ,p_input_value_id2 => '199'
    18 ,p_entry_value1 => '34286707.82'
    19 ,p_entry_value2 => '120'
    20 ,p_entry_information2 =>'Mortage Loan Validation'
    21 ,p_effective_start_date => l_effective_start_date
    22 ,p_effective_end_date => l_effective_end_date
    23 ,p_element_entry_id => l_element_entry_id
    24 ,p_object_version_number => l_object_version_number
    25 ,p_create_warning => l_create_warning
    26 );
    27
    28 commit;
    29 end;
    30 /
    declare
    ERROR at line 1:
    ORA-20001: Data MORTAGE_LOAN_INST not found at line 14 of Mortage Loan
    Validation
    Cause: A SQL SELECT statement, obtained from the application dictionary,
    returned no rows when executed.
    Action: Please refer to your local support representative.
    ORA-06512: at "APPS.PAY_ELEMENT_ENTRY_API", line 890
    ORA-06512: at line 8
    SQL>

    I think the error is occurring because a database item within the formula has returned no row, contrary to its 'NOTFOUND_ALLOWED' flag.
    Depending on the nature of the database item, there could be a variety of reasons for that, but one possibility is that it is relying on the presence of a session date in order for the DB item value to be found. So, if prior to calling the api, you create (or update) a row in fnd_sessions for your session with the effective date set to the effective date input parameter value, you might get some success.
    Clive

  • File structure validation in PLSQL

    Hello All,
    I need few clarification about this if i want to validate the file structure how can i do in plsql, below is the example where my files looks like.
    IIORRIDGE
    VA1601800700028120000000008+0000123822092013
    VA1601800700029040000000008+0000323822092013
    VA1601800700030860000000008+0000123822092013
    VA1601800767943220000000008+0000123822092013
    end;
    Please help me
    Mahesh

    I need few clarification about this if i want to validate the file structure how can i do in plsql
    Foe example like this line
    VA1601800700028120000000008+0000123822092013
    There are totally 44 characters if its more than 44 i want to alert it and if it is less than 44 also i want  to alert it
    Like ablve line there will be more than 100000 lines will be der.
    The problem of 'validate the file structure' implies that there could be issues with the structure of the file or the records.
    And therein lies the problem if you try to use an external table since a table, or external table, is generally expected to have a known number of columns of known datatypes.
    So first you need to document the business rules that you want to implement:
    1. What are ALL of the validation rules that you need to check for?
      a. what record delimiters are expected (e.g. LF, CRLF, etc)?
      b. do you need to validate that the proper delimiters have been used?
      c. how are the fields of a record delimited? Is it a delimited file (by commas or other?), fixed-width, etc.
      d. what is the field delimiter (if delimited)?
      e. what are the datatypes for each field of the record
      f. can fields be NULL? If so, how is a null field indicated?
      g. do all records have to have the same number of fields? Or is TRAILING NULLCOLS allowed?
    2. How do you want to handle all of the errors that you detect?
      a. reject the entire file if there is an error in ANY record?
      b. reject only the records that have an error but accept the ones that do not have errors?
    3. How do you plan to allow users access to the problem records?
      a. give them access to the actual BAD file containing the raw data?
      b. give them access to a DB table containing the raw data?
    4. How do you plan to reprocess ONLY the bad data once it has been corrected?
      a. reload the entire file?
      b. reload a new file containing the fixed records?
    5. How do you plan to allow users to access the validated, good data?
      a. give them access to a DB table?
    Sometimes the 'best' solution is to NOT load data into Oracle that isn't already validated.
    You could write a standalone Java application to perform this 'file validation' and either produce 'clean' files that you need load into Oracle or the app could validate a file and load the clean data at the same time.
    But until you document ALL of the requirements in terms of handling the 'dirty data' it is too early to be talking about the 'best' solution.

  • Apache POI- HSSFDataValidation Formula Validation for Entire column

    Hello,
    I have been looking HSSFDataValidation and was able to run the sample below.
    My requirement is I need to apply this formula for Entire column to achieve the need like
    When user enters data in col2 (B) of greater than the number specified in col1 (A) and then show the ErrorBox.
    I am able to get the formula working through code only for first cell as per below code... I want it to dynamically apply for the entire column.
    Please suggest...
       1. import java.io.File; 
       2. import java.io.FileOutputStream; 
       3. import java.util.ArrayList; 
       4. import org.apache.poi.hssf.usermodel.DVConstraint; 
       5. import org.apache.poi.hssf.usermodel.HSSFDataValidation; 
       6. import org.apache.poi.hssf.usermodel.HSSFSheet; 
       7. import org.apache.poi.hssf.usermodel.HSSFWorkbook; 
       8. import org.apache.poi.hssf.util.CellRangeAddress; 
       9. import org.apache.poi.hssf.util.CellRangeAddressList; 
      10. import org.apache.poi.ss.usermodel.Cell; 
      11. import org.apache.poi.ss.usermodel.Row; 
      12.  
      13. public class TestThis{  
      14. public static void main1(String[] args) { 
      15.         // New Workbook.  
      16.         File outputFile = new File("C:/mamatha.xls"); 
      17.         try { 
      18.             
      19.             FileOutputStream fos = new FileOutputStream(outputFile); 
      20.             HSSFWorkbook workbook = new HSSFWorkbook(); 
      21.             HSSFSheet sheet = workbook.createSheet("Validation"); 
      22.             Row row = sheet.createRow(0); 
      23.             Cell cell = row.createCell(0); 
      24.             cell.setCellValue(5); 
      25.             cell = row.createCell(1); 
      26.             cell.setCellValue("good"); 
      27.             row = sheet.createRow(1); 
      28.             cell = row.createCell(0); 
      29.             cell.setCellValue(7); 
      30.             cell = row.createCell(1); 
      31.             cell.setCellValue("now"); 
      32.  
      33.             //String formula = "IF(LEN($B$1) > $A$1, FALSE, $B$1)"; 
      34.             String formula = "IF(LEN($B$1:$B10) > $A$1:$A10, FALSE, $B$1:$B10)"; 
      35.             CellRangeAddressList addressList = new CellRangeAddressList(); 
      36.             addressList.addCellRangeAddress(0, 1, 3, 1); 
      37.             DVConstraint constraing = DVConstraint.createFormulaListConstraint(formula); 
      38.  
      39.             HSSFDataValidation dataValidation = new HSSFDataValidation(addressList, constraing); 
      40.             dataValidation.setEmptyCellAllowed(true); 
      41.             dataValidation.setShowPromptBox(true); 
      42.             dataValidation.setSuppressDropDownArrow(false); 
      43.             dataValidation.createErrorBox("Invalid input !!", " Length of Col B > colA "); 
      44.             sheet.addValidationData(dataValidation); 
      45.             workbook.write(fos); 
      46.         } catch (Exception e) { 
      47.             System.out.println(e); 
      48.         } 
      49.     } 
      50. }  Thanks
    Mamatha
    Edited by: user8984775 on Mar 17, 2011 11:20 PM
    Edited by: user8984775 on Mar 17, 2011 11:22 PM

    user8984775 wrote:
    My requirement is I need to apply this formula for Entire column to achieve the need like
    When user enters data in col2 (B) of greater than the number specified in col1 (A) and then show the ErrorBox.
    I am able to get the formula working through code only for first cell as per below code... I want it to dynamically apply for the entire column. Well I'm certainly no expert on POI, but that looks like a very odd formula to me.
    When you "pull" a formula down a column, Excel automatically changes the formula for each row, but because you've fixed both the column AND the row ($A$1), it'll be the same in all cases.
    I don't know if POI allows that sort of "auto-generate" for formulas, but if so try something like $A1 instead; otherwise I suspect you'll need a different formula for each row.
    Winston

  • How to use a @PRIOR function with a SubVar in a cross dim formula?

    Hi all,
    I have a pretty basic logic to calculate a member:
    Rate = Account1->Entity->Prior Forecast Year / (Account2->Entity->Prior Forecast Year + Account3->Entity->Prior Forecast Year);
    We have a SubVar for the Current Forecast Year, so in my formula I wanted to use @PRIOR(&CurFstYr)
    I got an error message: expected type [MEMBER] found [NUMBER] ([@PRIOR]) in function []
    The calc validates and runs with no errors if I use &CurFstYr only, which gives me the option to create a Prior Forecast Year subvar: &PriorFstYr. Is this my only option?
    I've also tried using SUMRANGE function. The formula validated for @PRIOR(&CurFstYr). Eventhough the calc script validated, the calc stopped after 3 seconds with the below error message:
    Error executing formula for [Rate] (line 0): invalid object type
    Any idea why the SUMRANGE calc failed to run? Also, once again, is my only option to create a new SubVar for the Prior Forecast Year?
    Thanks,
    Mehmet
    Edited by: Mehmet Sevinc on Mar 2, 2012 12:14 PM
    Edited by: Mehmet Sevinc on Mar 2, 2012 12:29 PM

    You have this:
    Rate = Account1->Entity->Prior Forecast Year / (Account2->Entity->Prior Forecast Year + Account3->Entity->Prior Forecast Year);I don't have Essbase fired up, but I wonder if this would work:
    Rate = @PRIOR(Account1->Entity->&CurFstYr, 1, "Years") / (@PRIOR(Account2->Entity->&CurFstYr, 1, "Years") + @PRIOR(Account3->Entity->&CurFstYr, 1, "Years")) ;You can put a cross dim into a @PRIOR statement, but you will need to specify the dimension unless it's whatever is tagged as Time. My guess is Years is not the Time dimension.
    I'll bet the @PRIOR doesn't make things fast.
    Regards,
    Cameron Lackpour
    Edited by: CL on Mar 2, 2012 6:26 PM
    Forgot the first @PRIOR

  • Some "formula" interpreter or returning value from unnamed PL/Sql blocks

    Hello,
    My company is developing Payroll and HR software and we use Oracle 10G Database. For a new module we are looking for a system were the end user (power user) can put in some kind of "formula's" to define what info/figures he wants for certain calculations done by de module (the budget module calculations will be done in PL/SQL stored proc written by us).
    Example: item "MonthlySalaryCost" = (BaseYearSal + TotalBonus)/12
    Where BaseYearSal and TotalBonus are functions that exist our will exist in or database. The idea is that a PL/SQL proc (which will be the same for all our customers), at runtime will execute that "formula" and use the result in its further calculations. The "formulas" will be stored in a table. (I foresee of course a "formula" validation to prevent dangerous sql-injection).
    My idea was to use Execute Immediate in the proc to execute the formula's and work with the results. In this approach we have to write (and foresee) all possible functions to access the data the user wants to use.
    Another (more powerful) solution I think about, is seeing these "formula's" as unnamed PL/SQL blocks (stored in a table), were the end user (or consultant) can use the full power of PL/SQL (if then else, select into ..., etc..) to obtain the result he wants to return into the item.
    My problem here is : how to return a value from a unnamed PL/SQL block that is executed via Execute Immediate in a stored proc ?
    And a general question: what do you think of this approach ? are there others possibilities to do this ?
    Thanks in advance,
    Philippe.

    Hi,
    Welcome to the forum!
    This is a simple example:
    Some functions to test:
    CREATE OR REPLACE FUNCTION f_test1 RETURN NUMBER IS
       RESULT NUMBER;
    BEGIN
       RESULT := 12;
       RETURN(RESULT);
    END f_test1;
    CREATE OR REPLACE FUNCTION f_test2 RETURN NUMBER IS
       RESULT NUMBER;
    BEGIN
       RESULT := 10;
       RETURN(RESULT);
    END f_test2;
    CREATE OR REPLACE PACKAGE pack_test_functions IS
       PROCEDURE proc_test;
    END pack_test_functions;
    CREATE OR REPLACE PACKAGE BODY pack_test_functions IS
       PROCEDURE proc_test IS
          v_sql    VARCHAR2(4000);
          v_result NUMBER;
       BEGIN
          v_sql := 'SELECT F_TEST1() + F_TEST2() FROM DUAL';
          EXECUTE IMMEDIATE v_sql
             INTO v_result;
          dbms_output.put_line(v_result);
       END proc_test;
    END pack_test_functions;
    /into v_result you have the result of the operation.
    Regards,

  • How do I branch based on validation success or failure?

    I am on an edit record page. I want to be able to branch based on clicking on the submit button and whether all of my validations pass (branch to different page) or a single validation fails (return to edit page with error message). I know how to set the validation failure message.
    Is there some APEX status field I can query? Or do I have to write every validation as PLSQL and not use any of the built-in validation conditions?
    Thanks,
    Neal

    You can use apex_application.g_inline_validation_error_cnt, but it's undocumented and subject to change
    Apex 4.1 wwv_flow.g_inline_validation_error_cnt initialization error

  • Unexpected "Microsoft.SharePoint.SPListDataValidationException: List data validation failed."

    Steps to replicate (I suspect it can be replicated with any list, not just a survey):
    1. Create a survey
    2. Go to Survey Settings / Validation Settings, enter a formula and a user message.
    3. Respond to a survey. 
    3.1. If a formula validation succeeds, a new survey response is created.
    3.2. If a formula validation fails, I expect to see a user message created in step #2 above. Instead, I see an exception:
     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: Microsoft.SharePoint.SPListDataValidationException: List data validation failed.
    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:
    [SPListDataValidationException: List data validation failed.]
    Microsoft.SharePoint.SPListItem.AddOrUpdateItem(Boolean bAdd, Boolean bSystem, Boolean bPreserveItemVersion, Boolean bNoVersion, Boolean bMigration, Boolean bPublish, Boolean bCheckOut, Boolean bCheckin, Guid newGuidOnAdd, Int32& ulID, Object& objAttachmentNames, Object& objAttachmentContents, Boolean suppressAfterEvents, String filename) +25667234
    Microsoft.SharePoint.SPListItem.UpdateInternal(Boolean bSystem, Boolean bPreserveItemVersion, Guid newGuidOnAdd, Boolean bMigration, Boolean bPublish, Boolean bNoVersion, Boolean bCheckOut, Boolean bCheckin, Boolean suppressAfterEvents, String filename) +25664366
    Microsoft.SharePoint.WebControls.SaveButton.OnBubbleEvent(Object source, EventArgs e) +938
    System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +70
    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981
    Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927 
    Server Error in '/' Application.
    List data validation failed.

    Look for -- <xsl:template name="dvt_1"> in your edit/new form using designer.
    Place
    <sharepoint:itemvalidationfailedmessage
    id="checkform" ControlMode="New"
    runat="server">
    ..right underneath<Sharepoint:ItemHiddenVersion>
    ControlMode depends on what type of form you are working on. (New/Edit)
    GooLuck

  • Need to send a mail from a specific From mail ID thorgh specific Mail serve

    Hi,
    If any errors occured in my interface validation program(plsql) I need to send mail to some mail ids,
    But I need to use specific from mail id and mail server.
    I have no idea of Shell scripting, I tried it with plsql itself but not worked. My Application server is different from DB server.
    Please let me know if any one has the code or any thoughts.
    Thanks

    Please see these links.
    https://forums.oracle.com/forums/search.jspa?threadID=&q=UTL_SMTP&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Send+AND+email+AND+PL%2FSQL&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Email+AND+PL%2FSQL&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Vendor - Tax deduction at lower rate - MIRO & FB60

    Hi all,
    Currently we are having one issue of u201CTax deduction at lower rateu201D for a Vendor who is having such certificate with him.
    For amount purpose we have set the SPRO setting but the user is asking for the date control also since the Vendor is having the relevant certificate till 31.03.2012 and after that, lower rate Tax deduction will not be allowed.
    Simple option is to change the Vendor Master with the original tax type+ Tax code (Normal Rate) combination to calculate tax at the normal rate. But if could not cross the amount limit before 31.03.2012 then that will be difficult to keep an eye on date i.e. 31.03.2012 and then change the master data of u201CNu2026u201D No. of Vendors .
    We want to put a condition in a system as; system should check the system date with the tax type date to get a date control. We have restricted the date of u201Cnewly created tax typeu201D till 31.03.2012.
    In case of MIRO testing, we have use a user exit which is correctly comparing the system date with the tax type date in runtime. If the tax type date is older than system date then system is throwing an error to change the master date (FK02 / XK02) of subject vendor.
    In case of FB60 we are facing a problem since not able to cross confirm the tax type date with the system date. We are trying BTE u2013 1140 for FB60 but in runtime we are not able to get the tax related details / tables.
    Is there any workaround or way in BTE u2013 1140 for FB60?
    Regards,
    Shridhar
    Edited by: Shridhar Sawant on Nov 2, 2011 2:23 PM

    Hi Ramesh,
    In the SAP Std. setting of Formula we are maintaining one more line for same TAX TYPE + TAX CODE + COUNTRY combination but for the ending date of lower rate tax deduction.
    Since there is no "To date" option in Formula setting, we are maintaining one more line For e.g. in the 1st line we have a date as 01.04.2011 (i.e. Valid from) and in the other line we have mentioned date as 01.01.2012 (i.e. To date) since Vendor is having the lower rate tax deduction certificate uptill 31.12.2011.
    In the first line of formula (Valid from 01.04.2011) we have maintain :
    To Base amt              W/tax    Reduction base amt.
    175,000.00                 3.00               -
    9,999,999,999.00     10.00     175,000.00
    In the second line (Valid from 01.01.2012) of formula we have maintain :
    To Base amt             W/tax    Reduction base amt.
    9,999,999,999.00    10.00               -
    Cross confirming the various scenarios since date accumulation of tax setting is on in Tax Type that we are considering.
    Will confirm to you the change suggest by you.
    If these changes doesn't work then we have to go to the option of User exit or BTE for MIRO and FB60 testing.
    Have any idea about the above mention settings ?
    Regards,
    Shridhar

  • Problems with allocation within the GL - "Frm-41830 - PERIOD"

    Good Day!
    I need some help, we're making allocations put in the time to generate them are not able to select the PERIOD,
    the oracle presents frm-41830, we know it must be something in the setup, however we did not find yet,
    if anyone has any tips please. . wait ..
    GL > Journals > Define > Allocation
    The batch was created and formulated, validated normally, but when we try to generate the generate button or by way
    GL> Generate> Allocation
    can not select the period, frm-41830.
    att,
    Edited by: 993076 on 11/03/2013 11:59
    Edited by: 993076 on 11/03/2013 12:02

    but it does not solve my problem, the error happens inside the GL own this patch will not fix the error, How did you come to this conclusion?
    I would like to know which fields must be filled in setup that will influence the field PERIOD within the GL ...If you do not want to apply the patch and you do think it is not going to fix the issue then please log a SR -- Meanwhile, I would suggest you apply this patch in any development instance and see if you can reproduce the issue.
    Thanks,
    Hussein

  • 11g http2-port http2-protocol xdbconfig.xml

    Hi,
    I'm using 11g, I tried to configure HTTPS for my xdb.
    I followed "Oracle® XML DB Developer's Guide" -> "28 Using Protocols to Access the Repository"
    to setup "http2-port" and "http2-protocol" parameters, but it didn't work.
    Here's what I did:
    SQL>DECLARE
    *2 v_cfg XMLType;*
    *3 BEGIN*
    *4 SELECT updateXML(DBMS_XDB.cfg_get(),*
    *5 '/xdbconfig/sysconfig/protocolconfig/httpconfig/http2-port/text()',*
    *6 '433',*
    *7 '/xdbconfig/sysconfig/protocolconfig/httpconfig/http2-protocol/text()',*
    *8 'TCPS')*
    *9 INTO v_cfg*
    *10 FROM DUAL;*
    *11 DBMS_XDB.cfg_update(v_cfg);*
    *12 COMMIT;*
    *13 exception*
    *14 when others then*
    *15 dbms_output.put_line(sqlerrm);*
    *16 END;*
    *17 /*
    PL/SQL procedure successfully completed.
    SQL> SELECT DBMS_XDB.cfg_get() FROM DUAL;
    DBMS_XDB.CFG_GET()
    *<xdbconfig xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/xdb/xdbconfig.xsd http://xmlns.oracle.com/xdb/xdbconfig.xsd">*
    *<sysconfig>*
    *<acl-max-age>15</acl-max-age>*
    *<acl-cache-size>32</acl-cache-size>*
    *<invalid-pathname-chars/>*
    *<case-sensitive>true</case-sensitive>*
    *<call-timeout>6000</call-timeout>*
    *<max-link-queue>65536</max-link-queue>*
    *<max-session-use>100</max-session-use>*
    *<persistent-sessions>false</persistent-sessions>*
    *<default-lock-timeout>3600</default-lock-timeout>*
    *<xdbcore-logfile-path>/sys/log/xdblog.xml</xdbcore-logfile-path>*
    *<xdbcore-log-level>0</xdbcore-log-level>*
    *<resource-view-cache-size>1048576</resource-view-cache-size>*
    *<protocolconfig>*
    *<common>*
    *<extension-mappings>*
    *<mime-mappings>*
    *<mime-mapping>*
    *<extension>au</extension>*
    *<mime-type>audio/basic</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>avi</extension>*
    *<mime-type>video/x-msvideo</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>bin</extension>*
    *<mime-type>application/octet-stream</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>bmp</extension>*
    *<mime-type>image/bmp</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>css</extension>*
    *<mime-type>text/css</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>doc</extension>*
    *<mime-type>application/msword</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>eml</extension>*
    *<mime-type>message/rfc822</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>gif</extension>*
    *<mime-type>image/gif</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>htm</extension>*
    *<mime-type>text/html</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>html</extension>*
    *<mime-type>text/html</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>jpe</extension>*
    *<mime-type>image/jpeg</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>jpeg</extension>*
    *<mime-type>image/jpeg</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>jpg</extension>*
    *<mime-type>image/jpeg</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>js</extension>*
    *<mime-type>application/x-javascript</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>jsp</extension>*
    *<mime-type>text/html</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>mid</extension>*
    *<mime-type>audio/mid</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>mov</extension>*
    *<mime-type>video/quicktime</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>movie</extension>*
    *<mime-type>video/x-sgi-movie</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>mp3</extension>*
    *<mime-type>audio/mpeg</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>mpe</extension>*
    *<mime-type>video/mpg</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>mpeg</extension>*
    *<mime-type>video/mpg</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>mpg</extension>*
    *<mime-type>video/mpg</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>msa</extension>*
    *<mime-type>application/x-msaccess</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>msw</extension>*
    *<mime-type>application/x-msworks-wp</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>pcx</extension>*
    *<mime-type>application/x-pc-paintbrush</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>pdf</extension>*
    *<mime-type>application/pdf</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>png</extension>*
    *<mime-type>image/png</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>ppt</extension>*
    *<mime-type>application/vnd.ms-powerpoint</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>ps</extension>*
    *<mime-type>application/postscript</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>qt</extension>*
    *<mime-type>video/quicktime</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>ra</extension>*
    *<mime-type>audio/x-realaudio</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>ram</extension>*
    *<mime-type>audio/x-realaudio</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>rm</extension>*
    *<mime-type>audio/x-realaudio</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>rtf</extension>*
    *<mime-type>application/rtf</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>rv</extension>*
    *<mime-type>video/x-realvideo</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>sgml</extension>*
    *<mime-type>text/sgml</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>svg</extension>*
    *<mime-type>image/svg+xml</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>tif</extension>*
    *<mime-type>image/tiff</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>tiff</extension>*
    *<mime-type>image/tiff</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>txt</extension>*
    *<mime-type>text/plain</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>url</extension>*
    *<mime-type>text/plain</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>vrml</extension>*
    *<mime-type>x-world/x-vrml</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>wav</extension>*
    *<mime-type>audio/wav</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>wpd</extension>*
    *<mime-type>application/wordperfect5.1</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>xls</extension>*
    *<mime-type>application/vnd.ms-excel</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>xml</extension>*
    *<mime-type>text/xml</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>xsd</extension>*
    *<mime-type>text/xml</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>xsl</extension>*
    *<mime-type>text/xml</mime-type>*
    *</mime-mapping>*
    *<mime-mapping>*
    *<extension>zip</extension>*
    *<mime-type>application/x-zip-compressed</mime-type>*
    *</mime-mapping>*
    *<mime-mapping xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd">*
    *<extension>htc</extension>*
    *<mime-type>text/x-component</mime-type>*
    *</mime-mapping>*
    *<mime-mapping xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd">*
    *<extension>xbl</extension>*
    *<mime-type>text/xml</mime-type>*
    *</mime-mapping>*
    *</mime-mappings>*
    *<lang-mappings>*
    *<lang-mapping>*
    *<extension>en</extension>*
    *<lang>english</lang>*
    *</lang-mapping>*
    *</lang-mappings>*
    *<charset-mappings/>*
    *<encoding-mappings>*
    *<encoding-mapping>*
    *<extension>gzip</extension>*
    *<encoding>zip file</encoding>*
    *</encoding-mapping>*
    *<encoding-mapping>*
    *<extension>tar</extension>*
    *<encoding>tar file</encoding>*
    *</encoding-mapping>*
    *</encoding-mappings>*
    *</extension-mappings>*
    *<session-pool-size>50</session-pool-size>*
    *<session-timeout>6000</session-timeout>*
    *</common>*
    *<ftpconfig>*
    *<ftp-port>0</ftp-port>*
    *<ftp-listener>local_listener</ftp-listener>*
    *<ftp-protocol>tcp</ftp-protocol>*
    *<logfile-path>/sys/log/ftplog.xml</logfile-path>*
    *<log-level>0</log-level>*
    *<session-timeout>6000</session-timeout>*
    *<buffer-size>8192</buffer-size>*
    *</ftpconfig>*
    *<httpconfig>*
    *<http-port>80</http-port>*
    *<http-listener>local_listener</http-listener>*
    *<http-protocol>tcp</http-protocol>*
    *<max-http-headers>64</max-http-headers>*
    *<max-header-size>16384</max-header-size>*
    *<max-request-body>2000000000</max-request-body>*
    *<session-timeout>6000</session-timeout>*
    *<server-name>XDB HTTP Server</server-name>*
    *<logfile-path>/sys/log/httplog.xml</logfile-path>*
    *<log-level>0</log-level>*
    *<servlet-realm>Basic realm=&quot;XDB&quot;</servlet-realm>*
    *<webappconfig>*
    *<welcome-file-list>*
    *<welcome-file>index.html</welcome-file>*
    *<welcome-file>index.htm</welcome-file>*
    *</welcome-file-list>*
    *<error-pages/>*
    *<servletconfig>*
    *<servlet-mappings>*
    *<servlet-mapping>*
    *<servlet-pattern>/Test</servlet-pattern>*
    *<servlet-name>TestServlet</servlet-name>*
    *</servlet-mapping>*
    *<servlet-mapping>*
    *<servlet-pattern>/oradb/*</servlet-pattern>*
    *<servlet-name>DBURIServlet</servlet-name>*
    *</servlet-mapping>*
    *<servlet-mapping>*
    *<servlet-pattern>/orarep/*</servlet-pattern>*
    *<servlet-name>ReportFmwkServlet</servlet-name>*
    *</servlet-mapping>*
    *<servlet-mapping xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd">*
    *<servlet-pattern>/i/*</servlet-pattern>*
    *<servlet-name>PublishedContentServlet</servlet-name>*
    *</servlet-mapping>*
    *<servlet-mapping xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd">*
    *<servlet-pattern>/*</servlet-pattern>*
    *<servlet-name>APEX</servlet-name>*
    *</servlet-mapping>*
    *<servlet-mapping xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd">*
    *<servlet-pattern>/apex/*</servlet-pattern>*
    *<servlet-name>APEX</servlet-name>*
    *</servlet-mapping>*
    *</servlet-mappings>*
    *<servlet-list>*
    *<servlet>*
    *<servlet-name>TestServlet</servlet-name>*
    *<servlet-language>Java</servlet-language>*
    *<display-name>XDB Test Servlet</display-name>*
    *<description>A servlet to test the internals of the XDB Servlet API</description>*
    *<servlet-class>xdbtserv</servlet-class>*
    *<servlet-schema>xdb</servlet-schema>*
    *</servlet>*
    *<servlet>*
    *<servlet-name>DBURIServlet</servlet-name>*
    *<servlet-language>C</servlet-language>*
    *<display-name>DBURI</display-name>*
    *<description>Servlet for accessing DBURIs</description>*
    *<security-role-ref>*
    *<role-name>authenticatedUser</role-name>*
    *<role-link>authenticatedUser</role-link>*
    *</security-role-ref>*
    *</servlet>*
    *<servlet>*
    *<servlet-name>ReportFmwkServlet</servlet-name>*
    *<servlet-language>C</servlet-language>*
    *<display-name>REPT</display-name>*
    *<description>Servlet for accessing reports</description>*
    *<security-role-ref>*
    *<role-name>authenticatedUser</role-name>*
    *<role-link>authenticatedUser</role-link>*
    *</security-role-ref>*
    *</servlet>*
    *<servlet xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd">*
    *<servlet-name>PublishedContentServlet</servlet-name>*
    *<servlet-language>C</servlet-language>*
    *<display-name>Unauthenticated File Access Servlet</display-name>*
    *<description>Servlet for files for unauthenticated users</description>*
    *<init-param>*
    *<param-name>RootFolder</param-name>*
    *<param-value>/images</param-value>*
    *<description>RootFolder</description>*
    *</init-param>*
    *<security-role-ref>*
    *<role-name>anonymousServletRole</role-name>*
    *<role-link>anonymousServletRole</role-link>*
    *</security-role-ref>*
    *</servlet>*
    *<servlet xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd">*
    *<servlet-name>APEX</servlet-name>*
    *<servlet-language>PL/SQL</servlet-language>*
    *<display-name>APEX</display-name>*
    *<plsql xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd">*
    *<database-username xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd">ANONYMOUS</database-username>*
    *<default-page xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd">apex</default-page>*
    *<document-table-name xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd">wwv_flow_file_objects$</document-table-name>*
    *<document-path xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd">docs</document-path>*
    *<document-procedure xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd">wwv_flow_file_mgr.process_download</document-procedure>*
    *<nls-language xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd">american_america.al32utf8</nls-language>*
    *<request-validation-function xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd">wwv_flow_epg_include_modules.authorize</request-validation-function>*
    *</plsql>*
    *<security-role-ref xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd">*
    *<role-name>anonymousServletRole</role-name>*
    *<role-link>anonymousServletRole</role-link>*
    *</security-role-ref>*
    *</servlet>*
    *</servlet-list>*
    *</servletconfig>*
    *</webappconfig>*
    *<authentication>*
    *<allow-mechanism>basic</allow-mechanism>*
    *<digest-auth>*
    *<nonce-timeout>300</nonce-timeout>*
    *</digest-auth>*
    *</authentication>*
    *</httpconfig>*
    *</protocolconfig>*
    *<xdbcore-xobmem-bound>1024</xdbcore-xobmem-bound>*
    *<xdbcore-loadableunit-size>16</xdbcore-loadableunit-size>*
    *<acl-evaluation-method>ace-order</acl-evaluation-method>*
    *</sysconfig>*
    *</xdbconfig>*
    you can see that there's no "http2-port" or "http2-protocol" in xdbconfig.xml.
    then, I tried this:
    SQL> DECLARE
    *2 v_cfg XMLType;*
    *3 BEGIN*
    *4 SELECT insertXMLbefore(DBMS_XDB.cfg_get(),*
    *5 '/xdbconfig/sysconfig/protocolconfig/httpconfig/authentication',*
    *6 XMLType('<http2-port>433</http2-port>'))*
    *7 INTO v_cfg*
    *8 FROM DUAL;*
    *9 DBMS_XDB.cfg_update(v_cfg);*
    *10 COMMIT;*
    *11 exception*
    *12 when others then*
    *13 dbms_output.put_line(sqlerrm);*
    *14 END;*
    *15 /*
    ORA-30937: No schema definition for 'http2-port' (namespace '##local') in parent '/xdbconfig/sysconfig/protocolconfig/httpconfig'
    it seems I can't insert "http2-port" into xdbconfig.xml either.
    I don't know why...
    Please help, thanks in advance!

    Namespaces :)
    SQL>   SELECT insertXMLBefore
      2           (
      3             DBMS_XDB.cfg_get(),
      4             '/xdbconfig/sysconfig/protocolconfig/httpconfig/authentication',
      5             XMLType('<http2-port xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd">433</http2-port>'),
      6             'xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd'
      7           )
      8    from dual;
    <xdbconfig xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd" xmlns:xsi="http://w
    ww.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/x
    db/xdbconfig.xsd http://xmlns.oracle.com/xdb/xdbconfig.xsd">
      <sysconfig>
        <acl-max-age>15</acl-max-age>
        <acl-cache-size>32</acl-cache-size>
        <invalid-pathname-chars/>
        <case-sensitive>true</case-sensitive>
        <call-timeout>6000</call-timeout>
        <max-link-queue>65536</max-link-queue>
        <max-session-use>100</max-session-use>
        <persistent-sessions>false</persistent-sessions>
        <default-lock-timeout>3600</default-lock-timeout>
        <xdbcore-logfile-path>/sys/log/xdblog.xml</xdbcore-logfile-path>
        <xdbcore-log-level>0</xdbcore-log-level>
        <resource-view-cache-size>1048576</resource-view-cache-size>
        <protocolconfig>
          <common>
            <extension-mappings>
              <mime-mappings>
              </mime-mappings>
              <lang-mappings>
                <lang-mapping>
                  <extension>en</extension>
                  <lang>english</lang>
                </lang-mapping>
              </lang-mappings>
              <charset-mappings/>
              <encoding-mappings>
                <encoding-mapping>
                  <extension>gzip</extension>
                  <encoding>zip file</encoding>
                </encoding-mapping>
                <encoding-mapping>
                  <extension>tar</extension>
                  <encoding>tar file</encoding>
                </encoding-mapping>
              </encoding-mappings>
            </extension-mappings>
            <session-pool-size>50</session-pool-size>
            <session-timeout>6000</session-timeout>
          </common>
          <ftpconfig>
            <ftp-port>21</ftp-port>
            <ftp-listener>local_listener</ftp-listener>
            <ftp-protocol>tcp</ftp-protocol>
            <logfile-path>/sys/log/ftplog.xml</logfile-path>
            <log-level>0</log-level>
            <session-timeout>6000</session-timeout>
            <buffer-size>8192</buffer-size>
          </ftpconfig>
          <httpconfig>
            <http-port>80</http-port>
            <http-listener>local_listener</http-listener>
            <http-protocol>tcp</http-protocol>
            <max-http-headers>64</max-http-headers>
            <max-header-size>16384</max-header-size>
            <max-request-body>2000000000</max-request-body>
            <session-timeout>6000</session-timeout>
            <server-name>XDB HTTP Server</server-name>
            <logfile-path>/sys/log/httplog.xml</logfile-path>
            <log-level>0</log-level>
            <servlet-realm>Basic realm=&quot;XDB&quot;</servlet-realm>
            <webappconfig>
            </webappconfig>
            <allow-repository-anonymous-access xmlns="http://xmlns.oracle.com/xdb/xd
    bconfig.xsd">true</allow-repository-anonymous-access>
            <http2-port xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd">433</http2
    -port>
            <authentication>
              <allow-mechanism>basic</allow-mechanism>
              <digest-auth>
                <nonce-timeout>300</nonce-timeout>
              </digest-auth>
            </authentication>
          </httpconfig>
        </protocolconfig>
        <schemaLocation-mappings xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd">
          <schemaLocation-mapping xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd">
            <namespace>http://earth.google.com/kml/2.1</namespace>
            <element>kml</element>
            <schemaURL>http://code.google.com/apis/kml/schema/kml21.xsd</schemaURL>
          </schemaLocation-mapping>
          <schemaLocation-mapping xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd">
            <namespace>http://earth.google.com/kml/2.2</namespace>
            <element>kml</element>
            <schemaURL>http://code.google.com/apis/kml/schema/kml21.xsd</schemaURL>
          </schemaLocation-mapping>
        </schemaLocation-mappings>
        <xdbcore-xobmem-bound>1024</xdbcore-xobmem-bound>
        <xdbcore-loadableunit-size>16</xdbcore-loadableunit-size>
        <acl-evaluation-method>ace-order</acl-evaluation-method>
      </sysconfig>
    </xdbconfig>
    Elapsed: 00:00:01.03
    SQL>

  • Logic while reporting

    Dear Experts,
    Data in multi-provider is:
    u2018Schemeu2019 u2018Valid from Dateu2019 u2018valid to dateu2019
    u2018S1u2019             u201801.June.09u2019     u201831.Dec.09u2019
    In report requirement user will enter a date range and based on validity, schemes should get picked up.
    Say user enters:
    Scenario 1: 01.dec.09 to 31.Jan.2010
    In output u2018S1u2019 should get picked up. Because it is valid till 31.12.09
    Scenario 2: 01.Nov.09 to 30.Nov.09
    In output u2018S1u2019 should get picked up.
    Scenario 3: 01.May.09 to 15.Jun.09
    In output u2018S1u2019 should get picked up. Because it is valid from 01.06.09
    All above scenario explains that if data range user enteres is valid for either u201Cfromu201D date or u201Ctou201D date, scheme needs to be picked up for the report.
    But problem is u2018ORu2019 condition on two different fields doesnu2019t work.
    Not to mentioned if user enters out side this date range scheme S1 should not be displayed.
    How to achieve this?
    Thank in advance!!
    Regards,
    Akshay

    Try following -
    1. Create KF for Valid From date in BackEnd
    2. Create 2 Customer Exit variables (since User Entry does not support Date) Ready for Input, Type: Date
    i.e. var 1 as Date From & var 2 as Date To
    3. Create a formula (named as Validity) as below --
    ( ( Date From < Valid From ) AND (Date To > Valid From) ) OR ( ( Date From > Valid From ) AND ( Date From < Valid To) )
    4. Create Condition on above formula (named as Validity). In condition specify validity = 1.
    So if the record is valid then formula validity will have 1 & condition will display only valid records.

  • OTL Self Serivce and Timekeeper

    Hi,
    In OTL we have options of entering time sheet through self service or timekeepr entry. In fast formula, is it possible to identify from which screen the timesheet has been submitted. Idea is to we want to enforce fast formula validation on save of timesheet only when they enter timesheet through self service time.
    Thanks

    Hi,
    Check this thread.
    Make an Hours Type Non Editable on Timecard
    1. Create a Fast Formula
    2. in the FF package logic check if you are getting values from this package - hxc_self_service_time_deposit.get_app_attributes
    3. If you get values then it must be Self Service otherwise from PUI timekeeper form.
    I am not sure if this works but give it a try.
    Srinivasa

  • EAS/AAS Calc Script Editor - Syntax Check

    Hey folks. I've got a very small problem that has been driving me nuts.
    When I validate a calc script, the syntax check always tells me "syntax check was successful" whether the calc is valid or not. I've tried every silly way to get the check to fail but the calc always comes back as valid. (added my name to calc. typed a sentence about what I had for lunch into a calc. nothing works)
    The lack of validation has forced me to write clean calcs on the first try so it hasn't been all that bad.
    Has anyone else seen this? Is there a setting I can change somewhere? I never had this problem at my last job where we were running EAS 7.1.6, but here we are running AAS 9.3.0.1.0 Build 5. Normally I run AAS through Citrix, but I get the same result if I remote directly to the server.
    I appreciate any help you can offer.

    Unfortunately, this version of EAS was very buggy. Lots of validation errors were not trapped. Upgrading to 9.3.1 significantly improved the quality of EAS formula validations.

Maybe you are looking for

  • Lost the Ability to get Exchange E-Mail while on WiFi at home only

    After 2 months of use, my iPhone 5S started doing something very odd last week and still does today. This is all about using my exchange email at home on my (BT) Wi-Fi No email on my Exchange email with errors of can't connect to server and no email.

  • Copy-and-paste table row results in hang in Contribute 6.5 Mac

    Am running Adobe Contribute 6.5 for Mac on OS X 10.8.2 Mountain Lion. Cannot copy-and-paste a table row from one page to another without having Contribute hang. Get spinning multi-colored beach ball and have to eventuall Force Quit Contribute. This w

  • Internet Browser Not Working despite re-sending service book...

    Can someone please help? The web browser is not working on my Pearl. I am with O2 and have been in the O2 shop for an hour today and on the phone to various people at customer services and still no joy on my Blackberry problem. The internet browser i

  • Level Based Measure Problem

    Hi All, I have been struggling with what I think would be a common problem and I am hoping that someone can help me. I would like to create a report that shows for example the sales figure for a give region and the % that particular region represents

  • Intel Gigabit CT NIC (82574L -- e1000e) not working at all

    Just bought a brand-new Intel gigabit PCI-Express NIC from NewEgg. After plugging it in and booting, the e1000e module is loaded for it, but I'm not able to force it to work at all (I have tried the official Intel driver v1.3.10a). I am using the 2.6