Wednesday, June 12, 2013

Java Script: Get user name of login person


Sometime you may have requirement to show message like Welcome User for some type of application and If that application is not authenticated then we can pull user name from window credentials using java script.

    <script type="text/javascript">
      function currentUser() {
        var ntw = new ActiveXObject("WScript.Network");
        <meta http-equiv="Content-Type"
              content="text/html; charset=windows-1252"/>
      <body onload="currentUser();">

Tuesday, June 11, 2013

Jdeveloper : ADF Pagination not working when detailStamp table used.

Please refer to my previous blog for making pagination work with Simple Table component. However , If we try to add child table to detailStamp of table facet then pagination will stop working.

I have used Oracle HR schema and created following structure. I have made Employee as main table and inside detailStamp I have added Department table.

As you can see Pagination works , But as soon as you click arrow to expand the row to see the Department for employee It will disappear.


After I expanded any particular Employee to see department records Pagination bar went away. Even If I minimize the employee It will not come back.


Jdeveloper : ADF Pagination for Simple Table

Oracle has introduced Pagination feature in Jdeveloper and It is very exciting news for many customer ,so they can have a choice between scrolling or page based options.

Thanks to Frank for posting with extra details here

To make pagination work with table component of ADF following property need to be populated.

  • authoHeightRow property need to be set to 0 (Try to remote this property ,It will not work)
  • Surrounding container provides floating layout and does not stretch (using PanelGroupLayout)
  • Table can be in shape by using styleClass=”AFStretchWidth”


scrollPolicy=”page” autoHeightRow=”0” and styleClass=”AFStretchWidth”

Table GUI


Tuesday, June 4, 2013

Oracle ADF : Map Viewer

Map has become part of our every day business need and If you need Map implementation in ADF business application then you can use.

Oracle Fusion Middleware MapViewer Version 11g ps6

It has all the require steps to configure and start using map viewer functionality in your ADF Application.