You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a case where I only want to import 1 sheet that have many references to other sheets.
Let's say
A: worksheet i want to import
B-E: worksheets that being referred by A
The docs says that sheet A should implement WithCalculatedFormulas while sheet B, C, D, E should implement HasReferencesToOtherSheets
That means, in the master import class which implements WithMultipleSheets, I have to define all of these sheets while previously I only define sheet A.
Before:
public function sheets(): array
{
return [
'Sheet A' => new ImportSheetA
];
}
After:
public function sheets(): array
{
return [
'Sheet A' => new ImportSheetA,
'Sheet B' => new ImportSheetB,
'Sheet C' => new ImportSheetC,
'Sheet D' => new ImportSheetD,
'Sheet E' => new ImportSheetE,
];
}
Is this supposed to work like this?
I feel that the HasReferencesToOtherSheets should be work the other way around, anyone feel the same?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have a case where I only want to import 1 sheet that have many references to other sheets.
Let's say
A: worksheet i want to import
B-E: worksheets that being referred by A
The docs says that sheet A should implement
WithCalculatedFormulas
while sheet B, C, D, E should implementHasReferencesToOtherSheets
That means, in the master import class which implements
WithMultipleSheets
, I have to define all of these sheets while previously I only define sheet A.Before:
After:
Is this supposed to work like this?
I feel that the
HasReferencesToOtherSheets
should be work the other way around, anyone feel the same?Cheers
Beta Was this translation helpful? Give feedback.
All reactions