Jump to content
Sign in to follow this  
wedgeman

Viewing image in separate window, from two different portals

Recommended Posts

So i'm dealing with two tables.

 

1.  VisitTable.

2. GraphicsTable

 

in a VisitTable layout, i have one or two portals related to the GraphicsTable, each related by a different factor.  One portal would be related by a Date field, the other would be a ClientName field..

My desire is to click on a thumbnail in either one of these portals, and have that selected image be displayed in a separate/larger image window (which could be a container field in the current table, Or another portal?  I don't care how - i just need to have it show up) 

I don't know the best method for doing this (ie., click thumbnail to have image fillin a separate location).  In this particular instance, I don't want this to be a separate window, but to display in a container field view on the current window/layout. 

 

how do I accomplish this?

thx

 

 

image.thumb.png.957dca26c99661e3f0d4101a9f5c3369.png

Edited by wedgeman

Share this post


Link to post
Share on other sites
3 hours ago, wedgeman said:

My desire is to click on a thumbnail in either one of these portals, and have that selected image be displayed in a separate/larger image window

There are several ways you could accomplish this.

One is to set a global container field (which could be in any table) to the image in the clicked portal row.

Here's another one:
https://fmforums.com/topic/71867-getting-more-out-of-filtered-portals-2view-selected-child/

 

Share this post


Link to post
Share on other sites
6 hours ago, comment said:

There are several ways you could accomplish this.

One is to set a global container field (which could be in any table) to the image in the clicked portal row.

Here's another one:
https://fmforums.com/topic/71867-getting-more-out-of-filtered-portals-2view-selected-child/

 

Many thanks.  Yes, i was going to do the first (global field), but for some dumb reason I can get the field name, but getting the global container to show the contents (not the name of) the portal row is killing me.

 

don't know if this is the best (probably not), but i created another relationship by GraphicsTableID to Visits table, used a global container in Visits, and did a set-field on a script trigger...

Edited by wedgeman
solution

Share this post


Link to post
Share on other sites
6 hours ago, wedgeman said:

for some dumb reason I can get the field name, but getting the global container to show the contents (not the name of) the portal row is killing me.

You're not sharing what you did, so we can't tell what's wrong with it.

It should be simply a button that does:

Set Field [ AnyTable::gContainerfield; GraphicsTO::Imagefield ]

Make sure GraphicsTO is the same table occurrence used by the portal where the button is.

Share this post


Link to post
Share on other sites
18 minutes ago, comment said:

You're not sharing what you did, so we can't tell what's wrong with it.

It should be simply a button that does:


Set Field [ AnyTable::gContainerfield; GraphicsTO::Imagefield ]

Make sure GraphicsTO is the same table occurrence used by the portal where the button is.

ah

 

the problem is that i don't know how to get the field occurence, i'm guesisng because I have a portal row, not a single image.  i tried a few "get" sequences, but ended up with the field name of the related field showing in the container (ie., the container showed "graphics::imagefield" in the container, but not a picture) -  because I'm suspecting that i didn't figure out how to actually get THAT INSTANCE of the row...

Share this post


Link to post
Share on other sites
30 minutes ago, comment said:

You're not sharing what you did, so we can't tell what's wrong with it.

 

Share this post


Link to post
Share on other sites
1 hour ago, wedgeman said:

the problem is that i don't know how to get the field occurence

Since you might click either portal, and the portals are based upon different table occurrences, how do you set a global field with the value within the same script, depending upon two different table occurrences?  And if you use a script attached, you can't identify the 'active field' to GET the activetablename.  Is this where you are stuck?

AND without hard-coding the source table/field name.

Edited by LaRetta

Share this post


Link to post
Share on other sites
17 hours ago, LaRetta said:

Since you might click either portal, and the portals are based upon different table occurrences, how do you set a global field with the value within the same script, depending upon two different table occurrences?  And if you use a script attached, you can't identify the 'active field' to GET the activetablename.  Is this where you are stuck?

AND without hard-coding the source table/field name.

yes, this was more (or less) where I got stuck..

I did a somewhat 'dirty' work-around.

my workaround was to create 2 separate scripts (for each portal), setting global field, which is the key field for the large image.. Since all images are stored in the same table, the ID# (key field) works...  not elegant.. but it works.and, as this is a freebie project for a charity, i'm rather limited on how much time I can invest further in cleaning it up.. already 2x's as long on this as originally allotted...

thanks for the help.

Edited by wedgeman

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Similar Content

    • By Randy Bennett
      Yes, I did say iPhone 5 -
      I have a small database i created that has a few portals on different layouts - Everything works fine on my Mac, fine on my iPhone X, even fine on my iPad mini
      However, I need it to also work on an old iPhone 5 and the portal data is just blank - nothing. In fact, I really ONLY need it to work on this old iPhone 5 (This particular database will go to a music festival to be used by several other people and I can't give them my iPhone) 
      I have another layout with different portals that are working on the iPhone 5 - but not this main screen. 
      I have made sure that all of my fields are small and inside the portal. - So, I am stuck as to why? BTW - It is Filemaker Go 16.0.4.456 (The latest version that I can install on an iPhone 5)

    • By Answers
      I have a customer that has 3TB of photos in the program Picasa. They use it to edit images and then put some in Filemaker. Currently the images are on a NAS. The problem is it seems to be getting slower and slower. Picasa is discounted so I'm looking for a replacement that can handle the large amount of images they take on the job site and interact with Filemaker, seamlessly. they run on a windows platform but would like to perhaps introduce iPads to the mix in the future.
      Not sure if this is the right place to post this question but I thought I'd give it a go.
      Any guidance on the matter would be greatly appreciated. 
    • By Gismo12
      Hi,
      How will I approach to delete all records in a table where the container is empty.
      I tried a few scripts but ran into problems with most of them.
      Loop stayed in a loop
      I tried calculating container length and delete if length is zero, but the field does not calculate to a zero even if i set default to zero
    • By cat traveller
      Hi everyone,
      on a file accessed via filemaker Go 17, I am using a scripted navigation to move records up and down in a portal that is inside a popover.
      This has worked in filemaker 12 like a charm and also works on a filemaker client. The records smoothly move up and down the list. 
      However in Filemaker Go, the portal follows every move of the script as if it is not aware of the freeze portal.
      EG the down button is to move the record one record further down inside the filtered and sorted portal (like so)
      This is the script.

      - freeze window and go to portal
      - go to first line of portal and loop through the portal until I hit the record to move
      - go to next line and give the position field the value of my record to be moved
      - go to line above and give the position field the value of my record +1
      - commit record and refresh portal via an x join 
      - go to last line of the portal 
      - go to the line of position of my record to be moved. 
       
      Would anyone be aware of this issue or know a workaround to stop the portal from flickering?
       
      Thanks so much
       
    • By Gismo12
      Hi,
       
      I have a drop down in a portal, how do i filter the drop down box to only display the record relating the record in focus on the active layout where the portal is inserted?
      example: I have a customer selected in my customer layout, the customer has several products related to that customer. when I click on the drop down list in the portal, I only want to see the products for that specific customer. The drop down is in the warranty portal, products are saved in the product table with a reference to the customer.
       
      Please could you assist?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.