PTKen Posted February 6, 2003 Posted February 6, 2003 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!
cannes Posted February 6, 2003 Posted February 6, 2003 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
Garry Claridge Posted February 6, 2003 Posted February 6, 2003 Here is link to a thread on this: http://www.fmforums.com/threads/showflat.php?Cat=&Board=UBB22&Number=38533&Forum=UBB22&Words=alternate&Match=Entire%20Phrase&Searchpage=0&Limit=25&Old=allposts&Main=38504&Search=true#Post38533 You can also use a little bit of Javascript as an alternative method. All the best. Garry
PTKen Posted February 10, 2003 Author Posted February 10, 2003 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now