Help with OpenImageResource

Hello all,

I want to display gif based on a selection in a customer field (dialog list). This is not a WEB application.

Example: If Customer “A” is selected, gif “A” should be available

             Customer "B" is selected, gif "B" should be available

I don’t see the gif. in a RichText field.

database := @Subset(@DbName;-1);

Directory :=“/” + @ReplaceSubstring(database; “\”; “/”);

image1:=“<img src="”+Directory+“/Image1.gif?OpenImageResource" border=0>”;

image2:=“<img src="”+Directory+“/Image2.gif?OpenImageResource" border=0>”;

@If(Customer=“SomeHere”;image1;image2)

Thank you for your help.

Have a great day.

Subject: Help with OpenImageResource

Add the images to the ‘Images’ in the database

In the form goto,

Create → Image Resource.

Select here “Based on Formula”…et voila

Subject: RE: Help with OpenImageResource

Thank you for your post.“Based on the formula” option is not available under Create → Image Resource.

Thank you,

-v

Subject: RE: Help with OpenImageResource

The option is available in the Properties dialog for the image resource AFTER you create it.