Main Content

refreshLinks

Refresh link resolved status in Safety Analysis Manager spreadsheets

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, point to the link icon 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 mySheet1 spreadsheet. the cursor points to the link icon in the first row, and a tool tip appears. The tooltip displays the link information, and indicates that the link relates to the third row in the mySheet2 spreadsheet.

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

refreshLinks(mySpreadsheet1)

Point to the link icon. 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 mySheet1 spreadsheet. the cursor points to the link icon in the first row, and a tool tip appears. The tooltip displays the link information, and indicates that the row links to mySheet2, but the link is unresolved.

Input Arguments

collapse all

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

Tips

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

Version History

Introduced in R2025a

See Also

Objects

Functions