RodM Posted March 14, 2010 Posted March 14, 2010 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
Wim Decorte Posted March 14, 2010 Posted March 14, 2010 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.
RodM Posted March 20, 2010 Author Posted March 20, 2010 (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 Edited March 20, 2010 by Guest
TheTominator Posted March 20, 2010 Posted March 20, 2010 (edited) This brings up Where do i understand these kind or get info imagewin:/ http://www.filemaker.com/help/html/create_db.8.32.html#1030283 Edited March 20, 2010 by Guest
RodM Posted March 20, 2010 Author Posted March 20, 2010 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....
TheTominator Posted March 21, 2010 Posted March 21, 2010 (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 March 21, 2010 by Guest
RodM Posted March 21, 2010 Author Posted March 21, 2010 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
RodM Posted March 22, 2010 Author Posted March 22, 2010 FIGURED OUT THE PROBLEM I NEEDED A ' GoTo Field' Then the Insert command As said.. i still figuring it out.. :)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now