<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>22 Feb 2018 07:44:00 Z</lastBuildDate><pubDate>16 Feb 2018 09:10:00 Z</pubDate><description>Hello,&#13;
&#13;
[WD22] [ using postgres now, should work with any database ] [ multi - tenant ]&#13;
&#13;
I need to delete a set of records which is having dependent child records also in the same file. Say&#13;
&#13;
TenantInd Code Name ParentCode&#13;
100 101 Name - 1 Null&#13;
100 102 Child - 11 101&#13;
100 103 Child - 111 102&#13;
100 104 Child - 1111 103&#13;
....&#13;
&#13;
I need to delete records pertaining to TenantID = 100 only. Since this records are having FK integrity, it need to be deleted from the last child to first parent [ bottom up approach ? ].&#13;
&#13;
Is there any simple way of deleting those records in Windev, that I need not go through writing cursors or something similar ?&#13;
&#13;
Happiness Always&#13;
BKR Sivaprakash</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant/read.awp</link><title>[WD22] Deleting all child [dependent] records in a multi-tenant file</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant-64695/read.awp</comments><pubDate>22 Feb 2018 07:44:00 Z</pubDate><description>Yes Yogi Yang, that's what I'm planning to do. I'll try that out and let u know.&#13;
&#13;
Happiness Always&#13;
BKR Sivaprakash</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant-64695/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant-64695/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant/read.awp">[WD22] Deleting all child [dependent] records in a multi-tenant file</source><title>Re: [WD22] Deleting all child [dependent] records in a multi-tenant file</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant-64647/read.awp</comments><pubDate>21 Feb 2018 06:08:00 Z</pubDate><description>Thanks Darren Farmer. This is what exactly I've. Need to study Treeview concept to change it to delete records.&#13;
&#13;
Thanks Fabric…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant-64647/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant-64647/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant/read.awp">[WD22] Deleting all child [dependent] records in a multi-tenant file</source><title>Re: [WD22] Deleting all child [dependent] records in a multi-tenant file</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant-64646/read.awp</comments><pubDate>20 Feb 2018 19:08:00 Z</pubDate><description>Hi&#13;
&#13;
this is how I manage this kind of problem:&#13;
I put the first record ID in an array&#13;
I start a loop on the array&#13;
for each l…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant-64646/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant-64646/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant/read.awp">[WD22] Deleting all child [dependent] records in a multi-tenant file</source><title>Re: [WD22] Deleting all child [dependent] records in a multi-tenant file</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant-64638/read.awp</comments><pubDate>20 Feb 2018 16:56:00 Z</pubDate><description>Hi,&#13;
&#13;
A while ago, Carlo Hermus posted this on the WinDev Solutions section of this forum. I found it very useful for traversin…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant-64638/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant-64638/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant/read.awp">[WD22] Deleting all child [dependent] records in a multi-tenant file</source><title>Re: [WD22] Deleting all child [dependent] records in a multi-tenant file</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant-64633/read.awp</comments><pubDate>20 Feb 2018 14:59:00 Z</pubDate><description>Hi&#13;
&#13;
I would go by just foillowing the path what needs to be done.&#13;
&#13;
Find the last recoord. ( hreadseekfirst(......)&#13;
Find it …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant-64633/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant-64633/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant/read.awp">[WD22] Deleting all child [dependent] records in a multi-tenant file</source><title>Re: [WD22] Deleting all child [dependent] records in a multi-tenant file</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant-64632/read.awp</comments><pubDate>20 Feb 2018 14:01:00 Z</pubDate><description>Ruben,&#13;
&#13;
Yes ParentCode fields could be null. That's for records that have no parents. But those records can have child(ren), a…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant-64632/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant-64632/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant/read.awp">[WD22] Deleting all child [dependent] records in a multi-tenant file</source><title>Re: [WD22] Deleting all child [dependent] records in a multi-tenant file</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant-64631/read.awp</comments><pubDate>20 Feb 2018 12:25:00 Z</pubDate><description>Hi.&#13;
&#13;
I have seen that the ParentCode field can have Null values, so I think you can do it in two steps:&#13;
&#13;
1) Assign the Null …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant-64631/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant-64631/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant/read.awp">[WD22] Deleting all child [dependent] records in a multi-tenant file</source><title>Re: [WD22] Deleting all child [dependent] records in a multi-tenant file</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant-64630/read.awp</comments><pubDate>20 Feb 2018 08:56:00 Z</pubDate><description>Hello Sivaprakash,&#13;
&#13;
If I understand it right:&#13;
&#13;
Browse the master file. Make a query on the second file and if HnbRec(subFile…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant-64630/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant-64630/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant/read.awp">[WD22] Deleting all child [dependent] records in a multi-tenant file</source><title>Re: [WD22] Deleting all child [dependent] records in a multi-tenant file</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant-64626/read.awp</comments><pubDate>20 Feb 2018 07:49:00 Z</pubDate><description>Thanks AI.&#13;
&#13;
Your logic will work only if only one level of child is there. Say if Code 103 got its own child, say 107, deletin…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant-64626/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant-64626/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant/read.awp">[WD22] Deleting all child [dependent] records in a multi-tenant file</source><title>Re: [WD22] Deleting all child [dependent] records in a multi-tenant file</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant-64594/read.awp</comments><pubDate>17 Feb 2018 19:42:00 Z</pubDate><description>Hello Sivaprakash&#13;
&#13;
You could set a filter on the child files on the parent key and then HreadLast and use HreadPrevious to wor…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant-64594/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant-64594/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant/read.awp">[WD22] Deleting all child [dependent] records in a multi-tenant file</source><title>Re: [WD22] Deleting all child [dependent] records in a multi-tenant file</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant-64591/read.awp</comments><pubDate>17 Feb 2018 12:34:00 Z</pubDate><description>Paulo Oliveria,&#13;
&#13;
I need to delete a set of records which is having dependent child records also in the same file.&#13;
&#13;
In the ab…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant-64591/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant-64591/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant/read.awp">[WD22] Deleting all child [dependent] records in a multi-tenant file</source><title>Re: [WD22] Deleting all child [dependent] records in a multi-tenant file</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant-64588/read.awp</comments><pubDate>16 Feb 2018 14:44:00 Z</pubDate><description>If you use HF and the referential integrity is defined in the Analysis to delete the record in the member file just delete the r…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant-64588/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant-64588/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64579-wd22-deleting-all-child-dependent-records-multi-tenant/read.awp">[WD22] Deleting all child [dependent] records in a multi-tenant file</source><title>Re: [WD22] Deleting all child [dependent] records in a multi-tenant file</title></item></channel></rss>
