John Harris Posted March 4, 2003 Posted March 4, 2003 Hi, So I thought I was being really clever. I have a script that needs to wait until a portal row is selected, I tried to create a global calculation which was: if(status(currentportalrow)>=1,0,99) The intention was while no portal row was selected it would return 99, as soon as a portal row was selected it would return 0. Then in the script I had a pause for the duration of this calculation field. Anyway it doesn't work, so I am not even a little clever ! I have posted this here because the basic question is how do you get a G calc field to get the status a portal row. But I'm sure there is a much better way to do this. Anyone go any bright ideas ?
BobWeaver Posted March 4, 2003 Posted March 4, 2003 You could try a loop. # Wait for portal row to be selected Loop Exit Loop If [status(CurrentportalRow>=1] Pause[00:00:01] End Loop # Now continue on with your script here... You could also just put a button over the portal row that executes a script whenever you click on the row.
andygaunt Posted March 4, 2003 Posted March 4, 2003 Um, how can your script run, unless you have it stuck in a loop constantly waiting for the user to click into the portal. If that is the case, why not just script the entry into the portal row by placing a button in the portal row, or by making the fields in the portal scriptable??? Can you clarify what you want to do with this?
LiveOak Posted March 4, 2003 Posted March 4, 2003 The Status(CurrentPortalRow) will not refresh unless you force it to. The standard switch between preview and browse is out as you will lose the portal row selection. You can use Got Record steps in combination, as long as you always get back to the original record. -bd
John Harris Posted March 6, 2003 Author Posted March 6, 2003 More details : I am running a script to delete a portal row. The Script can be run from any layout. So it goes to the layout with the portal and prompts the users to Select a row to be deleted. This is where it needs to pause until row is selected. I have not tried any of the suggestios but will when I get a chance. Could you expand on making portal fields scriptable ?? Thanks JOHN.
SteveB Posted March 6, 2003 Posted March 6, 2003 Here's another, often used technique. If you have room in the portal, place a small delete icon in the (first) row. The icon will be repeated by FM for all the rows in the portal. Then the user can just click the row he wants to delete. There are a lot of mini icons of trash cans and other things around. And, the one simple script that you attach to the icon will work for every portal without modification. You can also wire in a test for having a control key down to eliminate a confirmation message.
Recommended Posts
This topic is 8003 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