Main Content

refreshLinks

Refresh link resolved status in Safety Analysis Manager documents

Since R2025a

Description

refreshLinks(spreadsheet) refreshes the resolved status of links in the specified Safety Analysis Manager spreadsheet.

example

Examples

collapse all

Create two spreadsheets.

mySpreadsheet1 = safetyAnalysisMgr.newSpreadsheet;
mySpreadsheet2 = safetyAnalysisMgr.newSpreadsheet;

Add two rows and two columns to each sheet.

addRow(mySpreadsheet1,Count=2)
addRow(mySpreadsheet2,Count=2)
addColumn(mySpreadsheet1,Count=2)
addColumn(mySpreadsheet2,Count=2)

Save the spreadsheets.

save(mySpreadsheet1,"mySpreadsheet1.mldatx")
save(mySpreadsheet2,"mySpreadsheet2.mldatx")

Get the first row from mySpreadsheet1 and get the third row from mySpreadsheet2.

myRow1 = getRow(mySpreadsheet1,1);
myRow2 = getRow(mySpreadsheet2,3);

Link the rows by using the slreq.createLink (Requirements Toolbox) function.

link1 = slreq.createLink(myRow1,myRow2);

Delete the third row from mySpreadsheet2.

deleteRow(mySpreadsheet2,3);

Open the Safety Analysis Manager.

safetyAnalysisManager

In the mySheet1 tab, in the Properties pane, expand the Links section to see the resolved status. The spreadsheet indicates that the link is resolved by displaying a spreadsheet row badge and the linked row.

The Safety Analysis Manager displays the Links section in the mySpreadSheet1 spreadsheet. The section displays the link information, and indicates that the link relates to the third row in the mySpreadSheet2 spreadsheet.

Update the resolved link status in the table to reflect the changes.

refreshLinks(mySpreadsheet1)

Inspect the Links section. The spreadsheet now indicates that the link is unresolved by displaying a warning icon and the row number is not displayed.

The Safety Analysis Manager displays the Links section in the mySpreadSheet1 spreadsheet. The section displays the link information, and indicates that the link is not resolved.

Input Arguments

collapse all

Spreadsheet in the Safety Analysis Manager, specified as a Spreadsheet object.

Tips

  • To refresh the link resolved status in Safety Analysis Manager documents interactively, point to the link icon or click the linked element (since R2026a). Alternatively, click Refresh Links.

  • To configure link properties, you must have a Requirements Toolbox™ license.

Version History

Introduced in R2025a

See Also

Objects

Functions