Custom Validator for a Custom Component

I am having troubling passing values from my custom component
to my custom validator (via a model). For some reason when the
validate() function is called for the validator the value parameter
passed to the validator is not showing the value from my custom
component.
I have attached some example code to illustrate.
Here is my model:
<mx:Model id="myModel">
<root>
<mod>
<name>{myTextInput.text}</name>
<date>{myDateField.selectedDate.getTime()}</date>
<length>{myComp.getLength()}</length>
</mod>
</root>
</mx:Model>
When I update the value of myTextInput or myDateField the
model (as sent to the validator) shows the correct value. When I
change the value of myComp the change is not reflected.
Is there a particular event (or something) being dispatched
in the other components to cause the model to get the new value
that I need to include in my custom component? I am pretty stuck
and would appreciate any help.
Many thanks

Does myComp extend EventDispatcher (or any class which does)?
You need to flag the getLength() function as bindable and to
dispatch an event:
[Bindable('getLengthChange")]
public function getLength() : Number
// does whatever it does
When you update myComp have it dispatchEvent( new
Event("getLengthChange") ) and I think it will work.

Similar Messages

  • Custom validator for a SelectMany component

    I did not succeed at validating a selectManyCheckBox with a custom validator.
    I want to validate that the user selected at least 1 and at most 3 checkboxes.
    The UIComponent.getSelectedValues always returns an array of length 0, even when some boxes are checked.
    Page code:
         <h:selectManyCheckbox id="selectProfessions" value="#{userBackingBean.selectedProfessionIDs}" layout="pageDirection" styleClass="category">
              <f:selectItems value="#{categoryTreeBackingBean.professionSelectItems}" />
              <f:validator validatorId="com.studio184.news.ui.validator.SelectCategoriesValidator"/>
         </h:selectManyCheckbox>
    Validate method:
    UISelectMany select = (UISelectMany)component;
    if (select.getSelectedValues() == null || select.getSelectedValues().length < 1 || select.getSelectedValues().length > 3) {
         String summary = ...
         String detail = ...
         FacesMessage message = new FacesMessage(summary, detail);
         message.setSeverity(FacesMessage.SEVERITY_ERROR);
         throw new ValidatorException(message);
    Any help would be greatly appreciated.
    Bruno
    http://www.practicalsoftwarearchitect.com

    In general, the value property is set at the end of the Process Validations phase.
    You can use getSubmittedValue() to access the submitted values.
    More simply, you can use the third argument of the validate method which is the same as the submitted value.
    For example:
    public void validate(FacesContext arg0, UIComponent arg1, Object arg2)
              throws ValidatorException {
         Object values[] = (Object [])arg2;
         if (values() == null || values().length < 1 || values().length > 3) {
         // throw exception!!
    }

  • Is it worth it to make custom icons for a custom control/indicator?

    I was making custom icons (well not very custom, but still at least somet ext) for controls and indicators, when I realized that the only times you see them are when you open the control, itself, ot if you hover over it in the project with context help on.
    So the question is:
    Is it worth it to create a custom icon for each custom control you make, if it will be seen only rarely?  (The exception being a cluster, since, in the later versions of LabVIEW, you can actually represent your cluster on the BD as the icon you made for it, so it definitely IS worth it to make an icon for it.)
    Thanks!
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
    Solved!
    Go to Solution.

    Hooovahh wrote:
    I'd like to add another time that you see the control's icon, is when it is a type def cluster, and you have it as a constant on the block diagram.  Then double click the border to shrink the cluster.  It will shrink to the size of the control's icon.
    I also hardly ever make a control icon.  Only when it is on the palette in a reuse package.
    Yeah,t hat's what I meant in my original post, although you CAN represent a cluster constant on the BD as an icon - but it's just the little thing on the bottom of the typdef'd cluster because it obviously has no actual icon. 
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • One customer paying for another customer ....how is this handled in SAP

    Hi Gurus,
    Would appreciate if anyone can explain to me how SAP handles one customer paying for another customer.
    Scenario is Customer A owes us money but Customer B pays on his behalf.
    Subsequently, Customer B also pays for customer c,d, e,f etc...how do I set the relationship between customer B and all these other customers so that the payment flows automatically in SAP

    Thanks Srikanth
    How do I test the scenario...I want to see the final debits and credits happening on the paying customer and not the invoiced customer.

  • Possible to create a custom renderer for rendering standard component ?

    This is in context for creating dynamic Data tables. Is it possible to create a custom Renderer for rendering component (standard) without creating a custom component?
    namanc

    Let's assume you want to create a custom renderer which will be used to render the error-messages (the h:messages tag). The component-family in this case is: javax.faces.Messages, the renderer-type javax.faces.Messages.
    Therefor in your application's faces-config.xml add this renderer-statement (inside a render-kit, obviuosly):
    <faces-config>
      <!-- other stuff like components, managed beans, navigation-rules,... -->
      <render-kit>
        <renderer>
          <component-family>javax.faces.Messages</component-family>
          <renderer-type>javax.faces.Messages</renderer-type>
          <renderer-class>my.very.special.MessagesRenderer</renderer-class>
        </renderer>
      </render-kit>
      <!-- other renderers... -->
    </faces-config>The code for MessagesRenderer is very dependent on your needs, therefor I will not post something here. Basically you need to extend javax.faces.render.Renderer. For help in that camp, surf to the online tutorials or get yourself a book (I learned a lot from Kito Mann's "JSF in Action"). Additionally grab the source for Sun's RI AND Myfaces and dig into that java-code. There is a huge learning potential looking at that source-material.
    hth
    Alexander

  • Custom Icon for Lync Custom Menus

    We can create custom menus in LYNC Client by setting some  registry values.  But we are not able set custom icons fro the same(instead of default ICON). Is there any to set custom Icon for Custom Menus.
    Thanks in advance,

    No the icon is not configurable via the registry values.

  • Custom VO for OTL Custom Timecard Error in R12

    Hello All,
    I am very new to OA Framework and JDev so first let me write down the steps I did before I got the error on one of the LOVs on timecard page.
    1. Created a database view called HXC_CUSTOM_VIEW with only 2 columns
    2. Created VO via Jdev in read only mode. Hardcorded the values in CustomLOVVO.xml as,
    RowClass="oracle.apps.fnd.framework.server.OAViewRowImpl"
    ComponentClass="oracle.apps.hxc.selfservice.timecard.server.CustomLOVVO"
    Generated the JAVA as CustomLOVVOImpl. Compiled the project and got .class file.
    3. Transfered .xml and .class files onto the server under $JAVA_TOP/hxc/selfservice/timecard/server. CHMOD to 777 for both files.
    4. As I am on R12, logged onto application and clicked on responsibility "AK HTML FORMS". Created Attributes and Region and added Region Items.
    Covered important details while creating Region such as,
    "oracle.apps.hxc.selfservice.timecard.server.TimecardAM"
    "oracle.apps.hxc.selfservice.configui.webui.LovCO"
    5. Added 2 items under the Region.
    6. Modified the timecard .LDT file and add the code to include LOV.
    7. Bounced apache and logged into OTL Self-service. Clicked on create timecard, entered value for all fields and when on click on the LOV icon for this item I get the below error,
    =======================================================
    Exception Details.
    oracle.apps.fnd.framework.OAException: oracle.jbo.AttributeLoadException: JBO-27022: Failed to load value at index 3 with java object of type java.lang.String due to java.sql.SQLException.
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:896)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1169)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1435)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2844)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1834)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:532)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:420)
         at OA.jspService(_OA.java:212)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:335)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    ## Detail 0 ##
    java.sql.SQLException: Invalid column index
    =======================================================
    Need help and pointers to troubleshoot this proble. I have hit the wall and not getting any solution.
    Thanks an advance.

    Editing Oracle seeded files is not recommended as they are not upgrade/ patch safe. Read OTL impl white paper for your custom LOV requirements, They have explained well.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                   

  • Can I pre-fill the answer to a specific question? i.e. customer number for a customer questionnaire.

    I am building a customer questionnaire for our existing customers and, on the first page, have fields to type in the customer name and number (a unique number we assign to each customer.) 
    I would prefer to specify these myself when I send out the questionairre in case the customer doesn't know their customer number.  Theoretically, this would work with a query string or something similar so that each customer would get a unique URL to the form (i.e. formcentral.acrobat.com/myquestionnaire.html?custId=1234). 
    I'm intending to track and graph all of my results and don't want multiple submissions from the same customer to skew the findings.  I'm also setting up some mecahnisms to get back in touch with customers who fill out the questionnaire and answer any questions or concerns they expressed with it, which I obviously wouldn't be able to do if they didn't specify adequate identifying informaiton. 

    Hi,
    Currently we do not have a feature that allows you pre-fill in customer response data, or a way to prevent multiple submissions.  Preventing multiple submissions is something that is requested frequently, and we are looking at for a future release.  We do look to the ideas section to help guide us on what features we work on next.  I suggest you add your idea about pre-filling in customer resposne data to the ideas section, and also voting for the preventing of multiple responses idea.
    Thanks,
    Todd

  • How to create a custom tag for a custom converter

    In Jdeveloper 11g, I have a project where I have created a custom converter class that impements the javax.faces.convert.Converter class. I have registered the converter with an id in the faces-config.xml file of the project, and the converter works fine by using the <f:converter type="myconverter"> tag. However, the custom converter has a field which I would like to set from the tag itself. Hence, I would like to add an attribute to <f:converter> tag if possible or create a custom tag that has the attribute.
    I have done some reserach and I found that a custom tag can be implemented: I need to create a class which extends from the ConverterTag class or javax.faces.webapp.ConverterElTag class, which I did, but I also need to create ".tld" (tag library) file which defines the tag itself.
    The part about creating the ".tld" file and registring the new tag is what I'm not sure how to do.
    Does someone know how to do this?
    thank you

    Hi frank,
    that's a good document, and it explains how to make a custom converter. I already created the custom converter, it converts a number to any currency pattern. I know java already has a currency converter, but it doesn't support Rupee currency format, and I need that format.
    My converter works, but I would like to pass the pattern of the format through an attribute in a tag. Since f:converter doesn't seem to support that, I created a custom tag which uses my converter, and it enables me to pass a pattern to the converter.
    All of that works, but I need to be able to pass the pattern as an EL expression, and it's not evaluating the expression before passing it to the converter. It just passes the whole expression as a string. I'm thinking It may be something I'm doing wrong.
    this is the tag library definition file:
    <!DOCTYPE taglib
    PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
    "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
    <taglib>
    <tlib-version>1.2</tlib-version>
    <jsp-version>2.1</jsp-version>
    <short-name>custom</short-name>
    <uri>custom-currency-converter</uri>
    <description>
    custom currency custom tag library
    </description>
    <tag>
    <name>CurrencyConverter</name>
    <tag-class>
    converter.Tag.CurrencyConverterTag
    </tag-class>
    <body-content>JSP</body-content>
    <attribute>
    <name>pattern</name>
    <type>java.util.String</type>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    </tag>
    </taglib>
    Edited by: Abraham Ciokler on Feb 4, 2011 11:20 AM

  • How to add custom hotkey for adding specified component for specified parsys

    For example: I clicked anywhere on the page and press alt+shift+g.
    The result:specified component added on concrete parsys

    The usual way for adding components is by dragging them from the sidekick onto the page. You could certainly write something like this but I don't think it would be easy.

  • Validator for file upload component is not working !!

    This validator method for a file upload component is throwing a java.lang.NullPointerException.
    public void fileUpload1_validate(FacesContext context, UIComponent component, Object value) {
    long size= fileUpload1.getUploadedFile().getSize();
    if (size>65535){
    throw new ValidatorException(new FacesMessage("Your image is too big!"));
    Any help to solve this problem is very much appreciated.
    Thanks.

    Hi i have a fileUpload in a pop-up and the methods are :
    public void fileUpload1_validate(FacesContext context, UIComponent component, Object value) {
    try {
    com.sun.rave.web.ui.model.UploadedFile uploadedFile = ((Upload)component).getUploadedFile();
    long l_filesize = uploadedFile.getSize();
    if ( l_filesize > 1000000)
    throw new ValidatorException(new FacesMessage("File Size should be less than 1000000 bytes! It is" + l_filesize));
    else {
    String tipo = uploadedFile.getContentType();
    if ( tipo.compareTo("application/word") == -1 )
    if ( tipo.compareTo("application/rtf") == -1 )
    if ( tipo.compareTo("application/pdf") == -1 )
    throw new ValidatorException(new FacesMessage("Error : los tipos de archivo aceptados son PDF, WORD y RTF"));
    } catch (Exception ex) {
    this.mauvaisFichier = true;
    error(ex.getMessage());
    public String botonValidar_action() {
    if ( !this.mauvaisFichier )
    if ( this.fileUpload1.getUploadedFile() != null )
    if ( this.fileUpload1.getUploadedFile().getSize() > 0 )
    try {
    this.getSessionBean1().getComunicacion().setArchivo( new javax.sql.rowset.serial.SerialBlob(this.fileUpload1.getUploadedFile().getBytes() ) );
    this.getSessionBean1().getComunicacion().setTipoArchivo( this.fileUpload1.getUploadedFile().getOriginalName().substring(this.fileUpload1.getUploadedFile().getOriginalName().length() - 3 ) );
    } catch(Exception e){
    e.getMessage();
    return null;
    I have to put a boolean value because the first time, validation code doesn't function ( the method botonValidar_action() is called ) correctly. The error message appears but empty.
    If I try next time then it's ok.
    Thx for any issue.

  • How to Generate a Custom Message for A Custom Code.

    Hello,
    Can anyone guide me on this -
    Application : 11.5.10.2
    We have a cutom Trigger through which we want to display a custom message.
    We have re-generated the .msb, but it seems that something is missing.
    Following are the Steps We have followed to generate a custom message.
    1. Responsibility "Application Developer"
    2. Go to Applications
    3. Select Message
    4. Define a new custom message.
    5. Save
    6. Run Request " Generate Message"
    Now when the trigger gets fired , we are not able to see our Custom message.
    How do we call this messge in the custom code.
    Pl. help on this , also can i get some reference note id's on this.
    Thanks in advance.
    Regards,
    Jenny

    CREATE OR REPLACE TRIGGER KPC_RCV_TRANSACTIONS_INTERFACE
         AFTER INSERT OR UPDATE ON APPS.RCV_TRANSACTIONS_INTERFACE
         REFERENCING NEW AS NEW OLD AS OLD
         FOR EACH ROW
    ---     This Trigger Validates following things
    ---     1.     Creation date is not modified and is greater than system date.
    ---     2.     RTV should not be possible before ERS is generated.
    ---     3.     Inspection should not be possible through Deliver Transactions Responsibility
    ---     4.     Delivery of Material should not be possible through Inspection Responsibility
    ---     5.     Item is Excisable and Excise Invoice No Or Excise Invoice Date is Missing
    ---     6.     Only Inspected and Accepted material is Delivered to Subinventory
    ---     7.     Check for Existance of 57F4 for Subcon Job Receipts
    ---     8.     Check Taxes are not Missing
    ---     9.     Check Taxes are Correct
    ---     Declaring The Variables
    DECLARE
         v_grade                    number          :=     0;
         v_employee_id               number          :=     0;
         v_responsibility          varchar2(100)     :=     'Z';
         v_closed_taxes_count          number          :=     0;
         v_taxes_count               number          :=     0;
         v_invoiced_status_code          varchar2(01)     :=     'N';
         v_57f4_id               number          :=     0;
         l_date_ok               varchar2(01)     :=     'N';
         l_gate_date_ok               varchar2(01)     :=     'N';
         l_cenvatable_flag          varchar2(01)     :=     'N';
         l_excise_ok               varchar2(01)     :=     'N';
         l_rtv_ok               varchar2(01)     :=     'N';
         l_inspection_ok               varchar2(01)     :=     'N';
         l_delivery_ok               varchar2(01)     :=     'N';
         l_rej_delivery_ok          varchar2(01)     :=     'N';
    BEGIN     
    --      Get Looged in Responsibility Name
         begin
              SELECT      upper(responsibility_name)
                   INTO v_responsibility
              FROM      apps.fnd_responsibility_vl
              WHERE      responsibility_id = apps.fnd_global.resp_id;
         EXCEPTION
              WHEN      NO_DATA_FOUND THEN
                   v_responsibility := 'Z';
              WHEN      OTHERS THEN
                   v_responsibility := 'Z';
         END;
    ---     Modifications Done by SMT to Bypass checking for following Users
         if     (apps.fnd_global.user_id     <     1091)     then
              return;
         end     if;
    ---     if     (apps.fnd_global.user_id     in     (1090,1111,1112,1126,1540,1591,1570,1881))     then
    ---          return;
    ---     end     if;
    ----     Collect the Information Required from Other Tables
    ---     Check whether item is cenvatable
         l_cenvatable_flag     :=     'N';
         begin
              select     'Y'
              into     l_cenvatable_flag
              from     apps.ja_in_po_line_location_taxes     jipll
              where     upper(jipll.tax_type)          in     ('EXCISE','CVD')
              and     jipll.po_header_id          =     :new.po_header_id
              and     jipll.po_line_id          =     :new.po_line_id
              and     jipll.line_location_id          =     :New.po_line_location_id;
         EXCEPTION
              WHEN      NO_DATA_FOUND THEN
                   l_cenvatable_flag     :=     'N';
              WHEN      OTHERS THEN
                   l_cenvatable_flag     :=     'N';
         end;
    ---     Check whether Taxes are closed
         v_closed_taxes_count     :=     0;
         begin
              select     count(distinct jit.tax_id)
              into     v_closed_taxes_count
              from     apps.ja_in_tax_codes               jit,
                   apps.ja_in_po_line_location_taxes     jipl     
              where     nvl(jit.end_date,sysdate)<     sysdate               
              and     jit.tax_id          =     jipl.tax_id
              and     po_header_id          =     :new.po_header_id
              and     po_line_id          =     :new.po_line_id
              and     line_location_id     =     :new.po_line_location_id;
         EXCEPTION
              WHEN      NO_DATA_FOUND THEN
                   v_closed_taxes_count     :=     0;
              WHEN      OTHERS THEN
                   v_closed_taxes_count     :=     0;
         end;
    ---     Check Existance of Taxes
         v_closed_taxes_count     :=     0;
         begin
              select     count(distinct jit.tax_id)
              into     v_taxes_count
              from     apps.ja_in_tax_codes               jit,
                   apps.ja_in_po_line_location_taxes     jipl     
              where     nvl(jit.end_date,sysdate)<     sysdate               
              and     jit.tax_id          =     jipl.tax_id
              and     po_header_id          =     :new.po_header_id
              and     po_line_id          =     :new.po_line_id
              and     line_location_id     =     :new.po_line_location_id;
         EXCEPTION
              WHEN      NO_DATA_FOUND THEN
                   v_taxes_count     :=     0;
              WHEN      OTHERS THEN
                   v_taxes_count     :=     0;
         end;
    ---     Modifications Done by SMT to Get Invoice Status Code of the Original Transaction
         v_invoiced_status_code     :=     'N';
         BEGIN
              SELECT      'Y'
              INTO      v_invoiced_status_code
              FROM      apps.ap_invoices_all          ap,
                   apps.rcv_shipment_headers     rcv
              WHERE      ap.invoice_num               like     '%'||rcv.receipt_num||'%'
              AND     ap.org_id               =     rcv.ship_to_org_id
              AND     rcv.shipment_header_id          =     :NEW.shipment_header_id;
         EXCEPTION
              WHEN      NO_DATA_FOUND THEN
                   v_invoiced_status_code          :=     'N';
              WHEN      OTHERS THEN
                   v_invoiced_status_code          :=     'N';
         END;
    ---     RAISE_APPLICATION_ERROR(-200151,'Incorrect Transaction Date...');     
    ---     Check the transaction_date is correct or not
         l_gate_date_ok          :=     'Y';
         IF     ((:new.ship_head_attribute6     is     null)                                        or
              (to_date(:new.ship_head_attribute7,'DD-MON-YYYY')     <     (sysdate-3))                    or
              (to_date(:new.ship_head_attribute7,'DD-MON-YYYY')     >     sysdate))                    then
              l_gate_date_ok     :=     'N';
         END      IF;
    ---     Check the transaction_date is correct or not
         l_date_ok          :=     'Y';
         IF     (to_date(:new.transaction_date,'DD-MON-YYYY')     <     to_char(sysdate,'DD-MON-YYYY'))     then
              l_date_ok     :=     'N';
         END      IF;
    ---     Check whether Excise Invoice No and Excise Date is present
         l_excise_ok          :=     'Y';     
         if     (l_cenvatable_flag               =     'Y'               and
              :new.ship_head_attribute1          is     null               and
              upper(:new.destination_type_code)     =     'RECEIVING')          then
              l_excise_ok          :=     'N';
         end     if;
         if     (l_cenvatable_flag               =     'Y'               and
              :new.ship_head_attribute2          is     null               and
              upper(:new.destination_type_code)     =     'RECEIVING')          then
              l_excise_ok          :=     'N';
         end     if;
    ---     Check whether Inspection transaction is being made in correct Responsibility
         l_inspection_ok               :=     'Y';
         if     (upper(:new.destination_type_code) = 'RECEIVING')               then
              if     (v_responsibility like '%RECEIPT%QA%')                    then
                   l_inspection_ok     :=     'Y';
              else
                   l_inspection_ok     :=     'N';
              end     if;
         else     l_inspection_ok          :=     'Y';
         end     if;
    ---     Check whether Delivery transaction is being made in correct Responsibility
         l_delivery_ok               :=     'Y';
         if     (upper(:new.destination_type_code) in ('INVENTORY','SHOP FLOOR'))          then
              if     (v_responsibility not like ('%RECEIPT%QA%'))     then
                   l_delivery_ok     :=     'Y';
              else
                   l_delivery_ok     :=     'N';
              end     if;
         else     l_delivery_ok          :=     'Y';
         end     if;
    ---     Check whether RTV is made prior to generating the ERS Invoice
         l_rtv_ok               :=     'Y';
         if     (upper(:new.transaction_type) in ('REJECT','RETURN TO VENDOR'))          then
              if     (v_invoiced_status_code = 'INVOICED')                    then
                   l_rtv_ok     :=     'Y';
              else
                   l_rtv_ok     :=     'N';
              end     if;
         else     l_rtv_ok          :=     'Y';
         end     if;
    ---     Check Error and Display Proper error message
    ---     Transaction Date Error
         if     (nvl(l_date_ok,'N') != 'Y')          then
              apps.fnd_message.set_name('FND','Wrong GRR Date');
              apps.fnd_message.raise_error;
         end     if;
    ---     Gate Entry Date Error
         if     (nvl(l_gate_date_ok,'N') != 'Y')          then
              apps.fnd_message.set_name('FND','KPC_RCV_CHEK:Wrong Gate Entry Date');
              apps.fnd_message.raise_error;
         end     if;
    ---     Return CENVAT Error
         if     (nvl(l_excise_ok,'N') != 'Y')          then
              apps.fnd_message.set_name('FND','KPC_RCV_CHEK:Enter Excise Invoice No');
              apps.fnd_message.raise_error;
         end     if;
    ---     Return Closed Taxex Error
         if     (nvl(v_closed_taxes_count,1) != 0)     then
              apps.fnd_message.set_name('FND','KPC_RCV_CHEK:Taxes Wrong');
              apps.fnd_message.raise_error;
         end     if;
    ---     Return Taxes Missing Error
         if     (nvl(v_taxes_count,0) = 0)     then
              apps.fnd_message.set_name('FND','KPC_RCV_CHEK:Taxes Missing');
              apps.fnd_message.raise_error;
         end     if;
    ---     Return from trigger, if Transaction Type = 'RECEIVE'
         if     (upper(:new.transaction_type) = 'RECEIVE')     then
              return;
         end     if;
    ---     Return Inspection Error
         if     (nvl(l_inspection_ok,'N') != 'Y')     then
              apps.fnd_message.set_name('FND','KPC_RCV_CHEK:Inspection Not Allowed');
              apps.fnd_message.raise_error;
         end     if;
    ---     Return Material Delivery Error
         if     (nvl(l_delivery_ok,'N') != 'Y')          then
              apps.fnd_message.set_name('FND','KPC_RCV_CHEK:Delivery not Allowed');
              apps.fnd_message.raise_error;
         end     if;
         return;
    END KPC_RCV_TRANSACTIONS_INTERFACE;

  • Where can i get sample custom project for creating custom project

    I installed Plumtree_Portal_UI_Customization. now i want to develop my own custom project. when i installed this ptshared folder is not created so i am not having this,
    SOURCE_HOME\ptshared\6.0\ptwebui-samples\samplecustomproject .
    Even i am not able to download SampleProjects-60x.zip file.can anybody helps me regarding this.Give me the exact URL for this ZIP.I am not able to find the samples directory.
    Advance thanks.
    bye
    Amit

    I tried pasting the direct URL in here, but that doesn't seem to work. So the steps to follow are:
    1. Go to http://dev2dev.bea.com
    2. Select the CodeShare link under Get Involved in the left hand menu.
    3. Select 'Code Samples' under 'Popular Projects'
    4. Under 'By Product', select AquaLogic User Interface.
    5. Select Artifact ID S265
    6. Select the Attachements/Dependencies/URLs tab

  • Perform a simple validation of a custom field in AI_CRM_ORDER_SAVE

    Hello,
    I want to perform a custom validation of a custom field just before saving my order.
    I found out I should do this in the CHECK_BEFORE_SAVE method of the AI_CRM_ORDER_SAVE Badi, but I cannot figure out how to get the value entered in my custom field.
    Can anyone point me in the right direction?
    Thanks in advance!
    Regards,
    Tim.

    Hi Shailaja Gandam,
    I am having the same error.
    But for me its a little diferent.
    The error only occurs when I'm saving more then 2 objects, then on second order it try to save a guid from the previous loop step.
    I clean every objects on beginning of the loop, but its not working.
    I think its buffers or someting like it
    Have you solved your problem?

  • SharePoint 2013 Custom Content Type with Site Column custom validations

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

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

Maybe you are looking for

  • Calling soap web service using stub

    I have created a stub class from an existing BPEL process and want to write a small java client (ultimately to be used in a JSP). The problem is that the generated stub creates the calling method with an Element parameter instead of a string that the

  • Preview "select" tool

    Hello all. The question I have is regarding using the select tool in preview. When I open my image in preview, when I use the rectangular option in select, I copy it and then paste it in powerpoint or word and it's just fine. When I use the elliptica

  • Cisco ACS 5.4 patch 6

    Hi Everyone, I have a Primary Cisco ACS, called CiscoACS1, version 5.4 patch 6 with an IP address of 1.1.1.1/24 and a Secondary ACS, called CiscoACS2, version 5.4 patch 6 with an IP address of 1.1.1.2/24. Connectivity between them is ok, same subnets

  • CSV template

    I am using the CSV template to download the report generated by a query. Is there a way to set the default finlename of the download to an item's value on the page or to a quesry result?

  • Turning the server on and off

    Hi All A while back I edited some text file somewhere that starts and stops various services. One of which waw QTSS it was a line somehting like this QTSS=0 and now I want to turn it back on by changing that 0 to a 1 Only I can't for the life of me r