Urgent Apex validation required.

Hi All,
In my application i have following items like
Select List: Emp No
Select List: Emp name
Text Box:where they can enter same Emp Name
Text Box:where we can enter description.
Now the requiremnet is Description can not null.
cas1: When we select Emp No & Emp Name i will be dsiplaying descrption and it will be in readonly.
Case2: If we enete manaulaly in Text box of Empname then description text box will be in editable mode which helps user to enter the descritpion.
I have a problem in case 1 assuimg that if we do not have description for selected emp No & name and when we clik on save button i having call a Item not nul validation staying that "Description can not be null".
But this should happen only for case2 when we enter manually, but for case1 i need to handle error message some other way.
How do we can achieve this?
Anoo..

Put a condition on the validation which runs when the Emp Name text item is NULL (Item is null).
Have another validation when that item is NOT NULL for case 2

Similar Messages

  • Validation required so that invoice, billing and accounting is done on same

    Validation required so that invoice, billing and accounting is done on same date as the PGI date. Very urgent please help.
    Please look into the below scenario.
    Excise invoice posting date u2013 07.10.2011
    A/c doc posting date u2013 29.09.2011
    Reflecting in dispatch report of 07.10.2011.
    GL affecting in the month of Sep.
    So it want that on PGI date, billing , invoice and accounting enteries are created

    Dear Jalaj001,
    PGI date will be taken by system as the billing date in VF01 unless the user manually changes it.
    Accounting Posting date can be controlled by settings for document type RV.
    For excise invoice creation and posting date, i think you will have to use EXITs.
    But i am not sure and will leave it for the experts to comment upon.
    Thanks & Regards,
    Hegal K Charles

  • Error msg raised in a trigger into an APEX validation box?

    Hi,
    I am working on a FORMS to APEX conversion. In the application we are converting, there are a lot of triggers containing validations using a RAISE_APPLICATION_ERROR. For example, there could be a validation on a status change in a "before update trigger".
    When that happens, there's the error template page with the red X with the SQLERRM. I would like to be able to take that message and show it like it was a normal APEX validation.
    So far, the only solution I have would be to duplicate the validation code from the triggers and put them in APEX validation. But the application is pretty much done, so that would require me to go back to all the pages and modify them.
    Any solutions? How do you deal with sql error msg?

    This can also be caused in iTunes 7 by "dead tracks": songs that iTunes is expecting to find in a certain place but the song file isn't there.
    I recently upgraded to version 7 and got this message every time I started iTunes. I used the iTunes COM SDK for Windows with JScript to find all the dead tracks in my library. Then I fixed them by either deleting them from the library or else correcting the library's idea of where the song file was. Once I did this the message went away.
    Another way to look for dead tracks is to parse the iTunes library XML file and look for invalid file paths. I did this in Perl without too much trouble.
    (I'm cross-posting this to several threads about the same problem.)

  • Is it possible to create a editable pdf with validation(required field) using Adobe Acrobat pro version?

    Hi,
    the subject says it all. I have downloaded the trail version to see if its possible to create a editable pdf with validation(required field) using Adobe Acrobat pro version?
    Basically, I will have to create a pdf form where users fill it and send it back to me. there will be required fields (the textbox and check box) that user need to fill before saving the editable pdf?
    Is it possible. if so, can someone kind enough to point to me right directions?
    Thanks in advance.

    Thanks for reply. What I am trying to achieve is to give an option for the user to download the pdf form and once the user tries to save the pdf, it validates with the required field. I managed to create the editable pdf with required fields option. I just need that validation to be done when user click on save file. How can I achieve this? thanks so much for your help.

  • Validation Required before purchase

    Both my ATV's, version 1 and 2, will suddenly not allow me to rent or buy content. When i try....it tells me "Validation Required before Purchase". I am sure that my apple ID and PW are input correctly. How do I force "validation"????
    Any ideas???
    thanks!
    Ron

    Got to your Account in the iTunes Store using iTunes. Make sure your CC is up to date as well as the 3 digit security code on the back of the card. I had the same issue once as well. This solved it for me.

  • Urgent Full Time Requirement for SAP Senior FI/CO Analyst

    Hi,
    Any one looking for Urgent Full Time Requirement for SAP Senior FI/CO Analyst
    Moderator: This is not job board. Upon second violation your user will be banned

    Hi,
    Any one looking for Urgent Full Time Requirement for SAP Senior FI/CO Analyst
    Moderator: This is not job board. Upon second violation your user will be banned

  • Safari 5.1.1 is not recognizing my html5 form validation "required".

    Safari 5.1.1 is not recognizing my html5 form validation "required". I've tried writing it several different ways with no luck. The "placeholder" validator does work. It works fine with Firefox. Help!

    When I reset safari I have everything checked. It does not hurt anything. What you did was one of the fixes I saw, The other was to not use tabs in safari. The reason I asked you to go to extension in safari preferences is to see if you had adware hiding in there. Apparently  you are not the only one using gmail that runs into this. You could go to you home folder/library/preferences and delete ether the safari plist. or the mail plist. I don't know which would control gmail. But the next time you open those apps the preferences recreate themselves. Some people set up their mail account in mac as gmail. The only think is the incoming is an imap instead of pop. And you are right, there is no update for safari. you would have to update your operating system. I run snow leopard to. My daughter runs yosemite, If I were to go to yosemite,I would have to delete a couple of apps as they will not run there.

  • Help With Regular Expression In Apex Validation

    Apex 3.2
    There is a validation type of regular expression in apex, but I have never used regular expression before,
    so a little help is appreciated.
    I need to validate a field. It is only allowed to contain alpha characers, numbers, spaces and the - (dash) character.
    I have tried several times to get this working
    eg
    [[:alpha:]]*[[:digit:]]*[[:space:]]*[-]*
    ^[[:alpha:][:digit:][:space:]-]+?
    and others, but just can't to get the syntax correct.
    Can someone help me with this please
    Gus

    Example:
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select 'This is some example text' as txt from dual union all
      2             select 'And this is the 2nd one with numbers' from dual union all
      3             select 'And this allows double-barrelled words with hyphens' from dual union all
      4             select 'But this one shouldn''t be allowed!' from dual
      5            )
      6  --
      7  select *
      8  from t
      9* where regexp_like(txt, '^[[:alnum:] -]*$')
    SQL> /
    TXT
    This is some example text
    And this is the 2nd one with numbers
    And this allows double-barrelled words with hyphens

  • APEX validations in updateable reports built on a PL/SQL query

    Sorry if the question is not clear (english is not my mother language) or if the answer already exists on the forum (I have not been able to find it).
    I build a report on a PL/SQL function query.
    In this PL/SQL query i use apex_item.checkboxes or texts to let the end user change/enter some new data.
    As i need to do some validations on the user entries, i have already used some events (e.g. onChange) that trigger
    simple javascript validations checking if data is numeric or length of data entered....
    But i would like to use also the standard validations of APEX to make some more complex validations (e.g. checking coherency) on
    many data entered by the end user.
    I am trying to build a PL/SQL to loop through the report lines through a checkbox item i have added
    but the process of debugging is awfull for me.
    - Is there a pointer to a code example of validations within a query report that would help me in achieving this validation
    - or could someone give me some clue on how to acess these report data in the interface.
    Thanks in advance,
    Daniel

    Daniel:
    You can check out Denes Kubicek's APEX demo site for ideas on how to create validations for a tabular form.
    http://htmldb.oracle.com/pls/otn/f?p=31517:41:3322496527336906:::RP,::
    Varad

  • Urgent phone installation required

    SUMMARY to the point:
    So I'm asking any BT installation phone line (and fibre optic broadband) STAFF in the east london area or willing to travel east ham 2 mins from the station I would be really much appreciative if they can come install BT LINE.
    Post code:E6 2JJ
    I required a new line installed but iv been given appointment in 4 weeks time on Jan 13th 2014.
    This is a matter of urgency I would like if their is genuine kind excellent bt installation guy that can do me a big favour and come install iv heard it takes less then 30mins.
    My eldery parents can't receive landline calls as we don't have phone line.
    And no broadband Internet we are having to pay using dongle/mifi and this is very expensive short term.
    I require BT infinity set up too. But getting a phone line is urgently first important
    I understand their is this Is the holiday season and many staff are off but I'm quite certain that you have many staff in London that don't celebrate x mass and can take out an hr of the day to do this urgent request.
    Iv explained my situation to customer service they are unable to bring a closer date. But said if I knew of any BT guy that can do it then it's possible.

    Welcome to this forum.
    This is a customer to customer forum only, where forum members, who are only BT customers, can help each other with BT Retail products and services.
    Anything you post here does not go to BT. Although the forum is moderated by BT, not all posts are read.
    This is a public forum which can be viewed worldwide, so please do not post any personal information, especially phone numbers, fault numbers, address information or email addresses, as this could be used to impersonate you.
    BT do not provide or maintain the external network. This is done by Openreach who work for all service providers. BT do not get any special treatment.
    The date you have been given, would be the earliest appointment that Openreach could offer to BT Retail.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Urgent Apex Web service

    Hi,
    I've created the web service in Visual studio 2008. Then I want to create web service reference from APEX. when I use create web service reference from WSDL file it gives me error:
    1 error has occurred
    * The WSDL document could not be understood by the rendering engine. Click Create Web Service Reference Manually to continue creating a reference for this service.
    Does anyone have experience with this error???
    Thank you.
    Ed,

    ed.co. wrote:
    Thanks for your answer. I hope that you are happy now.Sven was pointing out that as volunteers none of us feel the need to respond to "urgent" demands of people we have never met. Declaring a request as "urgent" is considered impolite in the OTN community.
    I did a google search on your error message - the first sentence in an advanced search for an exact match - and got 4 hits. 3 of them were OTN posts without a clear answer. The fourth was another site with some discussion that may or may not help you is here http://database.itags.org/oracle/46310/
    If you have a My Oracle Support account you can check there too.

  • OSB: Payload validation required for empty elements inside OSB process.

    Hello
    I need to validate the payload for non-empty elements. If the payload is completely empty then OSB should throw an error that the submitted payload is empty.
    If the payload contains at least one element then it should pass through.
    As in process to test this particular one, i have tried with the following code to generally validate for an element.
    xquery version "1.0" encoding "Cp1252";
    (:: pragma bea:global-element-parameter parameter="$inputParameters1" element="ns0:InputParameters" location="../adapter/StoreProcDB/xsd/StoreProcDBService_sp.xsd" ::)
    (:: pragma bea:schema-type-return type="ns1:Validation" location="../xsd/validation.xsd" ::)
    declare namespace xf = "http://tempuri.org/StoreProc_osb/transformation/PayloadValidation/";
    declare namespace ns1 = "http://www.sigmainfo.com/validation";
    declare namespace ns0 = "http://xmlns.oracle.com/pcbpel/adapter/db/sp/StoreProcDBService";
    declare function xf:PayloadValidation($inputParameters1 as element(ns0:InputParameters))
    as element()
    <ns1:Validation>
              <ns1:Payload>{$inputParameters1/.}</ns1:Payload>
              <ns1:ValidationErrorList>
                   (: BEGIN - Required Field Validations :)
              (:     if (empty($inputParameters1/ns0:ACCOUNTNUMBER/text())) then
                        <ns1:ValidationError>
                             <ns1:code>1</ns1:code>
                             <ns1:message>ACCOUNTNUMBER: Required Field</ns1:message>
                        </ns1:ValidationError> :)
                   if (empty($inputParameters1/ns0:AUDITUSER/text())) then
                        <ns1:ValidationError>
                             <ns1:code>1</ns1:code>
                             <ns1:message>AUDITUSER: Required Field</ns1:message>
                        </ns1:ValidationError>
                   else ''
                   (: END - Required Field Validations :)
    </ns1:ValidationErrorList>
         </ns1:Validation>
    declare variable $inputParameters1 as element(ns0:InputParameters) external;
    xf:PayloadValidation($inputParameters1)
    But it throws the following error:
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    REQUEST DOCUMENT:
    <soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header
    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    </soap:Header>
    <soapenv:Body>
    <stor:InputParameters
    xmlns:stor="http://xmlns.oracle.com/pcbpel/adapter/db/sp/StoreProcDBService">
    <!--Optional:-->
    <stor:P_ACCOUNTNUMBER>00101</stor:P_ACCOUNTNUMBER>
    <!--Optional:-->
    <stor:P_AUDITUSER>venkat</stor:P_AUDITUSER>
    </stor:InputParameters>
    </soapenv:Body>
    </soapenv:Envelope>
    RESPONSE DOCUMENT:
    The invocation resulted in an error: . <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body><soapenv:Fault><faultcode>soapenv:Server</faultcode><faultstring>BEA-382505: OSB Validate action failed validation</faultstring><detail><con:fault xmlns:con="http://www.bea.com/wli/sb/context">
    <con:errorCode>BEA-382505</con:errorCode>
    <con:reason>OSB Validate action failed validation</con:reason>
    <con:details>
    <con1:ValidationFailureDetail xmlns:con1="http://www.bea.com/wli/sb/stages/transform/config">
    <con1:message>
    Incompatible elements: expected an XML instance of name "{http://xmlns.oracle.com/pcbpel/adapter/db/sp/StoreProcDBService}InputParameters", but found an XML instance of name "{http://schemas.xmlsoap.org/soap/envelope/}Body".
    </con1:message>
    <con1:xmlLocation/>
    </con1:ValidationFailureDetail>
    </con:details>
    <con:location>
    <con:node>PipelinePairNode1</con:node>
    <con:pipeline>PipelinePairNode1_request</con:pipeline>
    <con:stage>stage1</con:stage>
    <con:path>request-pipeline</con:path>
    </con:location>
    </con:fault>
    </detail>
    </soapenv:Fault>
    </soapenv:Body>
    </soapenv:Envelope>
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    But this is not the way it should be done as i progress.
    Please suggest a simple way to have a pragma with sample and complete validation for the input payload.
    Appreciate your help in advance
    Regards
    Venkat

    Venkat,
    Find below url's for implementing security policies in OSB
    http://docs.oracle.com/cd/E17904_01/doc.1111/e15866/owsm.htm#CHDEEGJI
    http://docs.oracle.com/cd/E17904_01/doc.1111/e15866/owsm.htm#CHDBIJHD
    http://niallcblogs.blogspot.in/2010/07/osb-11g-and-wsm.html
    http://biemond.blogspot.in/2009/06/ws-security-in-osb.html
    Regards,
    Abhinav

  • Help with validating required fields

    I have approximately 50 columns in a result set. I need to find out if the required fields (20 out of those 50 columns are required fields) have values (not empty field).
    Since I'm dealing with a large result set (approximately 3000 to 5000 records), what is the most efficient thing to do to validate each field?
    For example:
    Column A, B,C,D.E.F, etc are required fields, I need to validate that each of these column has value otherwise I need to <CFABORT> the process and notify the user.

    The data is not yet in our database,they are created in memory when the app. is run.
    I have sort of  Xml To Query function that generates a result set. I'm doing some validation on req. fields before they are inserted into our DB.
    I try to run your code but I got an error:The value '' cannot be converted to a number
    Here is my code imitating yours (For testing I'm using fewer columns):
    <CFSET MandatoryFields = "Org,OrgId,LastName,FirstName,Gender,Address,City,State,Zip,Phone"> 
    <cfquery name="q1" dbtype="query"> 
    <cfloop list="#MandatoryFields#" index="ThisField"> 
    select Org, '#ThisField# null' problem 
    from ResutSet 
    where #ThisField# is null 
    union 
    </cfloop>
    select Campus, '' problem 
    from ResutSet 
    where 1 = 2 
    </cfquery>
    <cfabort>

  • Apex: Validation on two dependent page items

    Apex 4.2
    I have a  form with two separate regions that each have text fields / select list on them. I need to validate one field againt another.
    **Region 1
    - P10_REQUESTOR
    - Select List
    - LOV defenition:
    SELECT first_name
    FROM PERSONS
    ORDER BY firs_name
    I.e. you can select a first name from the select list
    **Region 2
    - P11_NAME
    - Text Field
    A regular text field to  type in the first name of a person
    **Logic:
    When a user navigates to this page, they can either pick a first name from the select list OR if the name is not in the list, they can type in the name in the P11_NAME text field. However, they can not do both. I am having a little trouble writing a validation script to capture these cases.
    Case 1: P10_REQUESTOR is null & P11_NAME is not null
    Case 2: P10_REQUESTOR is not null & P11_NAME is null
    If both items are null then an error message needs to appear stating that one or the other must be filled out
    If both items are not null then an error message needs to appear stating that you can only fill out one or the other
    I have pseudo coded it and understand the logic but am having trouble on knowing which options to choose when creating the validation. I was thinking its somewhere along the lines of a PL/SQL function with a few IF statments in it.
    Any help would be greatly appreciated. Thanks in advance.

    Hi NewApexCoder,
    your problem is solved in two ways,if i understand you correctly.
    You can do a simple javascript on the  NAME i.e you can enable and disable this item_type by putting this snippet into the  Form element attributes
    To take care of Case1
    OnBlur = "javascript: if (this.value != '') { document.getElementById('P11_NAME').value = 0; document.getElementById( ' P11_NAME').disabled = true; } else {document.getElementById ( 'P11_NAME').disabled = false;}"
    OR
    2.  In the  Select List Page Item ,By adding an extra  Display Extra Values = YES
                                       Display Null Value  = YES
    Null Display Value = '%'    Null Return Value = -1
    After which you can set up a validation for an item.
    Validations> Page>P10_REQUESTOR>  Then choosing a PLSQL Function Returning Boolean
    Validation Code
    begin
    if P10_REQUESTOR = -1 then
    return true;
    else
    return false;
    end;
    2.Error Message
    "A Request must be selected"
    To take care of case 2
    Thanks
    Benjamin.
    www.bkintsiful.blogspot.com

  • Apex OS requirements

    I have a question about the requirements to install an Oracle 10 or 11 XE edition and use APEX.
    Does Oracle XE / Apex run on Windows XP for tablet edition??
    Or does it need the XP professional edition ??

    You mean I need to read the requirements in the [System Requirements|http://docs.oracle.com/cd/E17781_01/install.112/e18803/toc.htm]
    I did, and it says:
    Operating system
    One of the following Microsoft Windows operating systems:
    Microsoft Windows XP Professional
    Microsoft Windows Server 2003 - all editions
    Microsoft Windows Server 2003 R2 - all editions
    Microsoft Windows Server 2008 - Standard, Enterprise, Datacenter, Web, and Foundation editions. The Server Core option is not supported.
    Microsoft Windows 7 - Professional, Enterprise, and Ultimate editions
    So my question is, does this mean that ir really doen not run on an XP tablet version ??
    Or may it run but Oracle dioes not support it?
    Edited by: 939194 on 7-jun-2012 2:34

Maybe you are looking for