If you have ever tried to create a field link in a grid that loads another app, you will notice that if you are using that grid inside a container, the link loads the linked app in the container.
This my be fine in some instances, but in other instances you may want to load the linked app on the same page. You will need to use Javascript instead of sc_link()
-
Create a new text field in the grid: link_field
-
Grid, onRecord Event:
{link_field} = "<a href="javascript:void(0);" onclick="parent.location='../form_edit/form_edit.php?id={id}'">Edit</a>";
You should now have a link field in the grid (in a container) that will load the edit form in the same page (parent).
Regards,
Scott.