Sunday, January 17, 2016

Create Dynamic Barcode Reader by Using ADF

This article is about using barcode reader inside ADF, and create dynamic read and send data to managed bean, and then can store in database or make any operations on it without any action.

- implementation steps
  • Create a fusion web application and a page in viewController and it;s name is barcodePage                
      
  • Page required components
    • <af:document> 
    • <af:form>
    • <af:panelBox>
    • <table>
    • <af:iterator>
    • <af:panelGroupLayout> inside iterator
    • <af:inputText>
    • <af:commandLink>

 
  • Create managedbean in viewController 






  • Main operation that will performed
    • Constructor Implementation
    • Dynamic Focus on latest inputtext every time the page load in it.
      • Inside managedbean 
        • declare an object of Document and create setter & getter to it =>                        private RichDocument doc;
        • in the end of the method of valueChangeListener write adfFacesContext.addPartialTarget(doc);
    • Value change listener to listen any change happen on the value of inputtext.


    • Auto-submit operation to send data with out any action from user. 
    • Delete operation if user want to delete specific value .



3 comments: