Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: Passing parameter to function from form markup datafolder

$
0
0
Good news everyone.

After a little bit of work, the code piece suggested in this post before will work in the next release (C1 4.2)
<KeySelector Label="SomeText" Help="" OptionsKeyField="Key" OptionsLabelField="Value" Required="true">
   <KeySelector.Selected>
       <cms:bind source="BindedValue" />
    </KeySelector.Selected>
    <KeySelector.Options>
       <f:function xmlns:f="http://www.composite.net/ns/function/1.0" name="DataFunctions.GetTeamMembers">
          <f:param name="name">
             <cms:read source="BindedValue" />
          </f:param>
        </f:function>
     </KeySelector.Options>
</KeySelector>

Viewing all articles
Browse latest Browse all 2540

Trending Articles