You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Christopher Snow <sn...@coralms.com> on 2007/02/05 00:01:30 UTC
form-widget parameters problem
I have a screen that includes two forms (findRisks and ListRisks). I'm
having problems restricting the list based on the value of the find.
Can anyone point me to where I am going wrong?
Many thanks ...
Controller:
===========
<request-map uri="FindRisk">
<security https="true" auth="true"/>
<response name="success" type="view" value="FindRisk"/>
</request-map>
...
<view-map name="FindRisk" type="screen"
page="component://riskmanagement/widget/riskmanagement/RiskScreens.xml#FindRisk"/>
RiskScreens.xml:
================
<screen name="FindRisk">
...
<include-form name="findRisks"
location="component://riskmanagement/widget/riskmanagement/RiskForms.xml"/>
<include-form name="ListRisks"
location="component://riskmanagement/widget/riskmanagement/RiskForms.xml"/>
RiskForms.xml:
==============
<form name="findRisks" target="FindRisk" title="" type="single"
default-title-style="tableheadtext" default-tooltip-style="tabletext">
<field name="riskId" title="Risk id"><text/></field>
<field name="submitButton" title="${uiLabelMap.RiskId}"><submit
button-type="button"/></field>
</form>
<form name="ListRisks" type="list" list-name="risks"
paginate-target="FindRisk" default-title-style="tableheadtext"
default-widget-style="tabletext" default-tooltip-style="tabletext">
<actions>
<entity-condition entity-name="Risk">
<!-- ??? what should go in the condition ??? -->
<condition-expr field-name="riskId" ??? />
</entity-condition>
</actions>
...
Re: form-widget parameters problem
Posted by Christopher Snow <sn...@coralms.com>.
Is there a form-widget.xsd reference? I couldn't find one, or any
annotations in the xsd.
On Sun, 2007-02-04 at 15:23 -0800, Chris Howe wrote:
> That looks like an "aha" moment.... :-)
>
> Quick, what documentation is missing or is difficult to find to get you
> there faster? When I passed that moment, I looked back and was like
> it's all there. If you could add a missing "link" to the wiki, I'm
> sure others will appreciate it greatly.
>
>
> --- Christopher Snow <sn...@coralms.com> wrote:
>
> > Chris,
> >
> > It's so obvious now!
> >
> > Many thanks,
> >
> > Chris ...
> >
> >
> > On Sun, 2007-02-04 at 15:04 -0800, Chris Howe wrote:
> > > <condition-expr field-name="riskId" ??? />
> > >
> > > <condition-expr field-name="riskId" env-name="parameters.riskId" />
> > >
> > >
> > > --- Christopher Snow <sn...@coralms.com> wrote:
> > >
> > > > I have a screen that includes two forms (findRisks and
> > ListRisks).
> > > > I'm
> > > > having problems restricting the list based on the value of the
> > find.
> > > > Can anyone point me to where I am going wrong?
> > > >
> > > > Many thanks ...
> > > >
> > > >
> > > >
> > > > Controller:
> > > > ===========
> > > >
> > > > <request-map uri="FindRisk">
> > > > <security https="true" auth="true"/>
> > > > <response name="success" type="view" value="FindRisk"/>
> > > > </request-map>
> > > > ...
> > > > <view-map name="FindRisk" type="screen"
> > > >
> > >
> >
> page="component://riskmanagement/widget/riskmanagement/RiskScreens.xml#FindRisk"/>
> > > >
> > > >
> > > > RiskScreens.xml:
> > > > ================
> > > >
> > > > <screen name="FindRisk">
> > > > ...
> > > > <include-form name="findRisks"
> > > >
> > >
> >
> location="component://riskmanagement/widget/riskmanagement/RiskForms.xml"/>
> > > > <include-form name="ListRisks"
> > > >
> > >
> >
> location="component://riskmanagement/widget/riskmanagement/RiskForms.xml"/>
> > > >
> > > > RiskForms.xml:
> > > > ==============
> > > >
> > > > <form name="findRisks" target="FindRisk" title="" type="single"
> > > > default-title-style="tableheadtext"
> > > > default-tooltip-style="tabletext">
> > > >
> > > > <field name="riskId" title="Risk id"><text/></field>
> > > > <field name="submitButton"
> > title="${uiLabelMap.RiskId}"><submit
> > > > button-type="button"/></field>
> > > >
> > > > </form>
> > > >
> > > > <form name="ListRisks" type="list" list-name="risks"
> > > > paginate-target="FindRisk" default-title-style="tableheadtext"
> > > > default-widget-style="tabletext"
> > default-tooltip-style="tabletext">
> > > >
> > > > <actions>
> > > > <entity-condition entity-name="Risk">
> > > >
> > > > <!-- ??? what should go in the condition ??? -->
> > > >
> > > > <condition-expr field-name="riskId" ??? />
> > > >
> > > > </entity-condition>
> > > > </actions>
> > > >
> > > > ...
> > > >
> > >
> >
>
Re: form-widget parameters problem
Posted by Christopher Snow <sn...@coralms.com>.
The next question - how to refer to <range> parameter values
(parameters.riskId.eq / parameters.riskId.lt ??). Is there any
documentation on it? Google didn't bring anything up.
On Sun, 2007-02-04 at 15:23 -0800, Chris Howe wrote:
> That looks like an "aha" moment.... :-)
>
> Quick, what documentation is missing or is difficult to find to get you
> there faster? When I passed that moment, I looked back and was like
> it's all there. If you could add a missing "link" to the wiki, I'm
> sure others will appreciate it greatly.
>
>
> --- Christopher Snow <sn...@coralms.com> wrote:
>
> > Chris,
> >
> > It's so obvious now!
> >
> > Many thanks,
> >
> > Chris ...
> >
> >
> > On Sun, 2007-02-04 at 15:04 -0800, Chris Howe wrote:
> > > <condition-expr field-name="riskId" ??? />
> > >
> > > <condition-expr field-name="riskId" env-name="parameters.riskId" />
> > >
> > >
> > > --- Christopher Snow <sn...@coralms.com> wrote:
> > >
> > > > I have a screen that includes two forms (findRisks and
> > ListRisks).
> > > > I'm
> > > > having problems restricting the list based on the value of the
> > find.
> > > > Can anyone point me to where I am going wrong?
> > > >
> > > > Many thanks ...
> > > >
> > > >
> > > >
> > > > Controller:
> > > > ===========
> > > >
> > > > <request-map uri="FindRisk">
> > > > <security https="true" auth="true"/>
> > > > <response name="success" type="view" value="FindRisk"/>
> > > > </request-map>
> > > > ...
> > > > <view-map name="FindRisk" type="screen"
> > > >
> > >
> >
> page="component://riskmanagement/widget/riskmanagement/RiskScreens.xml#FindRisk"/>
> > > >
> > > >
> > > > RiskScreens.xml:
> > > > ================
> > > >
> > > > <screen name="FindRisk">
> > > > ...
> > > > <include-form name="findRisks"
> > > >
> > >
> >
> location="component://riskmanagement/widget/riskmanagement/RiskForms.xml"/>
> > > > <include-form name="ListRisks"
> > > >
> > >
> >
> location="component://riskmanagement/widget/riskmanagement/RiskForms.xml"/>
> > > >
> > > > RiskForms.xml:
> > > > ==============
> > > >
> > > > <form name="findRisks" target="FindRisk" title="" type="single"
> > > > default-title-style="tableheadtext"
> > > > default-tooltip-style="tabletext">
> > > >
> > > > <field name="riskId" title="Risk id"><text/></field>
> > > > <field name="submitButton"
> > title="${uiLabelMap.RiskId}"><submit
> > > > button-type="button"/></field>
> > > >
> > > > </form>
> > > >
> > > > <form name="ListRisks" type="list" list-name="risks"
> > > > paginate-target="FindRisk" default-title-style="tableheadtext"
> > > > default-widget-style="tabletext"
> > default-tooltip-style="tabletext">
> > > >
> > > > <actions>
> > > > <entity-condition entity-name="Risk">
> > > >
> > > > <!-- ??? what should go in the condition ??? -->
> > > >
> > > > <condition-expr field-name="riskId" ??? />
> > > >
> > > > </entity-condition>
> > > > </actions>
> > > >
> > > > ...
> > > >
> > >
> >
>
Re: form-widget parameters problem
Posted by Jonathon -- Improov <jo...@improov.com>.
Hehe. I see 3 more new posts from Christopher Snow with new questions.
How many "aha" moments does it take to learn OFBiz? How many Jonathons does it take to change a
light bulb? How many... ok, there's work, Jonathon.
The framework does have very accessible names. Like "field-name" means just that, and "env-name"
means a variable from the environment. Or servlet context, rather.
Jonathon
Chris Howe wrote:
> That looks like an "aha" moment.... :-)
>
> Quick, what documentation is missing or is difficult to find to get you
> there faster? When I passed that moment, I looked back and was like
> it's all there. If you could add a missing "link" to the wiki, I'm
> sure others will appreciate it greatly.
>
>
> --- Christopher Snow <sn...@coralms.com> wrote:
>
>> Chris,
>>
>> It's so obvious now!
>>
>> Many thanks,
>>
>> Chris ...
>>
>>
>> On Sun, 2007-02-04 at 15:04 -0800, Chris Howe wrote:
>>> <condition-expr field-name="riskId" ??? />
>>>
>>> <condition-expr field-name="riskId" env-name="parameters.riskId" />
>>>
>>>
>>> --- Christopher Snow <sn...@coralms.com> wrote:
>>>
>>>> I have a screen that includes two forms (findRisks and
>> ListRisks).
>>>> I'm
>>>> having problems restricting the list based on the value of the
>> find.
>>>> Can anyone point me to where I am going wrong?
>>>>
>>>> Many thanks ...
>>>>
>>>>
>>>>
>>>> Controller:
>>>> ===========
>>>>
>>>> <request-map uri="FindRisk">
>>>> <security https="true" auth="true"/>
>>>> <response name="success" type="view" value="FindRisk"/>
>>>> </request-map>
>>>> ...
>>>> <view-map name="FindRisk" type="screen"
>>>>
> page="component://riskmanagement/widget/riskmanagement/RiskScreens.xml#FindRisk"/>
>>>>
>>>> RiskScreens.xml:
>>>> ================
>>>>
>>>> <screen name="FindRisk">
>>>> ...
>>>> <include-form name="findRisks"
>>>>
> location="component://riskmanagement/widget/riskmanagement/RiskForms.xml"/>
>>>> <include-form name="ListRisks"
>>>>
> location="component://riskmanagement/widget/riskmanagement/RiskForms.xml"/>
>>>>
>>>> RiskForms.xml:
>>>> ==============
>>>>
>>>> <form name="findRisks" target="FindRisk" title="" type="single"
>>>> default-title-style="tableheadtext"
>>>> default-tooltip-style="tabletext">
>>>>
>>>> <field name="riskId" title="Risk id"><text/></field>
>>>> <field name="submitButton"
>> title="${uiLabelMap.RiskId}"><submit
>>>> button-type="button"/></field>
>>>>
>>>> </form>
>>>>
>>>> <form name="ListRisks" type="list" list-name="risks"
>>>> paginate-target="FindRisk" default-title-style="tableheadtext"
>>>> default-widget-style="tabletext"
>> default-tooltip-style="tabletext">
>>>> <actions>
>>>> <entity-condition entity-name="Risk">
>>>>
>>>> <!-- ??? what should go in the condition ??? -->
>>>>
>>>> <condition-expr field-name="riskId" ??? />
>>>>
>>>> </entity-condition>
>>>> </actions>
>>>>
>>>> ...
>>>>
>
>
Re: form-widget parameters problem
Posted by Chris Howe <cj...@yahoo.com>.
That looks like an "aha" moment.... :-)
Quick, what documentation is missing or is difficult to find to get you
there faster? When I passed that moment, I looked back and was like
it's all there. If you could add a missing "link" to the wiki, I'm
sure others will appreciate it greatly.
--- Christopher Snow <sn...@coralms.com> wrote:
> Chris,
>
> It's so obvious now!
>
> Many thanks,
>
> Chris ...
>
>
> On Sun, 2007-02-04 at 15:04 -0800, Chris Howe wrote:
> > <condition-expr field-name="riskId" ??? />
> >
> > <condition-expr field-name="riskId" env-name="parameters.riskId" />
> >
> >
> > --- Christopher Snow <sn...@coralms.com> wrote:
> >
> > > I have a screen that includes two forms (findRisks and
> ListRisks).
> > > I'm
> > > having problems restricting the list based on the value of the
> find.
> > > Can anyone point me to where I am going wrong?
> > >
> > > Many thanks ...
> > >
> > >
> > >
> > > Controller:
> > > ===========
> > >
> > > <request-map uri="FindRisk">
> > > <security https="true" auth="true"/>
> > > <response name="success" type="view" value="FindRisk"/>
> > > </request-map>
> > > ...
> > > <view-map name="FindRisk" type="screen"
> > >
> >
>
page="component://riskmanagement/widget/riskmanagement/RiskScreens.xml#FindRisk"/>
> > >
> > >
> > > RiskScreens.xml:
> > > ================
> > >
> > > <screen name="FindRisk">
> > > ...
> > > <include-form name="findRisks"
> > >
> >
>
location="component://riskmanagement/widget/riskmanagement/RiskForms.xml"/>
> > > <include-form name="ListRisks"
> > >
> >
>
location="component://riskmanagement/widget/riskmanagement/RiskForms.xml"/>
> > >
> > > RiskForms.xml:
> > > ==============
> > >
> > > <form name="findRisks" target="FindRisk" title="" type="single"
> > > default-title-style="tableheadtext"
> > > default-tooltip-style="tabletext">
> > >
> > > <field name="riskId" title="Risk id"><text/></field>
> > > <field name="submitButton"
> title="${uiLabelMap.RiskId}"><submit
> > > button-type="button"/></field>
> > >
> > > </form>
> > >
> > > <form name="ListRisks" type="list" list-name="risks"
> > > paginate-target="FindRisk" default-title-style="tableheadtext"
> > > default-widget-style="tabletext"
> default-tooltip-style="tabletext">
> > >
> > > <actions>
> > > <entity-condition entity-name="Risk">
> > >
> > > <!-- ??? what should go in the condition ??? -->
> > >
> > > <condition-expr field-name="riskId" ??? />
> > >
> > > </entity-condition>
> > > </actions>
> > >
> > > ...
> > >
> >
>
Re: form-widget parameters problem
Posted by Christopher Snow <sn...@coralms.com>.
Chris,
It's so obvious now!
Many thanks,
Chris ...
On Sun, 2007-02-04 at 15:04 -0800, Chris Howe wrote:
> <condition-expr field-name="riskId" ??? />
>
> <condition-expr field-name="riskId" env-name="parameters.riskId" />
>
>
> --- Christopher Snow <sn...@coralms.com> wrote:
>
> > I have a screen that includes two forms (findRisks and ListRisks).
> > I'm
> > having problems restricting the list based on the value of the find.
> > Can anyone point me to where I am going wrong?
> >
> > Many thanks ...
> >
> >
> >
> > Controller:
> > ===========
> >
> > <request-map uri="FindRisk">
> > <security https="true" auth="true"/>
> > <response name="success" type="view" value="FindRisk"/>
> > </request-map>
> > ...
> > <view-map name="FindRisk" type="screen"
> >
> page="component://riskmanagement/widget/riskmanagement/RiskScreens.xml#FindRisk"/>
> >
> >
> > RiskScreens.xml:
> > ================
> >
> > <screen name="FindRisk">
> > ...
> > <include-form name="findRisks"
> >
> location="component://riskmanagement/widget/riskmanagement/RiskForms.xml"/>
> > <include-form name="ListRisks"
> >
> location="component://riskmanagement/widget/riskmanagement/RiskForms.xml"/>
> >
> > RiskForms.xml:
> > ==============
> >
> > <form name="findRisks" target="FindRisk" title="" type="single"
> > default-title-style="tableheadtext"
> > default-tooltip-style="tabletext">
> >
> > <field name="riskId" title="Risk id"><text/></field>
> > <field name="submitButton" title="${uiLabelMap.RiskId}"><submit
> > button-type="button"/></field>
> >
> > </form>
> >
> > <form name="ListRisks" type="list" list-name="risks"
> > paginate-target="FindRisk" default-title-style="tableheadtext"
> > default-widget-style="tabletext" default-tooltip-style="tabletext">
> >
> > <actions>
> > <entity-condition entity-name="Risk">
> >
> > <!-- ??? what should go in the condition ??? -->
> >
> > <condition-expr field-name="riskId" ??? />
> >
> > </entity-condition>
> > </actions>
> >
> > ...
> >
>
Re: form-widget parameters problem
Posted by Chris Howe <cj...@yahoo.com>.
<condition-expr field-name="riskId" ??? />
<condition-expr field-name="riskId" env-name="parameters.riskId" />
--- Christopher Snow <sn...@coralms.com> wrote:
> I have a screen that includes two forms (findRisks and ListRisks).
> I'm
> having problems restricting the list based on the value of the find.
> Can anyone point me to where I am going wrong?
>
> Many thanks ...
>
>
>
> Controller:
> ===========
>
> <request-map uri="FindRisk">
> <security https="true" auth="true"/>
> <response name="success" type="view" value="FindRisk"/>
> </request-map>
> ...
> <view-map name="FindRisk" type="screen"
>
page="component://riskmanagement/widget/riskmanagement/RiskScreens.xml#FindRisk"/>
>
>
> RiskScreens.xml:
> ================
>
> <screen name="FindRisk">
> ...
> <include-form name="findRisks"
>
location="component://riskmanagement/widget/riskmanagement/RiskForms.xml"/>
> <include-form name="ListRisks"
>
location="component://riskmanagement/widget/riskmanagement/RiskForms.xml"/>
>
> RiskForms.xml:
> ==============
>
> <form name="findRisks" target="FindRisk" title="" type="single"
> default-title-style="tableheadtext"
> default-tooltip-style="tabletext">
>
> <field name="riskId" title="Risk id"><text/></field>
> <field name="submitButton" title="${uiLabelMap.RiskId}"><submit
> button-type="button"/></field>
>
> </form>
>
> <form name="ListRisks" type="list" list-name="risks"
> paginate-target="FindRisk" default-title-style="tableheadtext"
> default-widget-style="tabletext" default-tooltip-style="tabletext">
>
> <actions>
> <entity-condition entity-name="Risk">
>
> <!-- ??? what should go in the condition ??? -->
>
> <condition-expr field-name="riskId" ??? />
>
> </entity-condition>
> </actions>
>
> ...
>