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.

Featured Replies

Greets, all:

I'm using this calculation--in a parent table in a field temporarily named 'Temp'--to grab course numbers from the course_number field in a related/child table:

UniqueValues ( List ( ASSIGNMENT_COURSE::Course_Number__lxt ) )

(I'm using this calc because the child table contains multiple records with the same course number; it's not a key field.)

My intent is to use six buttons--in the parent table--where each button would grab an assigned row's value using the calculation above. For example, say that the above calc has this result:

AST-100

EDU-100

EDU-300

PHY-100

SOC-100

TMA-001

I want Button 1 to grab AST-100; Button 2 to grab EDU-100; Button 3 to grab EDU-300, etc.

Mind you, I can't make a value list out of Temp because it can't be indexed.

TIA for your help! 

 

I am not aware of any method that would create layout objects such as buttons dynamically. The most you can do is pre-create as many buttons as you could possibly need, and hide the unused ones. If you use a button bar, you can use calculated labels as well as hide the surplus segments. 

Another option is to place the buttons in a portal. A portal can be de-duped - and if you have a TO of Courses behind ASSIGNMENT_COURSE, then you can make the portal show the records from there and have it show a row for each unique course only without any additional effort .

"(I'm using this calc because the child table contains multiple records with the same course number; it's not a key field.)"

Why aren't you using keys?

You could use a Button Bar with 6 Segments that calc their button segment labels using…

GetValue ( SampleData::Text_Field ; Index/LineNumber )

 

…and “Hide (Segment) object when” 

IsEmpty ( GetValue ( SampleData::Text_Field ; Index/LineNumber ) )

 

Then add a parameter (1-6) to each segment…that you read into your script using Get ( ScriptParameter ).

Use the GetValue function to map back to the course code

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.