Aussie John Posted March 17, 2004 Share Posted March 17, 2004 I have a script that is triggered by a button in a portal row- The script acts on the data in that row. A problem arises when a field in another portal row is already selected ( the script acts on that portal data). All works fine if no fields are selected. any ideas thanks? Version: v6.x Platform: Mac OS X Panther Link to comment Share on other sites More sharing options...
RalphL Posted March 17, 2004 Share Posted March 17, 2004 I would use Go To Related Record and then call a script in the related file to act on the data in that record and then return to the current file. Link to comment Share on other sites More sharing options...
Vaughan Posted March 17, 2004 Share Posted March 17, 2004 "A problem arises when a field in another portal row is already selected ( the script acts on that portal data)." I'm surprised it does that... I've never seen it happen. I'll do some testing. Try this: get the script to insert the portal row number into a global field (it should insert the number of the row the button in on) and use the Got to Portal Row step to select the portal row, then do the rest of the stuff. Link to comment Share on other sites More sharing options...
Aussie John Posted March 18, 2004 Author Share Posted March 18, 2004 Thanks, I'll try that Vaughan Link to comment Share on other sites More sharing options...
Vaughan Posted March 18, 2004 Share Posted March 18, 2004 I thought of something else this morning which might be helpful if the problem still persists: get the script to check if it is in a field (perhaps IsEmpty( Get (ActiveFieldName)=0 might do the job) and only let the script run if the cursor is not in a field. Link to comment Share on other sites More sharing options...
Aussie John Posted March 20, 2004 Author Share Posted March 20, 2004 Vaughan said: Try this: get the script to insert the portal row number into a global field (it should insert the number of the row the button in on) and use the Got to Portal Row step to select the portal row, then do the rest of the stuff. for info that worked thanks Version: v6.x Platform: Mac OS X Panther Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 7335 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