Noobie Posted March 20, 2015 Posted March 20, 2015 I'm trying to go to an object on a layer and having some trouble getting it to work as expected. Â Here's the relevant part of the script: Â Here's where you can see I have the object named appropriately on the same layout: Â When I run the script, everything else executes normally, but it doesn't go to the object. I also tried using Go to Field (as can also be seen in the script), but that didn't work either for some reason. Â Any thoughts as to what I might look at? Thanks for your help! Â Edit: Maybe I'm misunderstanding what Go To Object does. I'm trying to scroll down to where the item appears within the layout. It appears to be highlighting the object, but it isn't scrolling to it. Is there a better way to accomplish this?
Raybaudi Posted March 20, 2015 Posted March 20, 2015 Maybe I'm misunderstanding what Go To Object does. I'm trying to scroll down to where the item appears within the layout Try to use the step: Scroll Window [ To Selection ]
LaRetta Posted March 20, 2015 Posted March 20, 2015 One other thing to keep in mind ... if your table has no records, neither Go To Field[] nor Go To Object[] will work at all.
bcooney Posted March 20, 2015 Posted March 20, 2015 The set field script step doesn't need to have the cursor in the field. In fact, the field doesn't even need to be on the layout. I question your goal here. Why script the setting of a field in browse mode and then pause?
Noobie Posted March 24, 2015 Author Posted March 24, 2015 I'm building out a job tracker that has individual timers on it. Due to the way it works, it pauses so the timers won't continue. The field is on the layout because it is visible to the user. I've tried using Go To Field [...], Go To Object [...] as well as Scroll Window [To Selection], but none of them works as I expect. I have plenty of records, so that isn't the issue either.
bcooney Posted March 24, 2015 Posted March 24, 2015 Sorry, I don't understand. Perhaps a screen shot of the layout?
Noobie Posted March 26, 2015 Author Posted March 26, 2015 Here's screenshots of the layouts, and here's a thorough explanation of what I'm trying to do and why: Â I have a time tracker that tracks multiple stages of a job. If a user clicks on one of the [...]TimeElapsed fields, it will take them to a new layout (screenshot 2) and allow them to manually enter a time. They then click Save, and it goes back to the original layout (screenshot 1). The problem is that if they scroll down and click to modify one of the timers lower on the page, when it swaps between layouts it goes back to the top of the layout, and they have to manually scroll down to get to it again. I'm trying to get the window to automatically scroll to the field they're modifying, but I'm not having any luck. Â I hope that helps. Â Â
Noobie Posted March 26, 2015 Author Posted March 26, 2015 OK, I think I finally figured it out, but I'm not sure why it works this way. If I put a Pause with a duration .01 seconds after the Go To command, then it works as expected.
Recommended Posts
This topic is 3531 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