June 22, 200916 yr Hi I have a button inside a portal. If there are no related records, the button/script is not activated. Is there a clever workaround for this, other than simply placing a second scripted button outside the portal? Any help/suggestions much appreciated. : Grant
June 22, 200916 yr Investigate this approach: http://www.fmforums.com/forum/showpost.php?post/149069/ ....as well as this: http://concise-design.com/downloads/accordion.zip Which teaches you yet another role for portals than just showing child records only. But you can also study the entire thread here: http://fmforums.com/forum/showtopic.php?tid/176396/tp/1/ --sd
June 22, 200916 yr Author Hi Soren, thanks for the reply. I'm probably not understanding these correctly, but it seems that the scripted buttons (in the example files) inside the portals, don't work when there is no related record. IOW, when there is nothing showing up in the portal. This is what I'm trying to circumvent. For a bit more info ... This is a simple scenario : related table for telephone numbers etc. A contact can be created without a tel number, but if that happens, then I can't use the 'clean' design of a button in a portal to create a new related record for them (in the telephone table). Maybe I'm missunderstanding??
June 22, 200916 yr The only way I know of to show a button in an empty portal row is to allow the relationship to create child records. This way the number of shown buttons will always equal the number of children + 1.
June 22, 200916 yr Kieren has a point here: http://www.databasepros.com/FMPro?-DB=resources.fp5&-lay=cgi&-format=list.html&-FIND=+&resource_id=DBPros000927 --sd
Create an account or sign in to comment