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.

Alternating Colors on Portal Rows

Featured Replies

My question is probably so basic that no one else has needed to ask it here--at least I couldn't find the answer...

I have a format file with a portal on it. The portal works fine. I'd like to display each portal row with alternating colors in the background. I know how to do this using an HTML table and style sheets, but how can I do this with the portal? I can't figure out how to alternate the color based on the style since the same style info would be repeated for each row of the portal. I'm sure it must be fairly simple, but the solution escapes me.

Thanks!

hello

i've done once something similar by creating a formula field in my db.

neither i have the formula only in german. i don't know the english terms.

but you could try to copy the formula and insert it in your db formula-field.

i noticed that filemaker is sometimes understanding foreign terms. and then

translating it to your own language....

this is the formula: Wenn(Rest(Status(AktuellDatensatznummer);2) = 0; 1; 2)

in english it would be something like this: if(modulus(status(actualrecord#);2)=0;1;2)

what the formula is doing at the end is: you're taking all records in your db,

divide by 2. if the rest is equal 0 take 1 else take 2

in my cdml format i only had to compare a fields value for 1 or 2.

this is part of the cdml format file where i was changig rowcolor:

...<tr bgcolor="[fmp-if:rowcol.eq.2]#e6e6e6[fmp-else]#ffffff[/fmp-if]">...

i hope this will help

mimmo

  • Author

Thanks Garry! That link was great. I have successfully alternated colors with the search results when listing records. However, this doesn't exactly answer my question. How can I get this to work with rows of a portal? I tried using this same technique, but it did not work in the same way. Any ideas (hopefully without JavaScript)? Thanks.

Ken

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.