fantastique2233
fantastique2233
FFilament
Created by fantastique2233 on 8/13/2024 in #❓┊help
Excel Export from array
Using exporter to export data to Excel table and it works just fine. But I've a properties column (array) structured like that:
[
{'building': 'building name', 'building_number': '1' },
{'building': 'building name', 'building_number': '2' },
{'building': 'building name', 'building_number': '3' }
]
[
{'building': 'building name', 'building_number': '1' },
{'building': 'building name', 'building_number': '2' },
{'building': 'building name', 'building_number': '3' }
]
is there a way to export array to Excel table to get excel columns like so:
building name | building name
1 2
building name | building name
1 2
2 replies
FFilament
Created by fantastique2233 on 7/12/2024 in #❓┊help
How to get value of other TextEntry inside RepeatableEntry?
RepeatableEntry::make('properties')
->schema([
Grid::make(2)
->schema([
TextEntry::make('construction_id')
->formatStateUsing(fn (string $state): string => (Construction::find($state)?->name ?? 'Stage has been deleted'))
->inlineLabel()->label(false),
TextEntry::make('percent')
->inlineLabel()->label(false),
])
])
RepeatableEntry::make('properties')
->schema([
Grid::make(2)
->schema([
TextEntry::make('construction_id')
->formatStateUsing(fn (string $state): string => (Construction::find($state)?->name ?? 'Stage has been deleted'))
->inlineLabel()->label(false),
TextEntry::make('percent')
->inlineLabel()->label(false),
])
])
How can I check construction_id value within percent entry ?
9 replies
FFilament
Created by fantastique2233 on 5/8/2024 in #❓┊help
How to pass data from view to Resource TextInput?
Guys, need help! I have Resource with $form where custom view renders svg image with different clickable areas, I need to pass clicked svg path id from that view to $form TextInput, how can I do that?
20 replies