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.

Working with specific portal rows

Featured Replies

  • Newbies

I have searched and tried all the things that make sense and know the solution will be easy ... but alas it eludes this beginner.

In a portal I want a button that takes record data from the parent and inserts into that portal row. Kind of a 'same as' option when user is entering data. I have the button working but only on the first portal line, regardless which row the button is. I know I need to somehow check which portal line (get portal row) I am on, then do the work on that line but I don't know how to get that data into my script ... how do I do this?

Thank you in advance for your patience.

In a portal I want a button that takes record data from the parent and inserts into that portal row.

This is kind of disputing the idea of relational design in the first place ...but I'm making a strawmans fallacy here, you probably just should ignore.

Instead should we focus on the issues involved - namely commiting of the record. The safest approach is never to leave the portalrow and exploit Set Field[ to get the value from the parentrecord:

LeftWords(MiddleValues ( test::gAfield ; Get ( PortalRowNumber ) ; 1 );99999)

What this does, is that it plucks in a global field in the parent records with pilcrow delimited values. Where copy and paste changes the focus, as soon as the cursor leaves the portalrow is the focus in the portal lost. The cursor can't be in two locations.

If you can't (...you should be abel though) must the portal row be stored in the scriptparameter put on the button def, so you can get back and stuff in the correct destination.

Copy [ main::gAfield ] [ Select ]

Go to Portal Row [ Get ( ScriptParameter ) ] [ Select; No dialog ]

Paste [ portalStuff::OtherData ] [ Select ]

Commit Records/Requests [ Skip data entry validation; No dialog ]

I would guess that it's the answer you think you need, but it isn't since tampering with the users clipboard is considered a developers sin ...thou must not expoit copy/paste in an applications inner mechanics, it's ment for interfacing other entirely different applications dealings.

You should in 99% of all cases be abel to use the Set Field!!!!

--sd

  • Author
  • Newbies

Ahh , beautiful and so simple. Now I understand completely SetField and importance of focus in the portal line. Another issue is also solved by your answer.

Thank you so much sir.

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.