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

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

Recommended Posts

Posted

Hi,

I have attached an Jpg image showing how I am trying to insert an Avatar image to a container using a script. My patient file image usually is blank.. this would be a temporary image,,,depending if Male or Female, I intend to stuff 1 of 20 pre images from a preset determined path....to fill blank Patient field by reference.

Seems to be a path problem on the Insert command that works if I hard code the path

Any ideas are help... TIA too

avatars.jpg

Posted

the answer is right there on the "insert" dialog: you need to make sure the path is the correct FM syntax which is different than the regular OS syntax:

imagewin:/f:/.....

So you'll need to make sure you create your variable in this syntax.

Posted (edited)

thanks previously.. alittle vague on the format...

Attach image as i tried various formats using this command ,,,my error capture status is 1

This brings up Where do i understand these kind or get info imagewin:/

i.e. syntax example give using [color:red]forward slashes, and [color:blue]my code backlashes..

I tried several combination's thanks for your help

that information

and like these others...

when select import or export commands..

I have no book references nearby...books in storage out of state

Trying to answer most questions via net/online etc

.. Thanks

Error1.jpg

Edited by Guest
Posted

Appreciate the feedback so far...

Okay.. i think i have the $path exactly

My image container has a button calling this script code..

If path is right... then why isn't the INSERT $path

doing nothing....

eorror2.jpg

Posted (edited)

Instead of using Insert Picture, simply use Set Field and assign the path directly to the container. Yes, I know it is text value and not a "container" value, but it works to directly create the reference.

If you are still in doubt about the path string you have created, insert a reference to a picture manually and then GetAsText(theContainerField) and see what it says. You are trying to reproduce the filewin: line that you see there.

Edited by Guest
Posted

Gosh... I have looked at this... path using your suggestion.. Right top image or the container path is same as GetasText, same as Window explorer path..

Do you see anything?

Using the Set Fields or otherwise

your_eyes_better_than_mine.jpg

Posted

FIGURED OUT THE PROBLEM

I NEEDED A ' GoTo Field'

Then the Insert command

As said.. i still figuring it out..

:):):):):) :)

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