Main Content

getReporterLinkTargetID

Get link target ID of reporter object associated with the finder result object

    Description

    example

    targetID = getReporterLinkTargetID(resultObject) returns the link target ID of the reporter associated with the finder result object, resultObject. Use the link target ID to add a hyperlink to the reporter from any part of the report.

    Examples

    collapse all

    This example shows how to access the link target ID for the reporter associated to a finder result object.

    Import the required packages to avoid using long, fully qualified class names.

    import slreportgen.finder.*

    Load the model and search for signals in the model. For each result object, print the reporter link target ID.

    model_name = "slrgex_vdp";
    load_system(model_name)
    finder = SignalFinder(model_name);
    results = find(finder);
    for result = results
        targetID = getReporterLinkTargetID(result)
    end
    targetID =
    
        'mw_9cd5fef8740098932ba6700fb427d044'
    
    
    targetID =
    
        'mw_cd36af0a7b02521d1213fc98b4af862b'

    Use these link target IDs to reference the reporters in your report.

    Input Arguments

    collapse all

    Result object for which to find reporter target link ID, specified as an object of a finder result class.

    Output Arguments

    collapse all

    Link target ID of the reporter associated with the finder result object, specified as a string scalar.

    Version History

    Introduced in R2022a