Newbies fredo22 Posted March 3, 2007 Newbies Posted March 3, 2007 Hi Everyone, First post here. (FM 5.5) I have a portal on a layout for 'Tasks'. I have a script to create a new task, which performs an external script in the Task file "Create Task" and the script is supposed to end up in the portal, with the new record having a task name of "Untitled Task". My intention is to have the new task selected so that the user will know that they have to add a name for the new task. My script is not highlighting the new task. Can anyone tell me what I'm doing wrong? My strategy so far has been to set a global in the main file and then use "set field" and "select/perform" Perform Script[subscripts, External: Tasks.fp5 Set Field ["sg_Selected.Task.ID","{Tasks}Constant1::sg_Task.ID.Temp"] Go to Field[select/perform,"{Tasks}Selected.Task::Task.Name"]
Vaughan Posted March 3, 2007 Posted March 3, 2007 You need to add steps at the end of the process to return to the portal row. One of the ricks is knowing which portal row to return to... If the new related record is in the last row then it's easy. If the new related record isn't necessarily going to be in the last row then you'll need to do something like: put the new record's id in a global return to the master record go to the first portal row loop exit loop if this record has the id in the global field go to next portal row end loop One of the "tricks" to reliably select a portal, especially if the layout has more than one, is to use the Go to Field step and specify a related field that is only on the desired portal.
Newbies fredo22 Posted March 4, 2007 Author Newbies Posted March 4, 2007 Thanks for the tip..worked like a charm!
Recommended Posts
This topic is 6475 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