Login
Register

Home

Trainings

Fusion Blog

EBS Blog

Authors

CONTACT US

Kishore Ryali
  • Register

Oracle Gold Partners, our very popular training packages, training schedule is listed here
Designed by Five Star Rated Oracle Press Authors & Oracle ACE's.

webinar new

Search Courses

Hassan, one of the readers has asked I have requirement to capture where if I would be coming from some page say 'page23' then page 2 items should be displayed as uneditable. Can you please mention how I can cater this case in Apex?

Hassan's requirement is, suppose you have two pages Manager and User from where you can navigate to Order page. Items in Order page say Order Number, Order date are editable only when you come from Manager page. Otherwise they are read only or display only fields. This is a perfect example to show use of Application Items.


There are two types of items in APEX: page items and application items. Page items are placed on a page and have associated user interface properties, such as Display As, Label and Label Template. Examples of page-level items include a check box, date picker, display
as text, file browse field, popup list of values, select list, or a text area. Application
items are not associated with a page and therefore have no user interface properties.
You can use an application item as a global variable.

You can create application item from Shared Components > Application Items (Logic Section).

Implementation:

To implement this requirement, I will create three pages Manager, User and Order pages. You can navigate to Order page from Manager page using Edit button or from User page using View button. I will also create an application item called 'PARENT_PAGE_ID' which is set to substitution string &APP_PAGE_ID. in branches for Edit and View buttons. APEX engine substitutes &APP_PAGE_ID. with current page id during run-time.

In Order page, two fields Order Num and Order Date uses Read-Only condition which evaluates if PARENT_PAGE_ID = User page id. This condition evaluates to TRUE when you navigate from User page to Order page, so the two fields in Order page are now non-editable. If you navigate from Manager page to Order page, read-only condition evaluates to FALSE and the two fields in Order page are editable.

I will also create a Back button in Order page, to branch to parent page. The target page for this branch would be &PARENT_PAGE_ID. This functionality demonstrates use of application item as a substitution string.

Detailed steps to implement above requirement are:

  • Create Manager page (24) with HTML region having buttons Edit and Switch Role. Edit button takes you to Order Page and Switch Role takes you to User page. Branches are conditional on button requests.

  • Create User page (25) similar to Manager page. It also has two buttons View and Switch Role. View button takes you to Order Page and Switch Role takes you to Manager page. Branches are conditional on button requests.

 

  • Create Order page (26) similar to above pages. It has two fields Order Num and Order Date along with buttons Back and Submit. Back button takes you to page you navigated from. Submit button branches to same page i.e. 26. I will cover how branch for Back button is implemented, in later part of the article.

 

Order Num text field is defaulted with a static value 12982. Order Date item is of type Date Picker (comes with calendar). It is defaulted with current date.

 

  • Create application item in Shared Components > Application Items (Logic Section).

 

  • Now I will edit the branches for Edit button in Manager page and View button in User page to set PARENT_PAGE_ID with substitution string &APP_PAGE_ID. during branching.

 

  • In Order page, Read-Only condition is set for Order Num and Order Date fields.

 

  • Finally, for branching for Back button in Create page set target page as &PARENT_PAGE_ID. APEX Engine substitutes &PARENT_PAGE_ID. with application item value.

 

 

The requirement is successfully implemented. 

 

 

URL for the page:

This example can be accessed using the url http://apex.oracle.com/pls/apex/f?p=15944:24


Kishore Ryali

Comments   

0 #1 Hassan Shoaib 2009-05-22 09:53
Hi Kishore,

Thank s for dedicating the article for the requirement mentioned.

Reg ards,
Hassan Shoaib
Quote
0 #2 Aakash Gupta 2009-06-06 11:05
Hi Kishore,
Can APEX be used in tight integrated with E-Business suite R12?

Aakash
Quote
0 #3 Kishore Ryali 2009-06-06 11:20
Aakash,
APEX can be integrated seamlessly with 11i or R12. You have to use custom authentication scheme to login to APEX with EBS user credentials. Please see this article for custom authentication scheme http://apps2fusion.com/at/kr/394-test-html-comments-section

One crucial difference between 11i and R12 integration with APEX is Installation part. Mod pl/sql is not supported in R12, so you have to use separate application server for your APEX installation. This OTN thread throws more light at it. http://forums.oracle.com/forums/thread.jspa?messageID=2397169�

Kishore
Quote
0 #4 oscar 2009-07-24 12:09
Hi.

I have a problem related to this.

When i copy a value between screens the process copy just de default value, not the actual value that the item contains.

For example i have a field "campo" and it's default value is 12345, when the creen is changed the value of the target item is 12345, the problem is when i change the value of "campo" to 54321 and i change the screen, the value of the target item is still 12345.

Please help!

Thanks
Quote
0 #5 Kishore Ryali 2009-07-24 12:17
Hi Oscar,

How are you copying the field from page 1 to page 2? You can refer field :p1_campo in page 2.
Please demonstrate your issue by creating sample page in apex.oracle.com ?

Kishore
Quote
0 #6 Sumit Bhatnagar 2010-03-29 20:35
I am having issues with users using Browser back and fwd buttons. Example on page 20 I have ITEM_A which is value 'ABC'. I will display the results related to ITEM_A='ABC', not the user can select from the result which in this case is a URL and the value of ITEM_A is updated to 'XYZ'. The values on the page are updated to show results with ITEM_A='XYZ'. This navigation works fine if the user does not use the back and fwd button.
If he uses the back button , the page refreshes but it still shows results related ITEM_A='XYZ'. I am considering deleting the browser history in this case, so the user cannot go back. Is there a more elegant way of implementing this.
Is there a variable such as a stack, from which I can pop a value in case of a back button press.
First of all can I identify if a user has used the back button.
Quote
0 #7 okike 2010-08-06 18:36
How can I Branch After Processing to a URL in an iFrame to hide the address of the URL?
How can I Branch After Processing to a URL using popup and hiding the address of the URL?
Quote
0 #8 iulian 2011-08-30 05:42
nice turorial
http://www.cazaresulina.ro
Quote
0 #9 rsgoldforsale.com 2021-06-10 04:41
May I just say what a relief to uncover someone that really understands what they're
talking abouit on the net. You definitely
understand how to bring aan issue to light and make
it important. More peoople have to look at this and unerstand this sode of your story.
I can't believe you're noot more poular because you surely possess the gift.
Quote

Add comment


Security code
Refresh

Search Trainings

Fully verifiable testimonials

Apps2Fusion - Event List

<<  Apr 2024  >>
 Mon  Tue  Wed  Thu  Fri  Sat  Sun 
  1  2  3  4  5  6  7
  8  91011121314
15161718192021
22232425262728
2930     

Enquire For Training

Fusion Training Packages

Get Email Updates


Powered by Google FeedBurner