Search

Friday, May 21, 2010

Dynamic OA Personalization using FormFunctions

Requirement: Hiding a field in an OA page based on the responsibility from which the page was opened. For example, consider hiding the ‘Start Action’ column in Payment Process Requests Tab (Navigation: AP Super User > Payments > Payments Manager > Payment Process Requests Tab)

image

 

Option-1:

  • At the responsibility level, set the rendered property to false.
  • Drawback:
    • We need to hide the column for multiple responsibilities. Hence, we need to open the same OA page in different responsibilities and then, hide the column using OA personalization

 

Option-2: Very apt if all the responsibilities where the column is to be hidden use the same menu. This tutorial is about option-2

  1. Create a new Form Function of UnknownType’
  2. Find the name of the menu being used for accessing the OA page
  3. Query for the menu and add the new form function created above in Step-1 and select the ‘Grant’ checkbox
  4. Go to the OA page that needs to be personalized and select the column that needs to be shown/hidden for personalization. In the rendered property at the site level enter the SPEL expression as ‘${oa.FunctionSecurity.<functionName>}’
  5. This means if the menu has the above created function with ‘Grant’ checkbox checked, then the column gets displayed; otherwise the column remains hidden

Detailed Steps to follow:

  • Create a new Form Function

image

 

image

 

  • Query for the responsibility and then copy the name of menu that is being used

image

  • Query for the Menu AP_NAVIGATE_GUI12 and add the form-function created in the first steps. The Grant checkbox will decide whether the column on the OA page will be displayed or not. If the Grant checkbox is selected, then the column will be displayed. If the Grant checkbox is not selected, then the column will be hidden.

image

  • Now go to the OA page (Navigation: AP Super User > Payments > Payments Manager > Payment Process Requests Tab)
image
 
  • Click on “Personalize Page”

image

  • Click on the Update icon (Pencil Icon) for the item Column: (ActionSwitcherCol)” to view the below page. Now for the Rendered property, at the site level, select ‘SPEL’ from the poplist and then in the textbox next to it, enter ‘${oa.FunctionSecurity.XX_CARE_TEST}’ and click on ‘Apply’

image

  • Now, go back to the Menu form and query for the Menu. De-select the Grant checkbox and save to hide the Start Action column

image

  • We observe that the Start Action column is hidden
image
 
***** End of Exercise! :) *****

Thursday, May 20, 2010

Love is in the air!

Cool Breeze... Swaying Trees...
Mild Drizzle... Fragrant Earth...

Hyderabad looks more liveable...
Thanks to Laila!

*****(It's at the expense of coastal areas... What an irony! One's food is another's poison!)*****

Wednesday, May 19, 2010

Car-ride with Karthik!

Car-ride with Karthik has always been a fun-ride... His funny comments and stories make me roll onto the floor clutching my tummy and laughing... His presence is like laughing gas...
 
In Karthik's own words: "Karthik's laugh and Yawning are contagious!!!"
 
Here are some of the rib tickling comments that he passes while driving:
  • (To a pedestrian crossing the road): He is simply moon-walking, man!
  • (To the vehicle-driver in front of his car, that is going at a snail's pace, even though all other vehicles are going fast): Nidhra mabbu lo nadipisthunnaadu! (loosely translated: He is driving in his sleep)
  • (To a pedestrian crossing the road): Kallu mooskoni cross chesthunnadu (He is crossing with his eyes tightly shut)
  • (To another pedestrian crossing the road): oorike itu nundi atu walking chesthunnaadu! (loosely translated as: He is on his morning walk and walking from this side of the road to that side!)
  • (To another pedestrian who crossed the road in a hurry right in front of Karthik's car): Did you find only my car to commit suicide!!! :P
It's a pleasure to sit in his car while he drives and entertains us!!! May be that's why his name has the word Car (KARthik) in it!!! ha ha ha :D

Needless to say, this post has been completely dedicated to the funny driver.. Oops.. I mean.. to our dear Karthik! :D

Monday, May 10, 2010

Muscle Joke: Counterfeit Change

Conversation between two foreigners in India
Foreigner-1: Do you have change for this 250-rupee note?
Foreigner-2: I wish I could help you. I have only three 75-rupee notes with me!

Did you have enough muscle exercise for today? :D

(To read more on muscle jokes click here)

Wednesday, May 5, 2010

Love and Distance

My travel got postponed by another weekend and so, iGoogle's Love-Quote gadget consoled me like this:
"A part of you has grown in me.
And so you see,
it's you and me together forever;
and never apart,
maybe in distance,
but never in heart."

Waiting for next weekend.... May be then I will be in a flight flying towards you...! :)

Tuesday, May 4, 2010

Writing and Mood Swings...

Gone are the days when I would write everything I felt... good or bad... Happy or sad... I would write to my heart's content. I always believed that writing things would help in healing those bad feelings and pouring our feelings out would give me immense relief. 

However, later I realized that all I am left with is a blog full of sad posts and re-reading them would make me re-live those moments all over again. Then one day I decided not to write about sad things. Though I had a couple of posts lined-up, I did not publish them, because they were not the happy ones! They were the ones that I would want to forget the most in my life... That phase of life is a past now... And I made up my mind not to publish them at all... They will never ever be published!

I started writing about cheerful things in life, about jokes and naughty things and about things that made me happy... Even though my heart would ache and I would be in in the worst of moods, yet, I had managed to write all rosy stuff...

But now I am not able to control my frustration...

While I see so many people leaving for the place I was to go a month ago, I am made to wait... I am not even told how long this wait would be... "You will travel next weekend..." is what I hear every week and that 'next' weekend has not come yet... I am still waiting, while others leave for the same place...

This weekend is very different from any others. This Saturday is my Birthday and I wish to spend it with my hubby... Will I? It is my first birthday after my marriage. Well, I will just wait as I have waited all this while... I have no other option, do I?

Wednesday, April 28, 2010

Reading.. An Eye Opener!

When someone says that their hobby is reading, what do we ask? "fiction or non-fiction?..." "Who's your favorite author?" etc. etc. Do we ever think of what use the reading is put to? Most of us read just for pleasure... we read to get into a world of imagination and to forget our real world. In some cases, we read to see how good the author has written the plot or to observe the writing style or the language of the book. Some people read books related to management or communication skills to help them in their profession and others read biographies and autobiographies to gain inspiration and motivation from lives of great personalities.
 
A good book can captivate us to such an extent that we stick to turning the pages all through the night completely forgetful of the world around us! Many at times, our mood swings depend on what kind of a chapter or passage that we are reading in our current book. A book full of jokes can keep us in good humour; at the same time, if the protagonist is going through a very difficult phase in life, we also seem to be very sad or temperamental. Such is the influence of books on us!
 
If you are an avid reader, you will completely agree with me! (won't you?)
 
Recently, I was enlightened a very different kind of a perspective for the hobby: reading. Why do we restrict ourselves to reading novels or books related to our profession? Why not take up books that can improve our knowledge in topics like Travel, Astronomy, Geography, Archaeology, Philosophy etc.? There may be a subject/topic that interests us a lot, say psychology. Then we can get books on child psychology or criminal psychology and read them. They not only help in passing our time but also enrich our learning.
 
Ever since, I started looking at reading in this angle, I have started browsing for books related to Travel, tourist places in the world, Bhagavad Gita etc. I get hooked onto the book because these topics interest me and at the end of the book, I am left more knowledge. Instead of discussing the plots of the novels that I would read, I now discuss about religion, China's forbidden palace, Iceland's volcano or Mahabharata.
 
Even though we may read one book a day, there will be still thousands of books still waiting for us to be read and absorbed. I can't wait to read more! :)

Tuesday, April 27, 2010

Knotty Tidbits: 4

This is on Gayu's demand. It feels so good to be appreciated for our writing and that motivates us to write even more. So, if you see me bore you with more posts, you know whom to blame. That's right, blame Gayu for it! ;-)

Title: Fasting
 

For a person who has always believed in feasting rather than on fasting, the term fasting itself makes her go hungry!!! Well, things do change after marriage. This very-important fasting festival of ours came up right after our marriage. It's called Sankasht Chaturthi (Vikram, I hope I have spelt it right... I ask Vikram because this festival is from his side of our family!) Every married girl is supposed to fast the whole day without even having water and pray for the well-being of everyone in the family. Fasting is especially observed by ladies who have sons. However, at our home, every married girl, irrespective of whether she has sons or daughters or no children, has to observe fast throughout the day till moonrise; then perform puja for the moon and then eat after takings blessings from all the elders in the family.
 
That's enough of background knowledge for this post!!! :)
 
No one at home could think that I could fast for the whole day. Also, once a person starts observing fast, she has to do it year after year without breaking the ritual. So, didi, mummy and papa were giving second thoughts as to whether I should take it up at all or not. There was also another angle to this situation. I, who have always been a rebel, might question the very basis of this fast, "Why should only the wives fast and not the husbands???" So, my husband was also uncertain about it and he did not even know whether to talk about this to me or not.

 
However, the day came and I fasted. We are allowed to drink milk. So, I had 2 full glasses of milk through the day, but no water! The day was not a routine one. We had to prepare for the evening puja right from the morning itself. Washing and cleaning the entire house, preparing special eatables and decorating the puja room and idols for the puja. Meanwhile, V left the house to meet his friends. I felt utterly lonely through the day.
 
Then came evening and the long wait for the glimpse of the moon. V was the one to go to the terrace on look out for the moon. The moon came and we stood at the terrace, dipping a lock of hair in milk and offering it to the moon and finally adorning my maang(middle parting of hair) with sindoor seven times... After all this a delicious meal for my starving tummy...
 
I have not still told you the best part...Here is goes...
Unknown to my in-laws or anyone else in the world, V also fasted for me on that day. I will ever forget the feeling of joy that I got when I found out that my loved one did not eat anything because I did not eat anything. The very thought of it fills me with a warm feeling!!! (It also urges me go on another fast, just to test if he would fast for me again! Hey.. just kidding! :D)