Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Custom Report Show Record

Go to End

4 Posts   1219 Views


Community Member, 156 Posts

4 October 2010 at 6:15pm

I am currently writing a custom report for a client who wishes to track records which are stored in a DataObject.

Is there an inbuilt function which can display this information in a popup window similar to that of a getCMSFields_forPopup()?


Forum Moderator, 1899 Posts

7 October 2010 at 8:18am

Hi Blackdog,

I don't follow... do you want to create a popup window or are you asking how to modify the edit fields... I've searched for getCMSFields_forPopup and cannot find the method... which version of ss are you using?


Community Member, 156 Posts

7 October 2010 at 11:13am

Hey Swaiba,

Just display the report records in a popup window.

Not using the getCMSFields_forPopup, just creating a popup which acts the same way as that.



Forum Moderator, 1899 Posts

7 October 2010 at 9:23pm

Well since I could not find the method you wish to emulate, I cannot know what it does... however if all you want is a popup box that lists records...

then this will describe a coule bo methods of getting a popup window...

then you can create a page that has something like this in the controller...

function GetRecords()
return DataObject::get('RecordName',<where clause>);

and this in the template...

<% if GetRecords %>
<% control GetRecords %>
$FieldInRecord - $AnotherFieldInRecord - $YetAnotherFieldInRecord
<% end_control %>
<% end_if %>