I've got three attached grids on a screen and I cannot figure out how to delete records in the grid once a record is created. The grids only have one field each. One of the grids has a Text field, the other grids have Dropdowns. But as I say, I cannot see an Edit button. I assume I need an edit button to delete records? I do have the checkbox for the records in the grid, but I cannot figure out how to make any action based on checked items.
Method automatically adds the actions when you use Delete as the caption.
As far as checkboxes go on a grid, the Loop through grid action has a property to loop through checked rows.
Thanks. I can delete now.
However, when I create the field and choose to allow editing of records in the grid, how do I then edit the fields? I pick Edit... to be the link, and I do not see that anywhere.
If you set the grid to be editable you should be able to just click in a field and edit it. If you are talking about Edit... button found on some grid rows those are actually manually created and normally have a Show screen in popup action in them that will display a screen that for editing that record (You would need to create this screen).
This is an old thread, I know, but I tried your method of adding the Delete link, but it doesn't automatically add the actions needed. It's just an empty hyperlink when I click it. Do I have to add the actions myself?
Hi there Spencer,
Are you able to show us a screenshot of your actions on the Grid? and the field list?
Adding a Link to a Grid in Method:Classic with the caption 'Delete' should add 2 actions to that link, similar to the following;
Hi Ben, thanks for the reply. Here's a screenshot of what I see when I add the Delete link:
Additionally, I then tried to add my own actions using this screenshot:
But I get an error when I try to click the link. It says it cannot locate the Record. Can you A.) confirm that I'm supposed to be getting default actions for the Delete link, and B.) if not, confirm that my "Delete Record From Table" function is filled out correctly?
If it matters, the Grid i'm editing is not the main table associated with the screen, it's a new Journal Entry table I created that I've added to the Invoice screen.
I figured out the problem with my actions. I needed to select "Value from Screen" not "Value from Row". I guess the Value from Row is just for the screen's primary table, is my guess? But anyways, I changed it to below, and it works great