Saucepan Posted July 17, 2006 Posted July 17, 2006 hi mostly a general q: is there anyway to restrict users from using diffrent buttons and scripts unless they first execute a diffrent scrip? the idea is that i want to create a maillist with a followup function. everytime i send a new mail to a contact i stick the contact_id, together with topic and date, into a table to keep track of the sent mails. if i want to make a followup on that mail i simply press the followup-button. now to the real q; how do i restrict a user frm pressing the followup-button without first pressing the regular mail button? i figured i´d use the table as a sorting function. put new entries in a mail_1 coloumn and as soon as the first mail was sent, move them to a mail_2 coloumn. this way i could use an If[person exists in coloumn] = send mail, but i dont know how..? any ideas?
T-Square Posted July 19, 2006 Posted July 19, 2006 Nils-- I have used a calculation field that evaluates to "Click ME!" or some such if a test is true (e.g., a regular mail has been sent), but "" if the test is false. Then, I place that calc field on the layout and make it a button that doesn't change the cursor to a hand. In my attached script, I test whether the calc has text, and if not, Exit the script. It's not elegant, but it works. I'm sure others have better and slicker ways! David
Saucepan Posted July 19, 2006 Author Posted July 19, 2006 thanks david! ill try to work out something like that. it sounds spot on what i want, now i just need it to work...
Recommended Posts
This topic is 6704 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