Hi everyone
i am testing the Sharepoint Datagrid. there is a view hyperlink on every row of the grid. hot so customize which form will be opened after klicking this link?
thank you for help in advance.
Sincerely Rene
Hi Rene,
You do not need to customize anything. Once you click on the view link, the default SharePoint record form will be opened, as you have used the link type column for opening the View Form from an ordinary SharePoint list.
Hi Kiril
thank you for the fast answer. i've seen the standard form opens. but how can i customize this? if i want to open a different form or view.
my goal is, if i klick on the view link, to open a form, where i can show further details, mybe add some properties and let the user add it to a shopping cart for example.
thank you for help
best regards Rene
In order to achieve the desired result can try using a calculated type column in your SharePoint list (the one you are using for a data source in the Grid).
For example, using the following formula would generate a HTML link inside the Grid column:
=CONCATENATE("<DIV><a href='","">mysharepointwebapp/default.aspx in new window?]=TRUE,"' target='_blank' ","'"),">",Title,"</a></DIV>")
It would create a link:
mysharepointwebapp/default.aspx
where <TitleValue> is the value in the Title column for the respective record (for example, you might want to pass product name).
It would check if the column named "Open in new window?" has a value true (we consider that that column is a Yes/No type) and if it is, the browser would open the link in a new window.