![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
I have a layout with multiple tabs on it showing records from a contacts table. There are multiple contact types - ie vendors, employees and clients. When I select the tab labeled "Vendor" I would like to populate a field used in the relationship into contacts so that only the vendor types are shown in in the portal. It's easy enough to name the tab control objects by the name of the filter to apply but I cannot figure out how to get the object name into the relationship field. BTW - I guess that I could use script triggers except that this app is going to be served via IWP and I don't think they would work. |
#4
| |||
| |||
|
|
FileMaker: close but no cigar. Maybe I am missing the subtlety. |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
Fabrice Nordmann has written some brilliant custom functions that are available on Brian Dunning's site. Check out http://www.briandunning.com/cf/809 for his function isFrontMostTabPanel ( _objectName ). But functions in themselves won't trigger a script when a tab is clicked, so you'd still need something to set the filter field, which is why I was suggesting buttons instead of tab panels or separate portals using different match fields. It depends on the layout and what you're trying to achieve. |
|
Hey, Mr. 105: It's not all bad news. FM Inc. has delivered a pretty sweet tool. Just because we want more doesn't mean they're not doing a hell of job -- it just means they've got us warmed up for what comes next. |
#7
| |||
| |||
|
|
On 2009-12-17 13:27:23 -0800, 105 <cortical (AT) internode (DOT) on.net> said: FileMaker: close but no cigar. Maybe I am missing the subtlety. With those functions and one other, GetLayoutObjectAttribute(probably need Get(ActiveLayoutObjectName) here, IsFrontmostTab) please look this up for precise name & syntax, you can test which tab has focus. When you apply the above function to the tab object, it will return a 1 or 0 depending if the named object is the frontmost tab. I haven't needed to use this much so I'm a little fuzzy on exact syntax. But it's the only way to test whether a specific tab is frontmost (has focus or is active). |
#8
| |||
| |||
|
|
On 2009-12-17 13:27:23 -0800, 105 <cortical (AT) internode (DOT) on.net> said: FileMaker: close but no cigar. Maybe I am missing the subtlety. With those functions and one other, GetLayoutObjectAttribute(probably need Get(ActiveLayoutObjectName) here, IsFrontmostTab) please look this up for precise name & syntax, you can test which tab has focus. When you apply the above function to the tab object, it will return a 1 or 0 depending if the named object is the frontmost tab. I haven't needed to use this much so I'm a little fuzzy on exact syntax. But it's the only way to test whether a specific tab is frontmost (has focus or is active). -- Lynn Allen -- www.semiotics.com Member FBA FM 10 Certified Developer |
![]() |
| Thread Tools | |
| Display Modes | |
| |