Fetch fresh values for linked workbooks and save them in one undoable change.
It asks resolve for the current values of the links named in books (all
links when omitted), then saves them and recalculates the formulas that read
them, as Excel's "Update Values" does. Links whose resolver gives null or
fails keep their saved values.
SheetwriteError with code aborted when the grid is destroyed while resolve runs.
interface Grid {
readonly store: Store;
readonly actions: GridActions;
getRuntimeResourceSnapshot(
operation: RuntimeResourceOperation,
phase: RuntimeResourcePhase,
runtime?: RuntimeMemoryObservation,
): RuntimeResourceSnapshot;
getCommandState(command: GridCommandName): GridCommandState;
getFocusCellStyle(): CellStyle;
summarizeSelection(
signal?: AbortSignal,
): Promise<SelectionSummary | null>;
setActiveSheet(id: SheetId): void;
scrollToCell(addr: CellAddress): void;
// … 181 more lines — see the API reference
}interfaceGrid{readonlystore:Store;readonlyactions:GridActions;getRuntimeResourceSnapshot(operation:RuntimeResourceOperation,phase:RuntimeResourcePhase,runtime?:RuntimeMemoryObservation,):RuntimeResourceSnapshot;getCommandState(command:GridCommandName):GridCommandState;getFocusCellStyle():CellStyle;summarizeSelection(signal?:AbortSignal,):Promise<SelectionSummary|null>;setActiveSheet(id:SheetId):void;scrollToCell(addr:CellAddress):void;// … 181 more lines — see the API reference}interfaceGrid{readonlystore:Store;readonlyactions:GridActions;getRuntimeResourceSnapshot(operation:RuntimeResourceOperation,phase:RuntimeResourcePhase,runtime?:RuntimeMemoryObservation,):RuntimeResourceSnapshot;getCommandState(command:GridCommandName,):GridCommandState;getFocusCellStyle():CellStyle;summarizeSelection(signal?:AbortSignal,):Promise<SelectionSummary|null>;setActiveSheet(id:SheetId,):void;scrollToCell(// … 355 more lines — see the API reference}Imperative grid handle for document commands, events, rendering, and teardown.See alsocreateGrid, Grid.applyTransaction·ExampleAPI referencetype ExternalLinkResolver = (
request: ExternalLinkRequest,
) => Promise<ExternalLinkSheet[] | null>;typeExternalLinkResolver=(request:ExternalLinkRequest,)=>Promise<ExternalLinkSheet[]|null>;typeExternalLinkResolver=(request:ExternalLinkRequest,)=>Promise<ExternalLinkSheet[]|null>;Gives the current values of a linked workbook, as sheets with their cells, or null when the workbook is not available. A rejected promise counts as a failed update. The values replace all saved values of that link.API referenceinterface ExternalLinkUpdate {
readonly book: string;
readonly status: "updated" | "unavailable" | "failed";
readonly error?: SheetwriteError;
}interfaceExternalLinkUpdate{readonlybook:string;readonlystatus:"updated"|"unavailable"|"failed";readonlyerror?:SheetwriteError;}interfaceExternalLinkUpdate{readonlybook:string;readonlystatus:|"updated"|"unavailable"|"failed";readonlyerror?:SheetwriteError;}The result of updating one link.API reference