Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6859 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (edited)

First off, I wish there was a better place to post this. I ended up deciding on ScriptMaker, but I could've posted in Layout also, I suppose. Why not have a UI-related forum dedicated to issues related to creating advanced interfaces?

I've attached a file that contains my implementation of row highlighting--not for portal rows, but for the records in the layout itself, when viewed as a list. To see it in action, click on Build an Image or the Record a Purchase. You'll probably see the behavior I'm annoyed about pretty quickly if you navigate around in my modal window selecting the software titles.

Basically I'm using a global field to store a user's session key, which is based on a timestamp and MAC addresses to ensure uniqueness, which is then used to keep records of selected items in a table related to the TO that the layout is based on. An invisible button is laid out on the record that, when clicked, manages the selection highlighting and unhighlighting depending on whether the dialog requires only one item to be selected, or allows multiple selections.

The problem is that the scrolling jumps as you select items. I'm assuming this is a consequence of my relatively complicated script, which requires me to switch to several different layouts to manage records relating to selections, before swapping back to the layout for the modal window. I'm assuming that when you swap layouts, there's some default behavior in FMP8 that just automatically scrolls the window so that the current row is at the bottom. I've tried freezing the window at the beginning of the script, but it didn't seem to have any effect.

Possible solutions? What if I opened a new window, froze or hid it, and did my work in there and then closed it? Would the original modal window be unchanged? How slow would it be to have the overhead of a new window with every click? How about some extra scripting that figures out which record would need to be active for the scrolling to be positioned properly? Is that possible?

The whole thing would be a non-issue (I think) if I weren't required to switch layouts in the script, but I don't really think there's any other way of doing what I'm doing.

So... Advice, anyone?

Oops! Forgot to set up a guest user. Just a sec.

Software.fp7.zip

Edited by Guest
Fixed permissions on uploaded file
Posted

But to answer your question, opening a new window may be your easiest solution.

~Genx

Posted

Thanks for the advice, Genx. Do you think I'd get more responses if I re-posted in Right Brain?

I'm going to try the script opening a new window and see if the performance is acceptable.

Posted (edited)

Hi Owen,

Thanks for the advice, Genx. Do you think I'd get more responses if I re-posted in Right Brain?

No, don't do that, it is called [color:red]Double Posting, and is frowned upon. The Forum is really only one list.

The Forum is divided up into several Topics Areas including the major Functions and Features, along with a few Special Topics Areas for things like Articles, Sample, User Groups, Classifieds, etc.,

When asking a question, it is only necessary to pick a Topic that seems to match the sprit of your question best, which you did, and then continue to post to it until you get a satisfactory answer to your problem. Keep in mind, most question do fit into more than one area. You just need to choose one.

Lee

Edited by Guest

This topic is 6859 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.