I’ve had this requirement to open a Component upon clicking a hyperlink using DoModalComponent. The catch being – values to be passed from the source component to the destination component. DoModalComponent works in mysterious ways. 🙂
DoModalComponent requires the level 0 records of both the source and the destination components to be the same – so that whatever values have been set in the source component can be passed while the component is opened in a modal window.
&OKCancel=DoModalComponent(MENU.MenuName, BARNAME.BarName, ITEMNAME.ItemName, PAGE.LandingPageName, &Action, &RECORD.SharedRecordName [, RecordName.Field ]... );
The level 0 record is essentially the Shared Record name in the PeopleCode syntax provided above. I’ve got tons of information to share that I’ve learnt in the past month, but there’s so little time. Stay tuned for more posts.
And, that concludes my 50th post. Yay!! 🙂 It has been 5 years since I started blogging and have managed an average of 10 posts a year. 😀
Have fun folks!:)