• USA : +1 973 910 5725
  • INDIA: +91 905 291 3388
  • info@tekslate.com
  • Login

Message Choice

In this lesson we are going to learn how to create Message Choice item in the OAF page.

The bean for message Choice is item is “OAMessageChoiceBean”.

Step 1: First create Item in the page and select Item Style as MessageChoice in Property Inspector.

Step 2: After creating the page create the VO (View Object) in respective BC4J and attach VO to AM (Application Module).

Creating VO process:

Right Click on Resources folder of project and then select New View Object…  as shown in the below figure:

30

After that a welcome page to create a View Object wizard window will open as shown below:

31

Click on Next button so that first step to create a VO will come and in that :

Package : Select the proper package name which we created for a project.

Name : give the name to the VO note that all the View objects ends with VO.

32

Click on Next button:

33

Click on Next Button, no need to select any package or attributes here:

34

Click on Next button without any changes:

35

Click on Next button without any changes so that we can see the Query area to enter SQL query to retrieve the data, write the SQL Query in the Query Statement

36

After writing the Query statement check whether the written Query is valid or not by clicking on Test so that if the query is valid then it shows a message that Query is valid. After that click on Next button.37

Click on next button to step 8:

38

 

Click on next button and click on Finish button:

39

After creating VO (view object) we need to attach VO to AM (application Module). Let us see how to attach VO to AM:

Attaching VO to AM:

Edit the AM which we created in the project, right click on AM and then select Edit <AM Name> as shown in the below figure:

40

Select Data Model, extract the package in which VO is created select the VO after selecting the proper VO click on the Greaterthan arrow symbol which is shown in below figure:

41

After that we can see the VO is attached to the AM as shown in the below figure:

42

Click on Apply button and then on OK button so that the attachment process of VO to AM is over.

 

Step 3: Select the item properties in that do the following:

43

Picklist View Instance : Give the VO name

View Instance : Attribute Name, the displayed list values.  (Column Name, in VO columns are converted into                                              attributes).

44

View Attribute : Attribute Name

45

Now run the page so that we can see the output with drop down list to pick some values. The below image shows the output of Message Choice along with other items in OAF page.

Note that a drop down list can handle a maximum of 200 values.

46

Summary
Review Date
Reviewed Item
Message Choice
Author Rating
5

“At TekSlate, we are trying to create high quality tutorials and articles, if you think any information is incorrect or want to add anything to the article, please feel free to get in touch with us at info@tekslate.com, we will update the article in 24 hours.”

0 Responses on Message Choice"

    Leave a Message

    Your email address will not be published. Required fields are marked *

    Site Disclaimer, Copyright © 2016 - All Rights Reserved.

    Support


    Please leave a message and we'll get back to you soon.

    I agree to be contacted via e-mail.