|
jvcnacho -> RE: Radio buttons from database (2/13/2007 14:46:37)
|
This is how I saw it: List of organizations Org A Org B Org C in frame on the left. The user clicks on Org A which gives them the People associated with Org A in the frame on the right. The frame on the right would have a list: ( )PersonAa (*)PersonAb ( )PersonAc (Save Button) Where the PersonAb is the primary contact--having a radio button checked. If personAc were to become the primary contact, then the user would select that radio button and click save. This link in Org A would have AliasID, the id for the organization, so that the list of people associated with the that organization could be populated on the right. PeopleIDs belong to the set of all people who are assoicated with given organization. The primary contact is stored in the the tblPeople in a separate field in tblPeople as a Y/N value. The default primary contact could be any one of the people ID queried when the user selects an organization. I am stuck now where I can select the current primary contact for a given org, but I don't know how to generate the list of the other people that it could be for the user to choose from. quote:
ORIGINAL: rdouglass quote:
how would I give the user a choice of other people in that organization to make primary contact. I thought we were trying to pre-select the primary_contact? I didn't think we would pre-select, maybe that's a better way to do it. If we preselect how could I get the list of alternatives? I am talking about adding the PeopleID to the querystring on student.neric.org/test5 where it lists the organizations. Isn't that page displaying the query you're talking about? Yes however, PeopleID is only the possible Primary Contacts, PeopleID + Primary Contact="Y" makes a Primary Contact in the table Does that make sense so far? I put in an example to let you see how I'm approaching it, I'm not sure if I follow how you are. Does my example help you where I was going/coming from?
|
|
|
|