I am a newbie in SharePoint. I have a SharePoint UI Fabric react detail list in one of my page, and I am creating a different page which will contains other web parts.
Consider that the first page contains only the primary data and when the user clicks on the first column link from any rows in the detaillist, I need to open the second page with all the other detailed information.
But to do so, I wanted some of the data to be available in the second page so that I can query and get the needed data.
- Have you ever done anything similar to this.
- What would be the best approach to do this?
- Is it really possible to pass the query string from a link?
Below is my first page detail list configuration.
export class ResultList extends React.Component<IResultListProps, {}> {
constructor(props: IResultListProps) {
super(props);
}
public render(): React.ReactElement<IResultListProps> {
return (
<DetailsList items={this.props.items} columns={this.getColumns()} />
);
}
private getColumns(): IColumn[] {
return [
{
key: 'name',
name: 'name',
fieldName: 'name',
minWidth: 100,
maxWidth: 120,
isResizable: true,
onRender: (item) => <a target="_blank" href="a link to the second page">{item.name}</a>
}
];
}
}