Subscribe

By RSS
By Email

Delivered by FeedBurner

Recent Comments

    • Tushar - Excellent post. Thank you for sharing this information.…Excellent
    • Piyush K - Can we dynamically change the Mouse over text of a…Can we dyn
    • mutyala rao - This doesn't run on OS390 process scheduler?…This doesn
    • XML - HI, Please send the documention on XML Publisher to following email…HI, Please
    • XML - Hi, Please send any documention on XML Publisher. Thanks, Sridhara Raju…Hi, Please

Ask the Experts – 60

By Nitin Pai on January 6th, 2009 under Ask the Expert.

Do we need to fetch data using code to populate the grid in a secondary page? Or can it be done by mapping keys from parent page to secondary page? What is the difference between using domodal and using the Destination = Secondary page on button properties?
Thanks,
Rama Naidu.

Thanks for posting your question!

We need not write code to fetch data into a secondary page we need to map the keys that’s it.

The difference between domodal and destination are almost the same except for, if you use domodal then you can hide the default ok, cancel buttons appearing in the secondary page online. This will be helpful if you want to have your  own buttons instead of the ok and cancel buttons in the secondary page then you have to go thru the domodal only in destination secondary page the default buttons will only be seen and cannot be overridden. 

As well in case of nested calls of secondary page the destination method will always follow the hierarchy in the call and even do modal will have the same functionality but you have the facility to override the hierarchy and make it return to any page as you like. 

Thanks
Senthil Theagarajan

 

 

 

Bookmark and Share

Comments:2;




2 Responses to “Ask the Experts – 60”

    R.Sathya Bama Says:

    Hi Senthil,
    In the post as you have mentioned while using domodal we can hide the default ok, cancel buttons.
    It would be grateful if you could explain how this can be achieved?

    Thanks,
    R.Sathya Bama

    Rama Naidu K S Says:

    Thanks for the prompt feedback,

    I’m using domodal as below(on a work field.fieldchange on primary page):
    DoModal(Page.SY_POLICY_LIST_PG, “Policies”, – 1, – 1, 1, Record.SY_COMPANY_VW, CurrentRowNumber());

    And on Secondary page activate i’m fetching through code as below:
    ScrollFlush(Record.SY_PLCY_MST_VW1);
    &rows = ScrollSelect(1, Record.SY_PLCY_MST_VW1, Record.SY_PLCY_MST_VW1, ” where COMPANY=’” | &company | “‘”);

    Primary Page Record:(SY_COMPANY_VW)
    1. Company – Key
    2. Description

    Secondary Page Record:(SY_PLCY_MST_VW1)
    1. Company – Key
    2. Policy Number – Key
    3. Policy Description

    Can you please explain in detail, how to map keys from primary page to its secondary?
    (Also what is the significance of the Secondary Page icon, in this process?)

    Thanks,
    Rama Naidu.

Pitch in with your comments