Save L1 unsaved contents when L2 web page view opened
We use custom web page views to perform CRUD operations on L2 records. We also have an HTML grid that shows those L2 records on the L1. There's a platform limitation with this approach.
Suppose I have three fields on my L1:
1: Title
2: WPV (allowing edit access to my L2s)
3: HTML display of L2s for everyone else who isn't clicking on the WPV and for PDF output
If user enters title, clicks on WPV, enters L2s, saves L2s wpv, then submits, the HTML display doesn't show the grid (because a save draft didn't occur to refresh that panel prior to submission).
We 'fixed' this by having L2 wpv save trigger an L1 save draft. The current problem we have now is L2 save overrides any unsaved changes on L1.
A few ideas:
- enable WPVs to save their parent record (L1 in cases of L2 WPVs) when WPV opened
-have WPV save also save any form.getStr() attributes on page
