form-widget parameters problem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

form-widget parameters problem

snowch
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>

   ...
Reply | Threaded
Open this post in threaded view
|

Re: form-widget parameters problem

cjhowe
<condition-expr field-name="riskId" ??? />

<condition-expr field-name="riskId" env-name="parameters.riskId" />


--- Christopher Snow <[hidden email]> 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>
>
>    ...
>

Reply | Threaded
Open this post in threaded view
|

Re: form-widget parameters problem

snowch
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 <[hidden email]> 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>
> >
> >    ...
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: form-widget parameters problem

cjhowe
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 <[hidden email]> 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 <[hidden email]> 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>
> > >
> > >    ...
> > >
> >
>

Reply | Threaded
Open this post in threaded view
|

Re: form-widget parameters problem

snowch
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 <[hidden email]> 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 <[hidden email]> 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>
> > > >
> > > >    ...
> > > >
> > >
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: form-widget parameters problem

snowch
In reply to this post by cjhowe
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 <[hidden email]> 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 <[hidden email]> 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>
> > > >
> > > >    ...
> > > >
> > >
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: form-widget parameters problem

jonwimp
In reply to this post by cjhowe
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 <[hidden email]> 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 <[hidden email]> 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>
>>>>
>>>>    ...
>>>>
>
>