Jump to content

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

Recommended Posts

Posted

Hi All

I'm relatively new to filemaker, and now I have to pull it out of the bag.

I want to have either a pull down menu or radio buttons, with 5 entries.

I have designed a layout, and upon choosing/selecting 1 of the 5 choices I would like to link that to a client logo, so the logo will automatically be shown on my layout... why can't I seem to get this to work? apart from a complete lack of common sense! shocked.gif

All help greatly recieved.

Az

Posted

First create an repeated container field gLogos.

Put each logo img in proper repetition.

Now define calculated field cLogo rsult container as

case

(

choice=choice1, GetRepetition(gLogos,1),

choice=choice2, GetRepetition(gLogos,2),

choice=choice3, GetRepetition(gLogos,3),

choice=choice4, GetRepetition(gLogos,4),

choice=choice5, GetRepetition(gLogos,5),

)

dj

Posted

As you said:

I want to have either a pull down menu or radio buttons, with 5 entries.

Well choice should be the name of the above field.

Dj

Posted

Ok I got that, I tought filemaker was simple ???-)

I can't get this working

Case

(

logo_selecta=logo_selecta1, GetRepetition(gLogos,1),

logo_selecta=logo_selecta2, GetRepetition(gLogos,2),

logo_selecta=logo_selecta3, GetRepetition(gLogos,3),

logo_selecta=logo_selecta4, GetRepetition(gLogos,4),

logo_selecta=logo_selecta5, GetRepetition(gLogos,5),

)

logo_selecta is the name of the field I use for selecting the logo

"Either an operator was omited, this function cannot be found or "(" was not expected here."

Any clues?

Posted

Hi ,

You had a couple of errors in you calculation. One, you need to put your text logo_selecta1, etc. in quotes as shown below and to, you had one too many commas in your calc at the bottom after gLogos,t)

Case(

logo_selecta="logo_selecta1", GetRepetition(gLogos,1),

logo_selecta="logo_selecta2", GetRepetition(gLogos,2),

logo_selecta="logo_selecta3", GetRepetition(gLogos,3),

logo_selecta="logo_selecta4", GetRepetition(gLogos,4),

logo_selecta="logo_selecta5", GetRepetition(gLogos,5)

)

HTH

Lee

Posted

Also, I should have said, just copy my calculation and replace your own, as it should be what you need.

Lee

Posted

Hi DI LUCA

I would like it to be an image...

I wanted to create ???

A field with 5 radio/checkboxes, that represent my 5 clients.

Once selected, say button 4, this would tell my layout to use "clients4" logo.

I have stored these logos in a repeating container, so far so good.

I have defined my "logo_selecta" field with radio buttons and made it a member of a value list (not sure if this is right?) where I have defined a value list, with the names of my five clients.... with me so far?

What I can't get right is the calculation to use "client4's" logo after clicking the radio button.

I think I may have bitten off more than I can proverbially chew!.. oops

I have tried the scripts above, but none of them work properly... or maybe it's me?

Is this enough detail?

Az :-(

Posted

And the winner is ......

.

.

.

.

.

.

.

.

.

Lee Smith, c'mon down

It works at treat!, same time tomorrow, for my next project?

Thanks everyone, djgogi, DI LUCA

Posted

ooops...

The problem was, I hadn't correctly specified the value list name.

As for the prize, well you get the chance to answer this questions... lol

Is it possible to have a radio button, that will carry it's selection through to 1 of 5 layouts?

ie

I have the a radio button allowing logos 1-5 to be choosen.

I would then like another radio button, with "choice" 1-5.

When I have finished entering other fields in the record, I currently click a button, that then goes to a "layout".

The button uses "go to layout" command, how can I control this so that if "choice" 3 is selected on the radio button, I can steer the user to "layout 3" instead of "go to layout"?

Is this possible easily, or is this like "pushing water uphill"?

Sorry for imposing.... again!

Posted

me again

Please ignore my last post, as I've managed with the help of this forum to sort this out.!

A surprise to even myself, my learning curve, has just got One step smaller!!

Thanks again everyone!

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