05-Result Based Search in Oracle OAF

Make sure you have setup your jDeveloper properly and created OAWorkspace. In case you have not done that before, click here to see how.

Click here to know different types of search pages in OAF.

Below are the steps in brief:

  • Create Application Module (AM)
  • Create View Object (VO)
  • Add VO to AM
  • Create a page
  • Add Query Region to the page
  • Make search allowed true for the fields to be displayed in search criteria 

We will add new package (rbsearch as subcomponent of component demo) in our previous application workspace.

  • Right click demo package and click New





  • In Business Tier category, select ADF Business Components -> Application Module



  • Click Next button



  • Enter the package oracle.apps.cie.demo.rbsearch.server and Name as RbSearchAM (AM suffix to identify that its an AM) 



  • Click Next button



  • Click Next button



  • Click Next button



  • Click Finish button



  • RbSearchAM will be created and displayed in the Applications Navigator. In structure, you can see the associated files like RbSearchAM.xml, RbSearchAMImpl.java, and bc4j.xcfg 







  • bc4j.xcfg is a configuration file which holds the connection definition details



  • RbSearchAM.xml is code file of application module



  • RbSearchAMImpl.java is the java class associated with the AM. In this we can write java methods which can be invoked from the controller java class.



  • Oracle ships a file named server.xml with each bc4j package. You will need to ftp that file alongside other bc4j objects(VO’s, EO’s, AM, Classes etc). Opening the server.xml will load the complete package starting from AM(application module). This is a mandatory step when building Extensions to framework.



  • Right click the server package and select New View Object



  • Click Next button


  • Enter the Name as RbSearchVO and select Read-only Access radio button



  • Paste the below query in this screen




Here, we have used org_name as alias for hou.name as name is a keyword so it cannot be used as ID of generated table fields (messageStyledText fields). Also, don't use semicolon at the end of the query. Click on Test button to validate the syntax of the query and click Next button

SELECT
    ooha.header_id,
    ooha.order_number,
    ooha.cust_po_number,
    ooha.ordered_date,
    ooha.org_id,
    hou.name org_name
FROM
    oe_order_headers_all  ooha,
    hr_operating_units    hou
WHERE
    ooha.org_id = hou.organization_id



  • Click Next button



  • Click Next button



  • Click Next button



  • Click Next button

  • Click Next button


  • Click Finish button



  • RbSearchVO will be displayed in the navigator






  • Double click the RbSearchAM and add the RbSearchVO. 


  • Give the instance name as RbSearchVO and click OK button 


  • Now right click rbsearch package in navigator and click New and select Page



  • Give Name and Package





  • Change the below properties of pageLayout region (region1)




  • Right click PageLayoutRN and select New -> Region



  • Change the below properties then



  • Right click QueryRN and select New -> Region Using Wizard



  • Click Next button



  • Select the RbSearchVO and click Next button



  • Set Region ID as SearchTable and select Region Style as table and click Next button



  • Select all the attributes and click Next button



  • Set style of each field to messageStyledText (readonly text field) and click Next button



  • Click Finish



  • Set Search Allowed true for OrderNumber and OrgName






  • Save all the changes. Right click the page file and select Run



  • Page will be displayed




Comments

All Categories

Call Fusion BIP Report2 Change Password1 Code Combinations2 Compute Instance2 CTE1 Customer1 Data Aggregation2 Database5 Date Conversion1 DB Adapter2 Decryption1 Development1 EBS4 Encryption1 ESS Jobs3 Examine1 FBDI3 Fusion APIs1 Fusion BIP7 GIT2 GL3 GL Journals1 GL_DAILY_CONVERSION_TYPES1 GL_DAILY_RATES1 ICS1 Identity Domain1 Integrations1 Java1 Journal Import1 Keys1 Legal Entity1 LookupTypeLOV1 LOV1 LOVs1 MultiPartAPIs1 Networking1 NVL2 NVL in OIC2 OCI11 OCI Billing1 OCI Compute5 OCI Cost Management1 OCI Events Service1 OCI Free Tier3 OCI Notifification Service1 OCI Security3 OIC4 OIC Mapper2 Oracle26 Oracle ADF17 Oracle APEX1 Oracle Apps59 Oracle Apps R126 Oracle ATP1 Oracle BIP8 Oracle Cloud12 Oracle Cloud Free Tier1 Oracle cloud Infrastructure9 Oracle Cloud Security2 Oracle Cloud VM1 Oracle DB4 oracle ebs5 Oracle ERP4 Oracle ERP Adapter2 Oracle ERP Cloud7 Oracle financials2 Oracle Forms1 Oracle Fusion57 Oracle Fusion BIP4 Oracle Fusion ERP17 Oracle Fusion Financials18 Oracle Integration Cloud3 Oracle OAF17 Oracle OCI14 Oracle OIC22 Oracle SOA 12c10 Oracle SQL17 Oracle VBCS1 Oracle VBS2 Oracle Visual Builder Cloud Service1 Oracle Visual Builder Studio2 Oracle Workflow Notifications1 Others10 Payables2 Payables Import1 Properties1 R121 Register BIP as ESS Job1 Reset Password1 Responsibility1 REST4 Security List1 Site Map1 SOAP2 SOAP API2 SOAP UI3 SQL16 SQL Functions3 SQL Queries14 SQL Query8 SQL Tips3 SSH1 TCA1 Value Sets1 VBCS1 Virtual Machine2 Virtual Machines1 XML1 XSLT1
Show more