![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm having trouble with a layout that inserts certain lookedup information for a client. When a record is created lookedup info is auto inserted into a "Show All Clients" portal and into certain fields on the layout. These fields are always filled with info from the first client record. The layout also displays a portal for lookedup info pertaining to another unrelated layout, but there are no certain specific fields that are filled-in for this 2nd portal. If there are no records, none of the information is displayed for either of these portals (even the unrelated portal) or in the specific fields that hold the lookedup client info. I had such a hellofa time figuring out how to even get relationship/lookedup info to work that 1) I'm reluctant to screw with it ("if ain't broke, don't fix it") and 2) I'm not really certain what I based the lookup info on. I used an indexed field named "All" for both the client and the 2nd unrelated portal, so I think this is what the lookups are based on. The problem is I need to be able to have the specific fields on the layout show the info for a specific client that is typed in manually (by client name or street address), not just the 1st client that the info is auto-entered for when a record is created. I've tried typing in the client name and/or the address and doing a relookup, but that doesn't work. I hope this all makes sense and as always, I would appreciate any help anyone in the group can provide, just please be as specific as possible with your solutions as I'm very new to FM/FMDev and this project has to be completed by early morning, so I won't have time to try to figure out exactly what you meant. Thanks to all who take the time to help. -- ================================ Information Is Read By People... Not computers! Knowledge. The Last American Bargain. ================================ |
#3
| |||
| |||
|
|
JD wrote: I'm having trouble with a layout that inserts certain lookedup information for a client. When a record is created lookedup info is auto inserted into a "Show All Clients" portal and into certain fields on the layout. These fields are always filled with info from the first client record. The layout also displays a portal for lookedup info pertaining to another unrelated layout, but there are no certain specific fields that are filled-in for this 2nd portal. If there are no records, none of the information is displayed for either of these portals (even the unrelated portal) or in the specific fields that hold the lookedup client info. I had such a hellofa time figuring out how to even get relationship/lookedup info to work that 1) I'm reluctant to screw with it ("if ain't broke, don't fix it") and 2) I'm not really certain what I based the lookup info on. I used an indexed field named "All" for both the client and the 2nd unrelated portal, so I think this is what the lookups are based on. The problem is I need to be able to have the specific fields on the layout show the info for a specific client that is typed in manually (by client name or street address), not just the 1st client that the info is auto-entered for when a record is created. I've tried typing in the client name and/or the address and doing a relookup, but that doesn't work. I hope this all makes sense and as always, I would appreciate any help anyone in the group can provide, just please be as specific as possible with your solutions as I'm very new to FM/FMDev and this project has to be completed by early morning, so I won't have time to try to figure out exactly what you meant. Thanks to all who take the time to help. -- ================================ Information Is Read By People... Not computers! Knowledge. The Last American Bargain. ================================ " Information is not knowledge, Knowledge is not Wisdom" Frank Zappa JD, I have a feeling your use of the term 'look-up' may not be what FM defines as a lookup. It is unclear what exactly is happening, and what you want to happen when a new record is created. Your 'show all clients portal, if you want a portal list of all clients, usea _constant:;_constant rel. Make a calculation field (number result) in both files, with a calc result 1, and index them. Create a rel and portal... I'm hoping you are using a Client_ID field, this is a unique serial (auto enter C000001 increment 1) and should be thought MANDATORY, If you are trying to use names for your rels; make the change. Grab the client ID from the constant portal, and add it to your new record (Field Client_ID), then you can use that to create rels to the subsiduary tables of client info, which also contain Client_ID fields, and use the rel(s) for lookups etc. what file/purpose is the new record? Chris Brown Neurosurgery University of Adelaide |
#4
| |||
| |||
|
|
Chris, I really don't understand about 90% of what you said, but I do appreciate the effort. What I did was create a rel from a table named "Call Console" to a table named "Clients." I based this rel on an indexed field in both tables named "All." I then added the fields that I wanted to be auto-populated with info from "Clients" and defined them as lookups in the "Call Console" table. Now when I create a record in the "Call Console" layout these fields are auto-populated with the info specific to those fields and a complete list of all Clients iis displayed in the "Show All Clients" portal AND the appropriate info is also displayed in a 2nd portal that has nothing to do with what I've said so far. I'm not sure if I defined this rel based on the ClientID field in the Clients table or on the auto-generated "EventNum" field in the "Call Console" table. If no records have been input in the "Call Console" layout then nothing shows up in the "Show All Clients" portal or the specific auto-populated fields on the layout. Also, nothing iis displayed for the 2nd portal that is also on the "Call Console" layout. This 2nd portal has nothing to do with the "Show All Clients" portal and there are no specific fields on the layout that are auto-populated with info pertaining to this unrelated portal. Once a record is entered in the "Call Console" layout everything seems to work as it should. The "Show All Clients" portal shows all clients that have been entered from the "Clients" layout and the specific lookup fields are auto-populated like they're supposed to be. The 2nd unrelated portal THEN also displays the info that has been entered previously for it from its appropriate layout. The problem is, once a record is created the specific fields are auto-populated with info for the first client that was entered. Thats fine, but I need to be able to edit this info by typing in either the client name or address into one of these auto-populated fields and have the ENTIRE record update itsself to show info (in the specific fields setup for it) that relate to whatever client name or address that was typed. I guess what I'm asking here, is how do I setup the "Call Console" layout to auto-populate the specific fields with info specific to THAT client name or address? This info would be drawn from records that have been entered in the Clients layout. I hope this makes what I was trying to say clearer and that someone has a fairly simple and understandable way that this can be done. I don't care about whats already happening. As long as the "Show All Clients" portal and the 2nd portal show what their supposed to, that's fine. But I need to have those specific auto-populated fields update the record to show the info for whatever client name or address is entered. Sorry to be so long winded with this, but I don't know any other way to try to make clear what's happening and what I need to happen. "Chris Brown" <cbrown (AT) medicine (DOT) adelaide.edu.au> wrote in message news:4175b622$1 (AT) yorrell (DOT) saard.net... JD wrote: I'm having trouble with a layout that inserts certain lookedup information for a client. When a record is created lookedup info is auto inserted into a "Show All Clients" portal and into certain fields on the layout. These fields are always filled with info from the first client record. The layout also displays a portal for lookedup info pertaining to another unrelated layout, but there are no certain specific fields that are filled-in for this 2nd portal. If there are no records, none of the information is displayed for either of these portals (even the unrelated portal) or in the specific fields that hold the lookedup client info. I had such a hellofa time figuring out how to even get relationship/lookedup info to work that 1) I'm reluctant to screw with it ("if ain't broke, don't fix it") and 2) I'm not really certain what I based the lookup info on. I used an indexed field named "All" for both the client and the 2nd unrelated portal, so I think this is what the lookups are based on. The problem is I need to be able to have the specific fields on the layout show the info for a specific client that is typed in manually (by client name or street address), not just the 1st client that the info is auto-entered for when a record is created. I've tried typing in the client name and/or the address and doing a relookup, but that doesn't work. I hope this all makes sense and as always, I would appreciate any help anyone in the group can provide, just please be as specific as possible with your solutions as I'm very new to FM/FMDev and this project has to be completed by early morning, so I won't have time to try to figure out exactly what you meant. Thanks to all who take the time to help. -- ================================ Information Is Read By People... Not computers! Knowledge. The Last American Bargain. ================================ " Information is not knowledge, Knowledge is not Wisdom" Frank Zappa JD, I have a feeling your use of the term 'look-up' may not be what FM defines as a lookup. It is unclear what exactly is happening, and what you want to happen when a new record is created. Your 'show all clients portal, if you want a portal list of all clients, usea _constant:;_constant rel. Make a calculation field (number result) in both files, with a calc result 1, and index them. Create a rel and portal... I'm hoping you are using a Client_ID field, this is a unique serial (auto enter C000001 increment 1) and should be thought MANDATORY, If you are trying to use names for your rels; make the change. Grab the client ID from the constant portal, and add it to your new record (Field Client_ID), then you can use that to create rels to the subsiduary tables of client info, which also contain Client_ID fields, and use the rel(s) for lookups etc. what file/purpose is the new record? Chris Brown Neurosurgery University of Adelaide |
#5
| |||
| |||
|
|
ok JD, lets try this bit: The problem is, once a record is created the specific fields are auto-populated with info for the first client that was entered. Thats fine, but I need to be able to edit this info by typing in either the client name or address into one of these auto-populated fields and have the ENTIRE record update itsself to show info (in the specific fields setup for it) that relate to whatever client name or address that was typed. I guess what I'm asking here, is how do I setup the "Call Console" layout to auto-populate the specific fields with info specific to THAT client name or address? This info would be drawn from records that have been entered in the Clients layout. you need to tell me what version of FM you are using. You have files: Call Console, and Clients Clients has Cliet_ID field, and client details such as address What you are trying to do in Call Console, in a new (call) record is type in part/all of either the client name or client address, and have 'info specific to THAT client name or address' enter into the Call Console record. Typing in a name or part of address is a method referred to as 'Clairvoyance' or type-ahead in FM speak. It is far easier in FM7 than FM6, but if you are new to FM, it will take some application. We can achieve either, but I need to know your FM version. There may be simpler ways to achieve the same end, depending a bit on how many clients you have. I use the clairvoyant approach in FM7 in several solutions, for patient names, getting post codes from areas, areas from post codes... What you need to capture, in order to accurately pull in the target data is the Client_ID. The name or address is purely an means of getting at the right Client_ID. Consider this mantra. regards Chris JD wrote: Chris, I really don't understand about 90% of what you said, but I do appreciate the effort. What I did was create a rel from a table named "Call Console" to a table named "Clients." I based this rel on an indexed field in both tables named "All." I then added the fields that I wanted to be auto-populated with info from "Clients" and defined them as lookups in the "Call Console" table. Now when I create a record in the "Call Console" layout these fields are auto-populated with the info specific to those fields and a complete list of all Clients iis displayed in the "Show All Clients" portal AND the appropriate info is also displayed in a 2nd portal that has nothing to do with what I've said so far. I'm not sure if I defined this rel based on the ClientID field in the Clients table or on the auto-generated "EventNum" field in the "Call Console" table. If no records have been input in the "Call Console" layout then nothing shows up in the "Show All Clients" portal or the specific auto-populated fields on the layout. Also, nothing iis displayed for the 2nd portal that is also on the "Call Console" layout. This 2nd portal has nothing to do with the "Show All Clients" portal and there are no specific fields on the layout that are auto-populated with info pertaining to this unrelated portal. Once a record is entered in the "Call Console" layout everything seems to work as it should. The "Show All Clients" portal shows all clients that have been entered from the "Clients" layout and the specific lookup fields are auto-populated like they're supposed to be. The 2nd unrelated portal THEN also displays the info that has been entered previously for it from its appropriate layout. The problem is, once a record is created the specific fields are auto-populated with info for the first client that was entered. Thats fine, but I need to be able to edit this info by typing in either the client name or address into one of these auto-populated fields and have the ENTIRE record update itsself to show info (in the specific fields setup for it) that relate to whatever client name or address that was typed. I guess what I'm asking here, is how do I setup the "Call Console" layout to auto-populate the specific fields with info specific to THAT client name or address? This info would be drawn from records that have been entered in the Clients layout. I hope this makes what I was trying to say clearer and that someone has a fairly simple and understandable way that this can be done. I don't care about whats already happening. As long as the "Show All Clients" portal and the 2nd portal show what their supposed to, that's fine. But I need to have those specific auto-populated fields update the record to show the info for whatever client name or address is entered. Sorry to be so long winded with this, but I don't know any other way to try to make clear what's happening and what I need to happen. "Chris Brown" <cbrown (AT) medicine (DOT) adelaide.edu.au> wrote in message news:4175b622$1 (AT) yorrell (DOT) saard.net... JD wrote: I'm having trouble with a layout that inserts certain lookedup information for a client. When a record is created lookedup info is auto inserted into a "Show All Clients" portal and into certain fields on the layout. These fields are always filled with info from the first client record. The layout also displays a portal for lookedup info pertaining to another unrelated layout, but there are no certain specific fields that are filled-in for this 2nd portal. If there are no records, none of the information is displayed for either of these portals (even the unrelated portal) or in the specific fields that hold the lookedup client info. I had such a hellofa time figuring out how to even get relationship/lookedup info to work that 1) I'm reluctant to screw with it ("if ain't broke, don't fix it") and 2) I'm not really certain what I based the lookup info on. I used an indexed field named "All" for both the client and the 2nd unrelated portal, so I think this is what the lookups are based on. The problem is I need to be able to have the specific fields on the layout show the info for a specific client that is typed in manually (by client name or street address), not just the 1st client that the info is auto-entered for when a record is created. I've tried typing in the client name and/or the address and doing a relookup, but that doesn't work. I hope this all makes sense and as always, I would appreciate any help anyone in the group can provide, just please be as specific as possible with your solutions as I'm very new to FM/FMDev and this project has to be completed by early morning, so I won't have time to try to figure out exactly what you meant. Thanks to all who take the time to help. -- ================================ Information Is Read By People... Not computers! Knowledge. The Last American Bargain. ================================ " Information is not knowledge, Knowledge is not Wisdom" Frank Zappa JD, I have a feeling your use of the term 'look-up' may not be what FM defines as a lookup. It is unclear what exactly is happening, and what you want to happen when a new record is created. Your 'show all clients portal, if you want a portal list of all clients, usea _constant:;_constant rel. Make a calculation field (number result) in both files, with a calc result 1, and index them. Create a rel and portal... I'm hoping you are using a Client_ID field, this is a unique serial (auto enter C000001 increment 1) and should be thought MANDATORY, If you are trying to use names for your rels; make the change. Grab the client ID from the constant portal, and add it to your new record (Field Client_ID), then you can use that to create rels to the subsiduary tables of client info, which also contain Client_ID fields, and use the rel(s) for lookups etc. what file/purpose is the new record? Chris Brown Neurosurgery University of Adelaide |
#6
| |||
| |||
|
|
I'm having trouble with a layout that inserts certain lookedup information for a client. |
#7
| |||
| |||
|
|
* JD <pmccarthy21 (AT) comcast (DOT) net>: I'm having trouble with a layout that inserts certain lookedup information for a client. snipped - because no one else does JD the one thing you have to remember about FM7 is that relationships will only work if there are records present. You can have these wonderfully complex relationships that go from A to B to C to D but if table B has no records the relationship will fail. loulou |
#8
| |||
| |||
|
|
Thanks loulou, but I guess I'm just not making my point clear - I don't care about that. All I want to do is be able to enter a client name or client address into the field and have the record auto-populate several other fields BASED ON the client name or client address (whichever one was entered).. Thats all I want it do. I don't care what shows up if there are or aren't records already present. "Lou Lesko" <loulesko (AT) yahoo (DOT) com> wrote in message news:slrncnc504.gff.loulesko (AT) sdf (DOT) lonestar.org... * JD <pmccarthy21 (AT) comcast (DOT) net>: I'm having trouble with a layout that inserts certain lookedup information for a client. snipped - because no one else does JD the one thing you have to remember about FM7 is that relationships will only work if there are records present. You can have these wonderfully complex relationships that go from A to B to C to D but if table B has no records the relationship will fail. loulou |
#9
| |||
| |||
|
|
I'm not totally sure I understand what you are trying to do, but I'll give it a shot. Thanks Howard, |
|
1) The "AllClients" relationship, which is a cartesian relationship (the 'X' link in the relationships dialog) between any two fields, which will show all records from the clients table. That sounds basically like what you already have. That's absolutely right. It is a Cartesian relationship using |
|
You can use the client's name as the basis for this relationship, but that is dangerous since any change >in the client's name or spelling would break the relationship. >As Chris was saying, you would be better using a serialized record ID in the Client table and adding that to each call to form this relationship. I understand the reasoning Chris was saying for using a ClientID |
#10
| |||
| |||
|
|
of these specific (name or address) field, and have data auto filled (from the client db) |
|
Ok Chris, well, as it says in the subject line of my posts, I'm using FM7 Developer. I'm familar with clairvoyance/type ahead and I know that there is a plug-in available to do this - thats not what I'm asking and I'm pretty sure what I want to do - have specific fields of information auto-filled in when EITHER OR a COMPLETE client name or client address is typed into one or the other of these specific (name or address) fields. The client name and client address field are just two of several fields that need to be auto-populated once the above is done. I'm pretty sure this can be done w/o any type of special plug-in - I just need to know how to setup the relationship or lookups to accomplish this. But I am running out of time. This has to be ready to go by 8:00 AM MDT. I appreciate your efforts and I hope you can explain how to accomplish this so I can stop worrying about it and get on with finishing and testing the rest of the program before the deadline. Thanks again. "Chris Brown" <cbrown (AT) medicine (DOT) adelaide.edu.au> wrote in message news:4175f75d$1 (AT) yorrell (DOT) saard.net... ok JD, lets try this bit: The problem is, once a record is created the specific fields are auto-populated with info for the first client that was entered. Thats fine, but I need to be able to edit this info by typing in either the client name or address into one of these auto-populated fields and have the ENTIRE record update itsself to show info (in the specific fields setup for it) that relate to whatever client name or address that was typed. I guess what I'm asking here, is how do I setup the "Call Console" layout to auto-populate the specific fields with info specific to THAT client name or address? This info would be drawn from records that have been entered in the Clients layout. you need to tell me what version of FM you are using. You have files: Call Console, and Clients Clients has Cliet_ID field, and client details such as address What you are trying to do in Call Console, in a new (call) record is type in part/all of either the client name or client address, and have 'info specific to THAT client name or address' enter into the Call Console record. Typing in a name or part of address is a method referred to as 'Clairvoyance' or type-ahead in FM speak. It is far easier in FM7 than FM6, but if you are new to FM, it will take some application. We can achieve either, but I need to know your FM version. There may be simpler ways to achieve the same end, depending a bit on how many clients you have. I use the clairvoyant approach in FM7 in several solutions, for patient names, getting post codes from areas, areas from post codes... What you need to capture, in order to accurately pull in the target data is the Client_ID. The name or address is purely an means of getting at the right Client_ID. Consider this mantra. regards Chris JD wrote: Chris, I really don't understand about 90% of what you said, but I do appreciate the effort. What I did was create a rel from a table named "Call Console" to a table named "Clients." I based this rel on an indexed field in both tables named "All." I then added the fields that I wanted to be auto-populated with info from "Clients" and defined them as lookups in the "Call Console" table. Now when I create a record in the "Call Console" layout these fields are auto-populated with the info specific to those fields and a complete list of all Clients iis displayed in the "Show All Clients" portal AND the appropriate info is also displayed in a 2nd portal that has nothing to do with what I've said so far. I'm not sure if I defined this rel based on the ClientID field in the Clients table or on the auto-generated "EventNum" field in the "Call Console" table. If no records have been input in the "Call Console" layout then nothing shows up in the "Show All Clients" portal or the specific auto-populated fields on the layout. Also, nothing iis displayed for the 2nd portal that is also on the "Call Console" layout. This 2nd portal has nothing to do with the "Show All Clients" portal and there are no specific fields on the layout that are auto-populated with info pertaining to this unrelated portal. Once a record is entered in the "Call Console" layout everything seems to work as it should. The "Show All Clients" portal shows all clients that have been entered from the "Clients" layout and the specific lookup fields are auto-populated like they're supposed to be. The 2nd unrelated portal THEN also displays the info that has been entered previously for it from its appropriate layout. The problem is, once a record is created the specific fields are auto-populated with info for the first client that was entered. Thats fine, but I need to be able to edit this info by typing in either the client name or address into one of these auto-populated fields and have the ENTIRE record update itsself to show info (in the specific fields setup for it) that relate to whatever client name or address that was typed. I guess what I'm asking here, is how do I setup the "Call Console" layout to auto-populate the specific fields with info specific to THAT client name or address? This info would be drawn from records that have been entered in the Clients layout. I hope this makes what I was trying to say clearer and that someone has a fairly simple and understandable way that this can be done. I don't care about whats already happening. As long as the "Show All Clients" portal and the 2nd portal show what their supposed to, that's fine. But I need to have those specific auto-populated fields update the record to show the info for whatever client name or address is entered. Sorry to be so long winded with this, but I don't know any other way to try to make clear what's happening and what I need to happen. "Chris Brown" <cbrown (AT) medicine (DOT) adelaide.edu.au> wrote in message news:4175b622$1 (AT) yorrell (DOT) saard.net... JD wrote: I'm having trouble with a layout that inserts certain lookedup information for a client. When a record is created lookedup info is auto inserted into a "Show All Clients" portal and into certain fields on the layout. These fields are always filled with info from the first client record. The layout also displays a portal for lookedup info pertaining to another unrelated layout, but there are no certain specific fields that are filled-in for this 2nd portal. If there are no records, none of the information is displayed for either of these portals (even the unrelated portal) or in the specific fields that hold the lookedup client info. I had such a hellofa time figuring out how to even get relationship/lookedup info to work that 1) I'm reluctant to screw with it ("if ain't broke, don't fix it") and 2) I'm not really certain what I based the lookup info on. I used an indexed field named "All" for both the client and the 2nd unrelated portal, so I think this is what the lookups are based on. The problem is I need to be able to have the specific fields on the layout show the info for a specific client that is typed in manually (by client name or street address), not just the 1st client that the info is auto-entered for when a record is created. I've tried typing in the client name and/or the address and doing a relookup, but that doesn't work. I hope this all makes sense and as always, I would appreciate any help anyone in the group can provide, just please be as specific as possible with your solutions as I'm very new to FM/FMDev and this project has to be completed by early morning, so I won't have time to try to figure out exactly what you meant. Thanks to all who take the time to help. -- ================================ Information Is Read By People... Not computers! Knowledge. The Last American Bargain. ================================ " Information is not knowledge, Knowledge is not Wisdom" Frank Zappa JD, I have a feeling your use of the term 'look-up' may not be what FM defines as a lookup. It is unclear what exactly is happening, and what you want to happen when a new record is created. Your 'show all clients portal, if you want a portal list of all clients, usea _constant:;_constant rel. Make a calculation field (number result) in both files, with a calc result 1, and index them. Create a rel and portal... I'm hoping you are using a Client_ID field, this is a unique serial (auto enter C000001 increment 1) and should be thought MANDATORY, If you are trying to use names for your rels; make the change. Grab the client ID from the constant portal, and add it to your new record (Field Client_ID), then you can use that to create rels to the subsiduary tables of client info, which also contain Client_ID fields, and use the rel(s) for lookups etc. what file/purpose is the new record? Chris Brown Neurosurgery University of Adelaide |
![]() |
| Thread Tools | |
| Display Modes | |
| |