<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>27 Jan 2016 21:32:24 Z</lastBuildDate><pubDate>27 Jan 2016 21:32:24 Z</pubDate><description>I have two tables that are linked with a child / parent relationship using the parent id field in the table analysis.&#13;
&#13;
Index Books&#13;
  |__Index Book Group&#13;
&#13;
Browsing the index books - pressing "Modify" button on an Index Book opens up linked Index Book Groups &#13;
&#13;
[code:wl]&#13;
Open(WIN_IndexGroups_Browse, IndexBooks.IndexBooksID)&#13;
[/code]&#13;
&#13;
Inserting a new Index Book Group uses this code to save the new Index Book Group with the parent ID.&#13;
&#13;
[code:wl]&#13;
ScreenToFile()&#13;
&#13;
// If it's a new record&#13;
IF IndexGroups..NewRecord = True THEN&#13;
	IndexGroups.IndexBooksID = WIN_IndexGroups_Browse.pIndexBooksID&#13;
	HAdd(IndexGroups)&#13;
ELSE&#13;
	HModify(IndexGroups)&#13;
END&#13;
&#13;
// Return value of the window&#13;
MyWindow..ReturnedValue = True&#13;
[/code]&#13;
&#13;
This feels dirty to me.  Am I missing something - is there a better way to do this by specifying new edit records should inherit linked parent record fields?</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56093-there-better-way-saved-linked-information-than-window/read.awp</link><title>Is there a better way to saved linked information than window procedural variable?</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster></channel></rss>
