SuiteCRM | How can i get any module entry's ID

I want to get Event ID in modules/fp_events/metadata/detailviewdefs.php But I cannot get Id in this page.

I tried but I was failed.

I want to print id number of spesific event instead of $id.

How can I get this please help me :frowning:

You’re doing it wrong, you don’t want to change the metadata.

If you want to change the display of a DetailView, try something like this

https://suitecrm.com/forum/suitecrm-7-0-discussion/15154-is-there-logic-hook-for-detailsview

you’ll have access to the entire bean there (every field in that record, plus related records).

If this is not it, tell us what you’re trying to achieve.

1 Like

I actually want to make a query with specific ID of event.

Then I’ll add a button “Download Delegates” on this page(modules/fp_events/metadata/detailviewdefs.php) : https://ibb.co/itjah5

When clicked the Download Delegates the delegates’s list will be download as PDF.

Do you have any advice or solution?

Merhaba,

fp_event module is bad programed.
Easy way

first : make a custom entryPoint.
Second : query database with your SQL
Return the Pdf or easy way return html table page… print to pdf

:wink:

1 Like