Main Content

getReporterLinkTargetID

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

Since R2022a

    Description

    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.

    example

    Examples

    collapse all

    Access the link target ID for the reporter associated with a finder result object.

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

    import slreportgen.finder.*

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

    model_name = "vdp";
    load_system(model_name)
    finder = SignalFinder(model_name);
    results = find(finder);
    for result = results
        targetID = getReporterLinkTargetID(result)
    end
    targetID = 
    'mw_e70d3dd51565f6615ac67fccf68dad46'
    
    targetID = 
    'mw_7ed9957b04565844b8fe46f7a7d2aad9'
    

    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