Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Navigating in Portal

Featured Replies

Hi folks,

I'm stuck again!!

I have a portal I'm using to input grades for class asessments.

At the moment, to go from one row to the next I have to click on it with the curser. When I tab, I go to the start of the next row and have to then tab across to get to the same field on that row.

I'd really like to be able to tab (or use the keyboard arrows) to navigate the same field on different rows of the portal, ideally using arrows to go to different fields on the same row; just like you would on a spreadsheet.  Is the possible?

I've tried with script triggers, but have had no luck!

Cheers,

MIke

You can capture keystrokes using script triggers and this should work just fine,

here is the script I use to convert the insert key into a |  , my users are just use to using the insert key from old dos days...

 

post-102649-0-82406300-1378997128_thumb.

 

all you need to do is capture the keystrokes for the arrow keys  and use the goto object script step. (be sure to assign object names to the fields you want to navigate)

and if you want to navigate in a portal, you need to capture the current portal row  and  set that variable as well. so you can go up or down rows.

Why not change the tab order so that they go to the next field?

  • Author

Thanks chaps,

It's nice to know it's possible!

I like the potential simplicity of Lee's solution, but don't know how to do it or if it would do enough.

I suspect that I'm going to be going into the kind of scripting described by No_access. I'm now looking up how to capture the keystrokes.....

Tab order is easiest, but does not give you the flexibility you want.  scripting will. also

according to filemaker the codes for the arrow keys are

 

left arrow  - 28

up-arrow - 29

right arrow - 30

Down arrow - 31

let us know if we can be of further assistance.

  • Author

Thanks for these; I was still searching for them!!

Right, now to attempt the scripting; eek...

  • Author

Well I've had a some success.... kind of!

 

I've attached my script. It sort of works for the down arrow, sending the cursor to the bottom of the portal instead of just down one row.

It doesn't seem to work for the up arrow.

Is that because it only checks for the first IF, and I need to do a loop if it's to keep checking for both?

 

Cheers!

Mike

post-66258-0-88099400-1379013570_thumb.j

Your end if's are in the wrong place.. you could also use else if  or a case statement

move the 1st end if  above the second if statement.

Is that because it only checks for the first IF, and I need to do a loop if it's to keep checking for both?

 

See if this sample helps you.

PortalNav_eos.fp7.zip

  • Author

Many thanks; I'm not sure why I put them like that; the proper way makes much more sense.

The move to previous / next portal row still doesn't work though, it goes to the top or bottom row instead.

  • Author

Many thanks, got it now. I think I'd put the go to field bit in the wrong place too.

I'll now attempt to make it move left and right. what could possibly go wrong? :-)

 

BTW, I must say that the help you guys give on this site is incredible; thanks!

Mike

Just one added little tip. when  making it go left and right, you may want the check the location of the cursor and make sure it is at the beginning or the end of the text. that way they can still use the arrow keys to edit the text they are in.

  • Author

Oh blimey, that's a good point.  Mmmm, may rethink the need to go left & right, will sleep on it!

Thanks!

It is still very easy to do. and should work well.

 

now you could use the script trigger for the up and down in conjunction  with the tab order for left and right in this case if you wanted...

Before you embark on anything elaborate, don't forget that you can set a tab order for the fields on your layout.

See post #3

 

You might want to look at this in your help setting the tabs

Edited by Lee Smith
Added the tab link

  • Author

Oh boy, that's really useful. I had been searching, but didn't know what I was looking for.

Many thanks!

In twenty years, I've never scripted the tab order. Be wary of adopting a spreadsheet paradigm with FileMaker.

  • Author

It seems to work really well now; the up and down arrows take me to different portal rows and I can then tab between the 3 fields most likely to have data input.

Cheers!

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.