Well Ive played around back and forth with this and something isnt quite right. Not sure if I did something. So finally I just stepped back and went to the standard dataface code..
Even stripped out all of my extra fields so I had an ID field, PID and CID and thats it...(with a copy of course) emptied the table and tried to add existing records...as a test I used my S_USER table and my D_TASK table. If I add new..it works fine...so here is the code in relationships.ini:
[D_TASK]
action:label = Children
__sql__ = "
SELECT * FROM R_save, D_TASK
WHERE R_save.PNAME='D_TASK'
AND R_save.CNAME='D_TASK'
AND R_save.PID='$ID'
AND D_TASK.ID = R_save.CID
ORDER BY R_save.OID, D_TASK.DESCRIPTION"
[S_USER]
S_USER.ID = R_.CID
R_.PID = "$ID"
As you can see the one for S_USER is just plain dataface code..no sql at all. Both of the ones above work fine in add new..but fail in add existing.
Not sure if anyone else is having this problem and it is a minor bug..or it is just me..
THank you kindly .