How to validate concurrent program parameter and display a custom message?

Hi Friends,
I have a concurrent program which has two non-mandatory parameters.
The requirement is that user should provide value for any one of the parameters.
If user does not enter value for both the parameters, i need to display a custom error message.
Parameter1 has an independent value set.
Parameter2 has character value set with validation type as special.
Process i tried so far:
In the value set for the second parameter, under the Validate event, i have written the following code:
FND PLSQL "declare
l_paramb VARCHAR2(20) := :!VALUE;
l_parama VARCHAR2(20) := :$FLEX$.MOT_CUSTMSGTST_A;
BEGIN
IF 1 = 1  THEN
fnd_message.set_name('FND','FND_GENERIC_MESSAGE');
fnd_message.set_token('MESSAGE','Please enter any of the ip1 or ip2');
fnd_message.raise_error;
END IF;
END;" I am not using those variables that are defined for the time being.
Now since the condition 1=1 is always satisfied, i should always receive the error message.
I am not receving any error message and i can go ahead and submit the program..
Please advise on where am i going wrong.
Reports Version - 6i
Oracle Apps Version - 11.5.10.2
Regards,
Sreekanth Munagala

Hi srrekanth,,
I've similar issue , I need to display custom message for concurrent program parameter.Need to validate the parameter & display custom message .
Can you pl provide solution.

Similar Messages

  • How to make Concurrent program parameter should not dependent on previous parameter if it is blank else it should be dependent.

    Hi,
    Lets say, we have three parameters A, B and C. B is dependent on A, C is dependent on A and B. If A value is entered, then we can list only the values of B which are related to A. If User is not entered A value then how can we list all values available in B? In the sameway for C also ( If A and B values not entered then it should allow to select a value from all available values in C)?
    I don't want to put default "ALL" value and then use this in other value sets to get all values. Is there any other way using some dummy parameters? I searched in threads but couldn't find relevant.
    Thanks,
    Venkat.

    Hi,
    Lets say, we have three parameters A, B and C. B is dependent on A, C is dependent on A and B. If A value is entered, then we can list only the values of B which are related to A. If User is not entered A value then how can we list all values available in B? In the sameway for C also ( If A and B values not entered then it should allow to select a value from all available values in C)?
    I don't want to put default "ALL" value and then use this in other value sets to get all values. Is there any other way using some dummy parameters? I searched in threads but couldn't find relevant.
    Thanks,
    Venkat.

  • Using concurrent program parameter in bursting

    Hi there,
    I am passing a concurrent program parameter into my rtf using the ?param@begin method & displaying it on the XMLP PDF output.
    However when I am sending that PDF via bursting the param data does not show, even though it's present when viewing the PDF output via the concurrent request.
    Does that mean I cannot do that and need to define the parameter as part of the Oracle report first?
    cheers.

    please check xml user guide

  • Issue in concurrent program parameter.

    Hello
    I have one request set which has 2 concurrent programs. All the parameters of first programs are shared by 2nd program.
    In first program there is one parameter p_load_seq where I am using default type=
    "SQL Statement" and default value "select per_hr_br_outbound_seq.nextval from dual' .
    If we submit this program/req set manually then it is taking the nextvalue correctly but If we schedule this job or copy this job/program it is not taking next value of the sequence.
    Please let us know what is to be done to get the next value even if we schedule or copy this job.
    Thanks
    Ganesh Mane

    This seem to be due to the fact that when You copy, previous execution parameter values are inherited, not defaulted again, and for scheduling, the values are derived when You secify parameter values and then they are carried to the next scheduled execution.
    The only ways to circunvent this may be to obtain the sequence in concurrent program itself, and if that is not possible because of a standard program, You may code a launcher that calls the request set, so everytime it fetches the new sequence value.

  • How to view concurrent program LOG from custom FORMs

    Hi,
    How to view concurrent program LOG from custom FORMs?
    Thanks
    ESL

    Hi Thanks for your response....
    lets assume there are 2 buttons, first button to submit concurrent program and second button to view concurrent program output/log.
    Actually im able to submit concurrent program from oracle custom form(6i) in ebusiness(11.5.0.2) i.e first button (WHEN-BUTTON_PRESSED buitin).
    Rather user navigating to VIEW-> REQUEST, i would like to give option to user to view concurrent program output/log when user clicks on second button (WHEN-BUTTON_PRESSED buitin)
    How can i achive this?
    Thanks,
    ESL

  • How to assign concurrent program to concurrent manager

    Hi:
    How to assign concurrent program to concurrent manager? or the other way around. It was an interview question. for R12 or 11i
    Thanks

    Srini Chavali wrote:
    All concurrent programs, by default, will be run thru the Standard Manager. If you need to have a specific manager run a program, you need to define specialization rules (in Concurrent > Manager > Define, "Specialization Rules" button) for that manager.
    http://docs.oracle.com/cd/E18727_01/doc.121/e12893/T174296T174302.htm#fndcpdcq.QUEUE_CONTENT
    And that's exactly what is mentioned in the docs referenced in my previous reply.
    Thanks,
    Hussein

  • How to get CS6 program icons to display?

    How to get CS6 program icons to display?

    This is the error message I get
    Exit Code: 6
    Please see specific errors below for troubleshooting. For example, ERROR:
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 2 error(s)
    ----------- Payload: Microsoft Visual C++ 2012 Redistributable Package (x86) 11.0.61030.0 {873BE68F-480F-49A6-9649-F98CAB056AFC} -----------
    ERROR: Third party payload installer vcredist_x86.exe failed with exit code: -2147024546
    ERROR: Failed to install Microsoft Visual C++ 2012 Redistributable Package (x86). Please try installing it by double clicking on the executable at "C:\Users\Antia\AppData\Local\Temp\{7976D5C1-6469-483B-B4CB-179D91E4C7E0}\Photoshop_15_LS 20_win64\Adobe CC 2014\payloads\Microsoft VC 2012 Redist (x86)\vcredist_x86.exe", or download and install the latest Microsoft Visual C++ 2012 Redistributable Package (x86) from Microsoft website - www.microsoft.com

  • How to Email Concurrent Program Output to Email using Shell Script

    Hi All,
    Have a Nice Day,
    I have a tricky requirement and i was not able to achieve, let me explain my requirement
    I have created a PLSQL Concurrent Program named "Approval Update". This will do update and it display the number of rows updated.
    Now i need to take this concurrent program output and it needs to be send it to the person who submits this program as an email using shell scripts.
    I have referred meta link note as well as some OTN posts but I was not able to achieve this.
    Please help me to complete this As soon as possible, Thanks in advance for your help.
    Let me know if you need more clarifications.
    Regards,
    CSK

    I don't have much idea in shell scripts all i want is, in my shell script i need to get the parent concurrent program output and that needs to be emailed to the intended person.
    Please help to to get the shell script commands for this.I do not have any shell script to share, sorry! If you want the query to get the parent request_id so you can get the log/out file name/location from then please refer to:
    REQUESTS.sql Script for Parent/Child Request IDs and Trace File IDs [ID 280295.1]
    http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=FND_CONC_REQ_SUMMARY_V&c_owner=APPS&c_type=VIEW
    http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=FND_CONCURRENT_REQUESTS&c_owner=APPLSYS&c_type=TABLE -- LOGFILE_NAME & OUTFILE_NAME
    Thanks,
    Hussein

  • How can I copy programs (iWorks) and files from Time Capsule to my HD manually? The problem is that the migration assistant does not recognize my backup file and the user on the TC. (If I open the TC on finder, it it there though)

    How can I copy programs (iWorks) and files from Time Capsule to my HD manually? The problem is that the migration assistant does not recognize my backup file and the user on the TC. (If I open the TC on finder, it it there though)

    How can I copy programs (iWorks) and files from Time Capsule to my HD manually? The problem is that the migration assistant does not recognize my backup file and the user on the TC. (If I open the TC on finder, it it there though)

  • How to validate a program in background

    hello folks,
    i need to validate my program, my program should run only in background
    in case if it runs in foreground it should give error message. how to validate my
    program.
    can any one just tell the procedure how to do it.
    any help will be greatly appreciated,
    thanks in advance.
    regards,
    cnu

    Hello CNU,
    following snippet should do.
    Regards
      Klaus
    if ( 'X' ne sy-Batch ).
      message e000 with 'Only in Batch'(BTC).
    endif.

  • How to handle ADF_FACES Errors/Exceptions and display customized message.

    Hi All,
    <b>My question here is, </b>
    Is there any way to handle the validation/PPR kind of run time exceptions/errors. I have tried to handle these errors by extending the lifecycle and overridden the reportErrors method. But this method is being called in the PREPARE_RENDER phase. But the exception is happening in the JSF_PROCESS_VALIDATIONS phase. I have tried to handle the exceptions in the custom PagePhaseListener. But these exceptions could not be handled in the custom PagePhaseListener.
    <b>I would like to display a customized message to the user instead of displaying the PPR exception</b>.
    The details are given below.
    I have a use case related to the security like if there is a drop down list in a page. Drop down list is having a af:validateRegExp component which allows only alphabets. Dropdown is populating alphanumeric values.
    One option is selected in the drop down list and submitted the value with the help of the commondbutton.
    With the help of some tools, we modified the submitted value(index of the list submitted) to some alphabets.
    <b>Its throwing some validation exception. Some of the statements are given below.</b>
    <UIXRegion> <_warn> Error processing viewId: /Validate_TF/validate URI: /validate.jsff actual-URI: /validate.jsff.
    java.lang.NumberFormatException: ADF_FACES-60034:SelectOne could not convert index 0asd
    <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase PROCESS_VALIDATIONS 3
    <RegistrationConfigurator> <handleError> ADF_FACES-60096:Server Exception during PPR
    <b>displaying a popup dialog with error message like:</b>
    ADF_FACES_60034:could not convert index
    ADF_FACES_60097:server exception
    ADF_FACES_60096: some exception occurred during PPR,
    <b>I don't want to show these kind of messages to user. Please suggest me whether is it possible or not.</b>
    Thanks in advance.
    Regards,
    SatishRaj Dasari.

    Hi,
    Try reading one of Franks post :
    [url https://blogs.oracle.com/jdevotnharvest/entry/extending_the_adf_controller_exception_handler]
    Nigel

  • How can validate the ASM size and free space correctly?

    Dears ,,
    I faced problem in ASM size as it appeared in alert file as below
    ORA-19504: failed to create file "+DG_DATA"
    ORA-17502: ksfdcre:4 Failed to create file +DG_DATA
    ORA-15041: diskgroup space exhausted
    So we resize ASM space and large it. But we faced the same problem also although there is free space in ASM.
    It seems that the shown free space is not real.
    How can validate the ASM size and free space correctly?
    Thanks & Regards,,

    *Oracle DBA* wrote:
    Dears ,,
    I faced problem in ASM size as it appeared in alert file as below
    ORA-19504: failed to create file "+DG_DATA"
    ORA-17502: ksfdcre:4 Failed to create file +DG_DATA
    ORA-15041: diskgroup space exhausted
    So we resize ASM space and large it. But we faced the same problem also although there is free space in ASM.
    It seems that the shown free space is not real.
    How can validate the ASM size and free space correctly?
    Thanks & Regards,,
    I was having this problem. Im my case i couldn add datafiles to a tablespace despite the fact that i was having a lot of space in the asm. Try rebalancing. It might help. In my case rebalancing also didn work because it seems that there need to be a threshold space in all the disks for the rebalancing to happen which was not in my case, so i had to shrink some unused space in the tablespace and then after gaining the required space I rebalanced the disk and then the disks got rebalanced, also i was able to use the free space that was showing .

  • How to validate XML against XSD and parse/save in one step using SAXParser?

    How to validate XML against XSD and parse/save in one step using SAXParser?
    I currently have an XML file and XSD. The XML file specifies the location of the XSD. In Java code I create a SAXParser with parameters indicating that it needs to validate the XML. However, SAXParser.parse does not validate the XML, but it does call my handler functions which save the elements/attributes in memory as it is read. On the other hand, XMLReader.parse does validate the XML against the XSD, but does not save the document in memory.
    My code can call XMLReader.parse to validate the XML followed by SAXParser.parse to save the XML document in memory. But this sound inefficient. Besides, while a valid document is being parsed by XMLReader, it can be changed to be invalid and saved, and XMLReader.parse would be looking at the original file and would think that the file is OK, and then SAXParser.parse would parse the document without errors.
    <Book xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="book.xsd" name="MyBook">
      <Chapter name="First Chapter"/>
      <Chapter name="Second Chapter">
        <Section number="1"/>
        <Section number="2"/>
      </Chapter>
    </Book>
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="Book">
    <xs:complexType>
      <xs:sequence>
       <xs:element name="Chapter" minOccurs="0" maxOccurs="unbounded">
        <xs:complexType>
         <xs:sequence>
          <xs:element name="Section" minOccurs="0" maxOccurs="unbounded">
           <xs:complexType>
            <xs:attribute name="xnumber"/>
          </xs:complexType>
          </xs:element>
         </xs:sequence>
         <xs:attribute name="name"/>
        </xs:complexType>
       </xs:element>
      </xs:sequence>
      <xs:attribute name="name"/>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    public class SAXXMLParserTest
       public static void main(String[] args)
          try
             SAXParserFactory factory = SAXParserFactory.newInstance();
             factory.setNamespaceAware(true);
             factory.setValidating(true);
             SAXParser parser = factory.newSAXParser();
             parser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaLanguage",
                                "http://www.w3.org/2001/XMLSchema");
             BookHandler handler = new BookHandler();
             XMLReader reader = parser.getXMLReader();
             reader.setErrorHandler(handler);
             parser.parse("xmltest.dat", handler); // does not throw validation error
             Book book = handler.getBook();
             System.out.println(book);
             reader.parse("xmltest.dat"); // throws validation error because of 'xnumber' in the XSD
    public class Book extends Element
       private String name;
       private List<Chapter> chapters = new ArrayList<Chapter>();
       public Book(String name)
          this.name = name;
       public void addChapter(Chapter chapter)
          chapters.add(chapter);
       public String toString()
          StringBuilder builder = new StringBuilder();
          builder.append("<Book name=\"").append(name).append("\">\n");
          for (Chapter chapter: chapters)
             builder.append(chapter.toString());
          builder.append("</Book>\n");
          return builder.toString();
       public static class BookHandler extends DefaultHandler
          private Stack<Element> root = null;
          private Book book = null;
          public void startDocument()
             root = new Stack<Element>();
          public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
             if (qName.equals("Book"))
                String name = attributes.getValue("name");
                root.push(new Book(name));
             else if (qName.equals("Chapter"))
                String name = attributes.getValue("name");
                Chapter child = new Chapter(name);
                ((Book)root.peek()).addChapter(child);
                root.push(child);
             else if (qName.equals("Section"))
                Integer number = Integer.parseInt(attributes.getValue("number"));
                Section child = new Section(number);
                ((Chapter)root.peek()).addSection(child);
                root.push(child);
          public void endElement(String uri, String localName, String qName) throws SAXException
             Element finished = root.pop();
             if (root.size() == 0)
                book = (Book) finished;
          public Book getBook()
             return book;
          public void error(SAXParseException e)
             System.out.println(e.getMessage());
          public void fatalError(SAXParseException e)
             error(e);
          public void warning(SAXParseException e)
             error(e);
    public class Chapter extends Element
       public static class Section extends Element
          private Integer number;
          public Section(Integer number)
             this.number = number;
          public String toString()
             StringBuilder builder = new StringBuilder();
             builder.append("<Section number=\"").append(number).append("\"/>\n");
             return builder.toString();
       private String name;
       private List<Section> sections = null;
       public Chapter(String name)
          this.name = name;
       public void addSection(Section section)
          if (sections == null)
             sections = new ArrayList<Section>();
          sections.add(section);
       public String toString()
          StringBuilder builder = new StringBuilder();
          builder.append("<Chapter name=\"").append(name).append("\">\n");
          if (sections != null)
             for (Section section: sections)
                builder.append(section.toString());
          builder.append("</Chapter>\n");
          return builder.toString();
    }Edited by: sn72 on Oct 28, 2008 1:16 PM

    Have you looked at the XML DB FAQ thread (second post) in this forum? It has some examples for validating XML against schemas.

  • HT1766 my backup is failling to restore and displays an error message: backup either corrupt or not compatible with the device. This happened after updating to the latest software IOS7

    My backup is failling to restore and displays an error message: backup either corrupt or not compatible with the device. This happened after updating to the latest software IOS7

    I have the same issue and I KNOW my backup IS good. What happen is when you try to restore your phone apple says something like can I check for new updates and if you choose no, it just takes you back to the restore screen and a loop from then on.  If you dont update from you phone then when you back up you will have the 5.0.1 back up and then when you update to 5.1.1 and then try to restore the backup from 5.0.1 it say it EITHER corrupt or incompatible.. It is incompatible and its hard as **** to restore back to 5.0.1. I followed the restore to a T and still getting errors. I lost all text history and have to reset up email. All just because I wanted a 1.2 Gigs of "other" space back.

  • Web-based BEx: How to display a customized message on the variable screen??

    Hi All,
    I'm now using the web-based BEx. Recently I want to display a customized message (e.g. the usage of the report) on the first page (i.e. the variable entry screen) of the query. Is it possible?
    Thanks.
    BR,
    M. Ng

    Hi marco,
          Check here. itmay help you.
    Custom Messages WAD
    Thanks,
    Vijay.

Maybe you are looking for

  • Problem with CS5 Photoshop Installer

    I'm having trouble installing the latest CS5 photoshop.  I work for a university that receives a licensed copy of the CS5 software that we then distribute to all the students.  To make this possible we take the original installer, put it through the

  • MAIL ADAPTER RECEIVER setup

    How can I setup a simple MAIL ADAPTER RECEIVER that provides "Hello World" to one specific recipient of the e-mail?

  • Asm_Instance_startup_issue

    Hi All,   Iam not able to start the ASM instance in 11.2 , below are the information , please help me to solve this. Even ASMCMD shows Connected to an idle instance. IN /etc/oratab iam not seeing +ASM instance details like +ASM<grid_home>:N ( no info

  • Random numbers in JDK 117

    Hi, Im having a little problem while moving a program I've written at home to the work server. The work server java version is 117 the problem is that I recieve when compiling: pick.java:7: Wrong number of arguments in method. int roll = rn.nextInt(5

  • ARE3 Creation

    Hi, While creating ARE-3 document the error is coming as "You cannot create ARE3 for duty paid Deemed exports excise invoice! Message no. 4F326". Can anybody guide me on this issue as it is urgent. Thanks&Regards PSK