GridPlus - I probably need a related action to update only the edited recs

Certified Senior Developer

I have GridPlus implemented nicely and does the basic editing and saving as it should, what a great plug in!

 

But... we have a requirement added to create a related record which would link the edited items to a known key value in a related table.

Since both the queryRule and gridsubmitchanges->editModel are kind of rigidly defined, I've been thinking of ways to accomplish adding the record to join the edited rows with the other table.

Can a related action apply to just the 'edits' / is there a way to pass that?  

I explored the possibility of a 'tempKey' in the queryRule's queryRecordType, but can't really insert that known key value there.  If I could just get the data into the record, then the editModel could do the additional writerecords & sync.

Is there some simple way to accomplish this without having to get heavy handed by maybe writing to another data store to be re-read in the editModel?  (so it would know "any records updated from this grid with these record keys must associate the stored key that I just re-read"?

  Discussion posts and replies are publicly visible

Parents Reply Children