Login
`
Templates, Tools and Utilities
|
||
Add a comment to an Icetips ArticlePlease add your comments to this article.
Please note that you must provide both a name and a valid email address in order
for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!
Back to article list Search Articles Add Comment Printer friendly Direct link Templates: Finding the parent of a control or extension template 2004-04-01 -- Arnor Baldvinsson Newsgroups: comp.lang.clarion,softvelocity.clarion.templates
>#CONTROL(MyDropList, 'My Droplist Control'),MULTI,REQ(MyExtensionTemplate),Primary('MainFile')
>#Declare(%MyFile)
>#Prepare
> #SET(%MyFile, [the %Primary of the updateform] )
>#EndPrepare
>#PROMPT('MyField:',FIELD(%MYFILE)),%MyField
Haven't tried it but something like should work:
#PREPARE
#SELECT(%Primary,%ActiveTemplateParentInstance)
#ENDPREPARE
#PROMPT('My field',FIELD(%Primary)),%MyField
Best regards,
ArnĂ³r Baldvinsson
Icetips Software
San Antonio, Texas, USA
www.icetips.com
arnor@icetips.com
Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php
Today is November 23, 2024, 2:15 am This article has been viewed 35204 times. Google search has resulted in 6 hits on this article since January 25, 2004.
|
|