Jump to content
Sign in to follow this  
-dp-

How to maintain scroll position when exiting text field

Recommended Posts

I have a solution with two, side-by-side, scrolling text fields. One contains captured content. The other contains notes on the content. I need to jump from one to the other as I make notes. But when I activate the notes field, the content field jumps back to the top. I need for the scroll position of the content field to stay where I left it, so that I can resume where I left off when I return to the field. Is this possible?

Share this post


Link to post
Share on other sites

Hi,

Attached is one way.  Notice there are script triggers attached to both fields.  

 

PositionReturn.fmp12

Edited by LaRetta

Share this post


Link to post
Share on other sites

This is helpful. Thank you for taking the time to reply, and for providing the example.

Share this post


Link to post
Share on other sites

I'm having the same issue as -dp- and the solution posted by LaRetta seems to work great except when I try to host on WebDirect.  The scrolling text fields do not return to cursor position when returned to from another field.  Any other suggestions that work with WebDirect?

Share this post


Link to post
Share on other sites

Another approach is to script the process to APPEND or ADD an new. The key to retaining the position in the content field, is to not COMMIT the record by clicking out of the TEXT box.

In this attached sample, you can high light any text or place your cursor somewhere in the field, and still add notes. Check it out.

Did not test via WebDirect, but I used script steps compatible with WD by using the FILTER script steps.

dwdc_addnote.fmp12

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Similar Content

    • By DataLackey
      Hi FileMaker people,
      I used to use FileMaker on a Mac, but have recently switched to a Windows 10 computer. I was developing a database on the Mac, but since moving to PC I'm getting a lot of horizontal lines, blurred text and broken borders, images and buttons as I scroll. I've attached three screenshots as examples - these are happening on most layouts, most of the time.
      The solution is hosted remotely on a Windows 2012 server. I didn't have these problems when I used a Mac, and I've looked at it on a coworker's Mac over the same internet connection and the problem didn't occur. I don't have another Windows machine I can test this on, but I did notice the problem (although it was far less severe) running FileMaker on a Windows virtual machine on my old Mac. I assumed it was a problem with the virtual machine, but it looks like a broader issue.
      The customer who will eventually use the solution will run it on Windows machines. At this stage it's so ugly and hard to read I'm not sure we can use it.
      Has anyone encountered this problem before? Does anyone have any idea what's going on? Does anyone have any solutions?
      Thanks in advance,
      John



    • By LaRetta
      I'm placing a web viewer on a layout in place of a regular note text field to provide User a scroll bar in long notes.  However, when I do so, I lose paragraphs and all data runs together into a single paragraph block.  Is there a way I can adjust this so paragraphs are preserved?
       

      Also, I just noticed that, although it scrolls fine on laptop, it does not allow scrolling on ipad.  Is there a way to do this?  We do not need to modify the field, only scroll it.  Thank you!
    • By benmort81
      Hello,
      I am using Windows OS for my solution.  I have a layout in list view showing events. An admin user is to add groups of people as attendees of these events by pressing a button to run a script.  The script Freezes the window, changes layout, adds the attendees in the relevant table and returns the user to the original layout.
      This all works well, except for when the script returns to the original layout and unfreezes the window, the scroll position of the active row (the record that the user is editing) jumps to the bottom of the screen.  I would like the scroll position to remain static or be returned to where it was before the script changes the layout - so a change is imperceptible to the user.
      The Window Scroll options seem limited to top, bottom, pg up, pg down.  I have also tried having the script open a new window before changing the layout, but you then see the script working - if only briefly - as the new window comes to the front.
      Has anybody got any suggestions on how I can return the scroll position to exactly where it was before the script executes?
      Thanks in advance,
      Ben
    • By pixeleen
      Hi,
       
      I have a database created in FM 12 on a mac which has one layout for PDF files.
      In FM 12, the container adds a scrolling bar on one side. so I can scroll down the PDF.
       
      However, when I transfer the DB to FM GO, there is no scrolling facility available in the container field.
       
      Does anyone know a way round this?
       
      Thanks
       
      pixeleen
       
       
    • By owangolama
      I have a portal that shows log events as they happen, chronologically. For UI reasons I need the oldest events at the top and the newest at the bottom. I'd like the portal window to keep scrolling down on its own so it always shows the newest event (at the bottom) and as many previous events as would fit. I do not want to have to GoToObject to make this happen; I would like it to do it on its own.

      I know that I can do it backwards. I.e., if I sort the list in reverse order and have newest on top, then the portal will update on its own, happily showing the newest at the top all the time. But there are other things on the page that show newest on the bottom, so as I said, I need it to be in that order for UI reasons.

      Any help would be greatly appreciated!!
×
×
  • Create New...

Important Information

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