Hi,
ich habe ein ähnliches Problem. Allerdings verwende ich in dem Formular zwei Comboboxen wie im "Supplier"-Beispiel.
Ich habe zwei Datenquellen (Ober- und Unterkategorien - > N:M Beziehung über FS_LIST), welche ich dynamisch darstellen möchte.
Allerdings werden Unterkategorien (meine untere Combobox) immer leer dargestellt.
Comboboxen:
<CMS_INPUT_COMBOBOX name="meta_research_topic">
<CMS_INCLUDE_OPTIONS type="database">
<LABELS>
<LABEL lang="*">#item.topic</LABEL>
</LABELS>
<TABLE>research_topic</TABLE>
</CMS_INCLUDE_OPTIONS>
<LANGINFOS>
<LANGINFO lang="*" label="Research Topic"/>
<LANGINFO lang="DE" label="Thema"/>
</LANGINFOS>
</CMS_INPUT_COMBOBOX>
<CMS_INPUT_COMBOBOX name="meta_research_subtopic">
<CMS_INCLUDE_OPTIONS type="database">
<LABELS>
<LABEL lang="*">#item.subtopic</LABEL>
</LABELS>
<QUERY name="research_subtopics_by_topic"/>
<TABLE>research_subtopic</TABLE>
</CMS_INCLUDE_OPTIONS>
<LANGINFOS>
<LANGINFO lang="*" label="Research Subtopic"/>
<LANGINFO lang="DE" label="Unterthema"/>
</LANGINFOS>
</CMS_INPUT_COMBOBOX>
Die Regel dazu:
<ON_EVENT>
<IF>
<PROPERTY source="meta_research_subtopic" name="FOCUS"/>
</IF>
<WITH>
<PROPERTY source="meta_research_topic" name="VALUE"/>
</WITH>
<DO>
<PROPERTY source="meta_research_subtopic" name="query.topic_id"/>
</DO>
</ON_EVENT>
Query:
<QUERY entityType="research_subtopic">
<FILTERPARAM parameter="topic_id" datatype="java.lang.Integer" value="-1"/>
<EQ attribute="research_topicList.fs_id" parameter="topic_id"/>
</QUERY>
Hab ihr eine Idee?
Grüße
Lukas