I have a report that displays the adaxes logs for a specific scheduled task initator. One of my report-specific columns runs the following script:

$logRecord = $Context.ReportItem.LogRecord
if ($logRecord -ne $NULL)
{
    $executionLog = $logRecord.GetExecutionLog()
    $firstError = $executionLog.FirstErrorEntry
    if ($firstError -ne $NULL)
    {
         <# Todo if $first error, show icon indicating error #>
    }    
}

I currently have the data type set to text. Is there any way in the PowerShell to access the icon from index 30 or something equivalnt to that? My goal is to have some sort visual when an error is thrown in the execution log. image.png

ago by (180 points)

1 Answer

ago by (308k points)
0 votes

Hello,

Unfortunately, there is no such possibility. An icon is something that belongs to the entire report item and it is included into the Name column. To achieve the desired, you can update the Adaxes log built-in report to only include log records for the operations performed by a specific scheduled task. By default, the report is located in container Reports\All Reports\Miscellaneous\Logging.

ago by (180 points)
0

That make sense. Thank you. Any chance the report supports passing back basic html into the $Context.Value of a text type column? Otherwise I guess I will end up just going with $Context.Value = "(E)"

ago by (308k points)
0

Hello,

What exactly do you mean? Please, describe the desired behavior in al the possible details with live examples.

ago by (180 points)
0

Sure, sorry abou that. The output of my report is this currently. image.png

The value calculation for the report-specific column named icon is this:

$logRecord = $Context.ReportItem.LogRecord
if ($logRecord -ne $NULL)
{
    $executionLog = $logRecord.GetExecutionLog()
    $firstError = $executionLog.FirstErrorEntry
    if ($firstError -ne $NULL)
    {
       $Context.Value = "(E)"
    }    
}

I'm just looking to see if I can make the value currently set is (E) more visual. Would the report allow me to pass html back in the context value and display that?

ago by (308k points)
0

Hello,

Thank you for clarifying. Unfortunately, there is no such possibility. However, thank you for the suggestion. We forwarded it to the corresponding department for consideration.

Related questions

Hi, I try to make a report for our SAM to show all users with a specific license. But I fail to even find anything. I tried, among many ... .DirectorySearcher.AppendFilter("(adm-O365AccountLicenses=POWER_BI_STANDARD)") But I get nothing. Please advice.

asked May 20, 2021 by KristofferJ (80 points)
0 votes
1 answer

We are replacing our Namescape rDirectory product with Adaxes because of the very flexible automation components. I've been able to replicate some of the pages previously ... vast majority of our users, that would function as the default company directory.

asked Aug 5, 2022 by MRBruce (110 points)
0 votes
1 answer

I want to add a custom column in a report that displays members of a group that shows the age of the user account in days. Is that possible?

asked Oct 23, 2024 by msheppard (880 points)
0 votes
1 answer

Adaxes version is 2018.2. I have build a custom report, and I don't want the 'Name' column with the pictures to appear in it. But it seem to be mandatory, it is greyed ... . Is there a way to remove / hide / or change the mandatory attribute or column ? Thanks

asked Jan 9, 2020 by Isabelle (50 points)
0 votes
1 answer

Hi: I am trying to create a business rule that will stop a value change based on the existing value. For example, if the telephonenumber is 1234 for a group and has to ... the value it uses is the incoming value of the change, not the existing value. Thanks!

asked Jun 3, 2022 by crobitaille (80 points)
0 votes
1 answer