07-06-2012 02:31 PM
How do you configure the hookCellContent function in a report to show the values (metaAttributes) on a link between two objects in stead of showing the check mark in a cell.
Eg. replacing the check mark in a report showing the CRUD value between Entities and Applications/IT Services.
Solved! Go to Solution.
12-06-2012 11:11 AM - edited 12-06-2012 11:12 AM
Here is an example :
Function hookCellContent (oRoot, oAnalysis, omoColumObject, omcRowObject, bFound, sStandardCellContent) If bFound Then Dim omoEntity, omoApplication Set omoEntity = omcRowObject.Item(1) Set omoApplication = omoEntity.GetCollection("CRUD Element").Item(omoColumObject) hookCellContent = omoApplication.GetProp("CRUD Value") Else hookCellContent = sStandardCellContent End If End Function
You may need to adapt it to your problem.
Gregory
08-06-2012 09:10 PM
Hi, yes I know that part. It was the code I was interessted in 😞
08-06-2012 05:16 PM
Hi,
If you look in the Macro in your report template, you will find these lines :
' TODO: To replace the cell content by a user-defined content, remove the comment below.
' If the comment is removed, the macro must implement the hookCellContent function.
' Set oMatrixCheckmark.hookCellContentComponent = MySelf
uncomment the 3rd line then look for the "hookCellContent" function
you will need to add some code to this function to return the CRUD value.
Gregory
07-06-2012 09:38 PM - last edited on 08-06-2012 04:26 PM by François
Basically I just want to replace the check mark in the cell with the CRUD value.
07-06-2012 03:59 PM - edited 07-06-2012 05:09 PM
Hello,
Thank you for your post.
Can you join to your topic screenshot for a better understanding.
Waiting for your return.
See you.