simoncpage Posted May 25, 2004 Posted May 25, 2004 I have about 15 users of my database and for each of them I would like to setup a favourites listing. My initial thought was to have a hidden field so that I have a script which writes to the cell who that is a favorite for. So for instance "Anna" click make favorite and that adds here name to the favourite listing field and a found set for this can be found...great! BUT what if more than one user wants to have the same contact as their favourite? Any ideas? thanks! Simon
Damocles Posted May 25, 2004 Posted May 25, 2004 Here's a script that will put the user's name in the field, but you will need to modify it (or create another one) to get the name out! I can't think of any reason why you couldn't just store multiple names in the "favourite listing" field. They'd all come up on a search. Paul Favourite Script.zip
simoncpage Posted May 25, 2004 Author Posted May 25, 2004 Well sure you could have a field with as "Anna Sarah John" etc but makes it tricky to take one etc I just dont really want to go the route of a related file S
dbruggmann Posted May 25, 2004 Posted May 25, 2004 simoncpage said: My initial thought was to have a hidden field so that I have a script which writes to the cell who that is a favorite for. So for instance "Anna" click make favorite and that adds here name to the favourite listing field and a found set for this can be found...great! BUT what if more than one user wants to have the same contact as their favourite? Let your script add the name PLUS a carriage return (UserName & "
Damocles Posted May 25, 2004 Posted May 25, 2004 Here's an inelegant solution. 1 field, 1 script, no related files. Paul Favourite toggle.zip
Damocles Posted May 25, 2004 Posted May 25, 2004 Force of habitual typing! I frequently find that my "solutions" do okay, but that someone with a couple billion posts is able to do the same function with one or two well executed lines. Nobody's ever outright laughed at a solution, but it does keep a person humble. Paul
simoncpage Posted May 26, 2004 Author Posted May 26, 2004 Great solution simple yet works a treat, Thanks
simoncpage Posted May 26, 2004 Author Posted May 26, 2004 Made a slight change instead of using the insert text / insert calculated text (which only works if that field is on the form and is allowed entry) I used "set field" but same principle and used with an add button via listings
Recommended Posts
This topic is 7489 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now