Hello Isomorphic
I have a filter form that has selected values for context that I would like to be able to access in a window modal DynamicForm.
The search form does not fall into the default ruleScope and it seems that I can add this form using the Canvas.provideRuleScope property but cannot figure out how to use it and cannot find any forum posts or any other mention of its usage other than this :
https://www.smartclient.com/smartcli...ideRuleContext
Here is the simlified XML component definition I have:
[HTML]<SearchForm ID="SrchFrm123"><fields><field name="bling"/></fields><SearchForm>
<ListGrid><...></ListGrid>
<Window><DynamicForm ID="CrudFrm678"><fields><field name="blah">...</fields></DynamicForm></Window>[/HTML]
I would like to add a dynamc optionCriteria to field "blah" that fetches the value of field "bling" using the optionCriteria like this:
[HTML]<field name="blah" title="My Field" type="select" autoFetchData="false" editorType="ComboBoxItem" displayField="blah_name" valueField="id" optionDataSource="S9d7c4fd038_ds" ><optionCriteria><fieldName>"bling"</fieldName><operator>"equals"</operator><valuePath>"SrchFrm123.values.bling"</valuePath></optionCriteria>[/HTML]
Is it possible to use provideRuleScope attribute to make the SrchFrm123 form accessible from the CrudFrm678 DynamicForm?
Help would be very much appreciated.
I have a filter form that has selected values for context that I would like to be able to access in a window modal DynamicForm.
The search form does not fall into the default ruleScope and it seems that I can add this form using the Canvas.provideRuleScope property but cannot figure out how to use it and cannot find any forum posts or any other mention of its usage other than this :
https://www.smartclient.com/smartcli...ideRuleContext
Here is the simlified XML component definition I have:
[HTML]<SearchForm ID="SrchFrm123"><fields><field name="bling"/></fields><SearchForm>
<ListGrid><...></ListGrid>
<Window><DynamicForm ID="CrudFrm678"><fields><field name="blah">...</fields></DynamicForm></Window>[/HTML]
I would like to add a dynamc optionCriteria to field "blah" that fetches the value of field "bling" using the optionCriteria like this:
[HTML]<field name="blah" title="My Field" type="select" autoFetchData="false" editorType="ComboBoxItem" displayField="blah_name" valueField="id" optionDataSource="S9d7c4fd038_ds" ><optionCriteria><fieldName>"bling"</fieldName><operator>"equals"</operator><valuePath>"SrchFrm123.values.bling"</valuePath></optionCriteria>[/HTML]
Is it possible to use provideRuleScope attribute to make the SrchFrm123 form accessible from the CrudFrm678 DynamicForm?
Help would be very much appreciated.
Comment