Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

I am creating a cdml solution that requires a random image.

I have a list of theatres with related movies. When I list the theatres I want one random movie image to show beside the name.

Posted

give your movie images a serial number starting at 1, step 1

for the key in the main db use an unstored calculation

int(RANDOM * count(MOVIEIMG::ID))

Posted

that does not seem to work. A bracket it missing but I have tried different combinations and zero still appears.

Posted

Wups -- I added an open parenthesis at the beginning.

But there may be a problem using the "Int" function. Try this:

Round((Random * (count(MovieImg::ID) - .5)) + .5, 0)

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