Jump to content

Field pattern inside a portal


sedekk

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

Recommended Posts

A simple question:

 

When a create a portal and I activate the option of alternate colors, how do I get the fields on my portal to follow automatically  the same background color  than the row where they appear.

 

 

I tried pasting formats from some templates I found, but it doesn't work.

 

 

  

Link to comment
Share on other sites

I've used this calculation in conditional formatting to get this desired appearance in list view:

 

Mod ( Get ( RecordNumber ) ; 2 ) = 0

 

It may work for portal rows as well? Let me know, please.

 

- - Scott

Link to comment
Share on other sites

Thanks for the help.

 

I tried with the formula  Mod ( Get ( RecordNumber ) ; 2 ) = 0

 

that did nothing, which is normal since I don't understand what it does and it must be adapted to the context.

 

For transparency,  I don't find that  and making the whole field transparent is not a solution for me.

Link to comment
Share on other sites

This is not as simple as it may seem. I don't know why transparent fields won't work for you, but if you really must, try defining a calculation field in the child table (the table whose records appear in the portal), cRecordNumber =

Get ( RecordNumber )

The result should be a Number and the calculation must be unstored. Once you have that, you can conditionally format you portal fields using:

not Mod ( ChildTable::cRecordNumber ; 2 )

as the formula.

 

 

Note that this will NOT work for the last portal row in a portal that is allowed to create new records; for this, the calculation needs to be more complex.

Link to comment
Share on other sites

This topic is 3830 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.