Alisun 0 Posted May 15, 2007 Hello, I have a team of people working on a project, and would like to have everyone's names listed on one layout, with a button next to each name called "Click for Hours". This would open a new window which would show their hours. I am not sure how to create a new pop-up window for each person. Any help would be appreciated! Alison Quote Share this post Link to post Share on other sites
mr_vodka 70 Posted May 15, 2007 You can have the related team of people be displayed in a portal. Then you could have a button that calls the Go to Related Record script step. There is an option for Show in new window and Show only related records. Check them. Quote Share this post Link to post Share on other sites
Alisun 0 Posted May 16, 2007 I just created the portal. I also placed a button called "Click for Hours" next to each name. I am new to buttons and scripts, though. How do I connect the button to a script? Alisun Quote Share this post Link to post Share on other sites
mr_vodka 70 Posted May 16, 2007 After you create a button on the layout, a popup will display. To attach a specific script to a button you need to select (under Control) Perform Script and then specify the script that you want to call. Quote Share this post Link to post Share on other sites
Alisun 0 Posted May 16, 2007 I was able to create a script for the button, but when I click on the button I get the message, "This operation could not be completed because this layout cannot display the result." I think I may be missing a step, either in the script or the layout. So, I attached an example of my file. Any advice? AlisunHours_Log_Sample.zip Quote Share this post Link to post Share on other sites
mr_vodka 70 Posted May 16, 2007 First you need to change your script so that it could use the 'Team Members' Layout isntead of "current". Second you need to put the button on the portal row so that it could get the related record. Quote Share this post Link to post Share on other sites
Alisun 0 Posted May 16, 2007 Awesome!!! I got it to work!! Thank you so much, Mr. Vodka! Alisun :thankyou: Quote Share this post Link to post Share on other sites