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.

Displaying timetable data in a grid

Featured Replies

Hi Guys,

I've managed to hit a brick wall almost from the beginning in developing an online timetable system for our students to query.

What I want them to do is select the classes they attend and press 'submit' to get a table they can printout which lays out their timetable as below:

Monday Tuesday ....

0800 FY3501

Room 2

Dr. X

0900 FY3501 FY3520

Room 2 Room 7

Dr. X Dr. W

1000

etc.

I can set it up so they get a big long list of entries for their mulitple search however I'm really stuck in trying to visualise the cdml codes in the html table and how to pull data from a database and insert it into the correct cells in the table, depending on the student's course search.

If anyone can help or know of an existing solution I'd be very greatful.

Thanks

Frazer

  • Author

Hi Guys,

Cracked it:

Each cell in my table has code resembling the following entered:

[fmp-record][FMP-If:start_time.eq.0800][FMP-If:day.eq.Mon][fmp-field:Course]

[fmp-field:location]

[fmp-field:type]

[/FMP-IF][/FMP-IF][/fmp-record]

By varying the if statements I can display different results from the search.

Cheers,

Frazer

Frazer has provided a very good example of the power to be found in the conditional [fmp-if] when used wisely as a solution on the format file. If you are learning this stuff, pay attention.

SIMPLIFY ...

Keith

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.