Hello Friends,
Today I will tell you the most important question which asked many in the Interview.
Today I will tell you the most important question which asked many in the Interview.
Difference Between Application Page Item Vs. Global Page Item Vs. Normal Page Item.
Application Item:
- Application items are not associated with a page and therefore have no user interface properties.
- You can create a global variable by creating an application-level item with the same name across all applications and setting the scope to Global.
- For Security, Session State Protection, select Restricted.
- You can create an application item from Shared Components > Application Items.
- There is no option to modify attributes like a global page or a normal page.
- We can't get application Item value using JavaScript directly.
How to get application item value on page:
Example:- Suppose you have created an Application Item 'APP_ID' :
&APP_ID.
:APP_ID
Global or Zero Page Item:
- A Global Page Items is part of an HTML form.
- Global Page Items can be a text field, text area, password, select list, checkbox, and so on. Item attributes affect the display of items on a page.
- Global Page Items are Placed on every Pages.
- We can get the value of the Global Page Item using JavaScript.
How to get a global page item value on page:
Example:- Suppose you have created a global page item 'P0_PAGE_ID' :
To get the global item Value '&P0_PAGE_ID'.
Page Item :
- Page item is also part of an HTML form.
- Page items can be a text field, text area, password, select list, checkbox, and so on. Item attributes affect the display of items on a page.
- Page Items are Placed on Single Page.
- Users can not use page item as global Variable or It can't render all over the Application like Global Page Item.
- We can also get the value of Page Item using JavaScript.
Please comment below if any difference is missing or suggestion then we will add your comment in our blog.
0 Comments
If you have any doubts, Please let me know