Step 1 — Paste the screen YAML
Delete the existing scrTeamMember screen. Create a blank new screen named scrTeamMember. Click the screen in Tree View → Ctrl+A → Delete → then Ctrl+V to paste.
Step 2 — Update scrMyTraining formulas
After pasting the screen above, update these two formulas on scrMyTraining so that tapping a course while viewing someone else's training works correctly.
galMyTraining.OnSelect — full replacement
Select galMyTraining, click the row area (not the gallery itself), click OnSelect in the formula bar, select all, paste:
Ready to copy
Greeting label Text — full replacement
Find the label that shows "Hello, [name] · Civil Servant" (likely called lblGreeting or lblHello). Click its Text property, select all, paste:
Ready to copy
Step 3 — Update scrMyTraining header when viewing someone else
These formulas make the profile photo, initials, and section label show the viewed person's details instead of yours.
imgMyPhoto → Image property
Select imgMyPhoto, click Image in the formula bar, select all, paste:
Ready to copy
lblInitials → Text property
Select lblInitials, click Text in the formula bar, select all, paste:
Ready to copy
lblSectionTraining → Text property
Select lblSectionTraining, click Text in the formula bar, select all, paste:
Ready to copy
Step 5 — Back button when viewing someone else
The "My team" button already navigates back, but it's not obvious. These two formula changes make it always visible and relabel it as a back arrow when you're viewing someone else's training.
btnMyTeam → Text property
Select btnMyTeam, click Text, select all, paste:
Ready to copy
btnMyTeam → Visible property
Select btnMyTeam, click Visible, select all, paste:
Ready to copy
Step 6 — Tap avatar to return to your own training
The avatar circle (recInitialsBG) does nothing currently. These two changes make it navigate back to your own training when you are viewing someone else. Tap it to go home.
recInitialsBG → OnSelect property
Select recInitialsBG, click OnSelect, select all, paste:
Ready to copy
recInitialsBG → DisplayMode property
Select recInitialsBG, click DisplayMode, select all, paste:
Ready to copy
Step 4 — Fix scrMyTraining.OnVisible
The OnVisible in your app is out of date if it references colMyRecords before defining it. Select scrMyTraining in the Tree View, click OnVisible in the formula bar, select all, paste the full replacement below.