hi,
thanks for your quick answer. our current database is based on ms sql so i'll have to deal with it in my servoy project (and at first in my tests), too. i think the cause of my problems may be a wrong configuration of a n-m relation. here is what i did:
- there are 3 tables: company, person and personrole
- personrole contains in general of an id, company_id and person_id
- now i wanted to display all persons that are assigned to a company in the company form
- servoy got the relation from company to personrole and from person to personrole with the auto function from my database
- now i placed a tab in the company window to display a personrole form over the company_to_personrole relation
- in the personrole form i placed a tab to show a person form with the person data; for this i had to add a relation from personrole to person with person_id as primary key and the id of my persons table as foreign key.
now if i view the company from i cannot edit the fields reached through two tabs. is this right? i'd like to edit them!
if i open the personrole form and browse through the persons, sometimes i can edit them, sometimes i can't. after editing one item with every click some person items change their place and sometimes appear two times. i think the reason is the relation from personrole to persons because here i cpecified a field as primany key that isn't really unique... but how can i make this better?
i hope for help, because i like servoy and i like the concept of it
cu
tr
p.s. i hope this is the right forum for stupid newbie questions