Jump to content

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

Recommended Posts

Posted

Probably a simple question, but i wanted to use a repeating calc field to display a series of navigational buttons. If there are four repetitions, I wanted to have each field act as a button containing text indicating which layout the buttons would send you. When defining the calc field, I used a Case and GetActiveRepetition function with the corresponding text like so:

 

 

Case(
Get ( ActiveRepetitionNumber )  = 1; "Create Jobs";
Get ( ActiveRepetitionNumber )  = 2; "Search Jobs";
Get ( ActiveRepetitionNumber )  = 3; "Search Companies";
Get ( ActiveRepetitionNumber )  = 4; "Search Invoices")

 

My issue is that the text displays but only when I place the cursor in the field. What am I doing wrong? Meaning, how can I get the text to just display on its own without engaging the calc field?

Posted

Try

 

Let ( labels = List ( "Create Jobs"; "Search Jobs"; "Search Companies"; "Search Invoices");
        GetValue ( labels; Get ( CalculationRepetitionNumber ) )
      )

  • Like 1
Posted

Another possibility with the same effect:

Choose ( Get ( CalculationRepetitionNumber ) - 1 ;
    "Create Jobs" ;
    "Search Jobs" ;
    "Search Companies" ;
    "Search Invoices"
)
  • Like 1

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