Jump to content

This topic is 8106 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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!

Posted

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

Posted

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

This topic is 8106 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.