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.

Portel row move up and down

Featured Replies

What script or function used to move active portel row up and down position by keyboard.At present after sorting portel records the active row goes to first row and for further selection record it does not move up and down only page windows scroll as well as we can only select by mouse.

Thanks

Hi there,

this is the script I use to navigate up and down portal rows using the up and down keys.

Is it what you had in mind?

Set Variable [ $key; Value:Code ( Get ( TriggerKeystroke ) ) ] #
If [ $key = 31 ]
Go to Portal Row
[ Select; Next ] Else If [ $key = 29 ]
Go to Portal Row
[ Previous ] Else
Exit Script [ ] End If
Go to Field [ Pupil_Class_Assess_Join::Score ] #
Exit Script [ Result: False ]
  • Author

 

Hi there,

this is the script I use to navigate up and down portal rows using the up and down keys.

Is it what you had in mind?

Set Variable [ $key; Value:Code ( Get ( TriggerKeystroke ) ) ] #
If [ $key = 31 ]
Go to Portal Row
[ Select; Next ] Else If [ $key = 29 ]
Go to Portal Row
[ Previous ] Else
Exit Script [ ] End If
Go to Field [ Pupil_Class_Assess_Join::Score ] #
Exit Script [ Result: False ]

 

Thanks For your Reply,

Though I have tried by above script but still the same portal row not moving by up and down  keys. I am sending small example file using this for office products layout and applied there in script trigger.

 

No file was attached.

Please Attach your files here. If you don’t know how to do this, just follow the steps you will see here. ATTACH FILE

  • Author

Yes here is attached file. I want to move keys up and down of sort list items in office products as well as in go down products layouts.
Thanks
 

Edited by Lee Smith
deleted the duplicate statement

Did you have a problem with the file? The file must be Zipped.  The link ATTACH FILE above gives you a step by step process. Let me know if you are unable to follow it.

 

Lee

  • Author

Here is zip link

posZip.zip

If you want to move a row to a different position in the portal, the position of that related record within the sort order must be changed; that also means you will want to have (and use) a sort order field that allows arbitrary sorting, since you do NOT want to change your real data.

 

Have a look at the attached file.

MovePortalRow_eos.fmp12.zip

  • Author

Thanks for your reply

 

  Actually I want to move the default curser row to next or previous or what ever row I want to go by keyboard up and down keys. When I sort records it shows several related records (When put the item in search field) and I have to select  one of them. At present the default curser row goes to very first row and then I have to go to that desired row by mouse click only. My query is to go to that desired row by keyboard up and down keys.

Thanks.

That's exactly what the script I posted does - obviously you'll need to change the field name. The two keys used are the up and down arrows. It will only work on the one field it's triggered from - I have 3 different ones for different fields on the portal.

 

It will only work on the one field it's triggered from - I have 3 different ones for different fields on the portal.

 

To switch the row, but keep the active field, you only need a single “field-agnostic” script if you de-select the “Entire Contents“ option:
Set Variable [ $key; Value:Code ( Get ( TriggerKeystroke ) ) ]
If [ $key = 31 or $key = 29 ]
  Go to Portal Row [ No dialog; Get ( ActivePortalRowNumber ) + Case ( $key = 31 ; 1 ; -1 ) ]
End If
  • Author

Dear Friend Eos,

Thanks for your query answer comments.

Though I have put the script as per your comments as "Navigation Portal Rows" in script trigger of office products (Where to I have to move active portal row down side in show all records)but still the same issue its only scrolling active row is not moving downside. It will helpful for me if you go through the attachment file where I am going wrong.

Thanks

Pos Invoices.zip

You're not using that script as script trigger for a portal or a field in a portal, but in two layouts in list view; also, it doesn't make sense to tie it to a graphic object.

 

Next time, please a ) kindly indicate the exact name of the layout place you're using an object in question (so people don't have to create and peruse the DDR to find it), and b ) study the terminology so you know the difference between a portal and a list layout!  :laugh:

 

You could an OnLayoutKeystroke trigger with …

Set Variable [ $key; Value:Code ( Get ( TriggerKeystroke ) ) ]
If [ $key = 31 or $key = 29 ]
  Go to Record/Request [ No dialog; Get ( RecordNumber ) + Case ( $key = 31 ; 1 ; -1 ) ]
  Exit Script [ False ] // so keystroke doesn't “bubble up”
End If

… to navigate in a found set (not only in list view); but note that there exists a built-in, simple shortcut ctrl-Down/Up Arrow to go to the previous / next record in a found set.

  • Author

Thanks Friend  Eos

 Issue has been resolved what I need. Mistake happened for assuming wrong object contents.

  • Author

Dear Forum Friends

 

A  "Very Happy New Year" to all the friends. :jester:

 

Apart from my above issue one thing more also I am not getting proper result from above attachment file while when I transfer a field record from one table to another by variable and set the field record in another table field (The field name is search) and by script perform find that item name in that layout table. The script is working and finding the search records and by perform quick find it sorts the related records whatever any words or phrase contains in search item fields. The active rows goes to first row by default. According to my search result Active row should be on search item sort records.

Thanks

Create an account or sign in to comment

Important Information

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

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.