SELECT *; FROM property!propnum ; WHERE SUBSTRC(groupid,1,2) = "CF" and; contactid in (select memoid from property!pocontact)>I have used database containers and free tables for most of my development. But now I have a project that needs views. I don't get there behavior I think. This is the error I get:"Cannot insert an empty row from a view into its base table(s)." I also get "uniqueness is violated" when I do table update. My view is described below and I have checked "send sql updates" and update using "sql update".
>* my view >SELECT *; > FROM property!propnum INNER JOIN property!pocontact ; > ON Propnum.contactid = Pocontact.memoid; > WHERE SUBSTRC(Propnum.groupid,1,2) = "CF" > >>
>WITH ThisForm > LOCAL nNew_Property_Number,nGrpIdVal,lcFocus > nNew_Property_Number = nextnum('propnum') && stored proc for next id > .aRemovePN(1) = nNew_Property_Number > > IF .pgPropTypes.ActivePage = 2 > nGrpIdVal = 'PC'+ALLTRIM(STR(nNew_Property_Number)) > INSERT INTO (.p_CurDbf) (nproperty,groupid) VALUES nNew_Property_Number,nGrpIdVal) > lcFocus = ".txtOrgCode" > ELSE > INSERT INTO (.p_CurDbf) (nproperty) VALUES (nNew_Property_Number) > lcFocus = ".txtGroupId" > ENDIF > .Refresh > &lcFocus..SetFocus >ENDWITH >