You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Jacek Wagner <ja...@berkeley.edu> on 2009/01/01 00:35:15 UTC

passing parameter in ofbiz

All,

In the very first screen widget  in my application I set my global variable:

<set field="childId" from from-field="parameter.childId" to-scope="user"/>

How should I set it up to be certain I will never loose the content of 
childId?

Jacek





Re: screen widget syntax

Posted by Jacek Wagner <ja...@berkeley.edu>.
Adrian Crum wrote:
> <set> would be the same as context.put. There is no screen widget 
> command to remove a value from the context. You could try setting the 
> field to null.
>
> -Adrian
>
>
> Jacek Wagner wrote:
>> All,
>>
>> What would be a corresponding screen widget command(s) to a Java syntax:
>>
>> context.remove(......)
>> context.put(.....)
>>
>> Jacek
>>
>>
This is the way I expected.  Thank you. -- Jacek

Re: screen widget syntax

Posted by Adrian Crum <ad...@hlmksw.com>.
<set> would be the same as context.put. There is no screen widget 
command to remove a value from the context. You could try setting the 
field to null.

-Adrian


Jacek Wagner wrote:
> All,
> 
> What would be a corresponding screen widget command(s) to a Java syntax:
> 
> context.remove(......)
> context.put(.....)
> 
> Jacek
> 
> 

screen widget syntax

Posted by Jacek Wagner <ja...@berkeley.edu>.
All,

What would be a corresponding screen widget command(s) to a Java syntax:

context.remove(......)
context.put(.....)

Jacek


Re: passing parameter in ofbiz

Posted by Jacek Wagner <ja...@berkeley.edu>.
Adrian Crum wrote:
> <set field="childId" from-field="parameter.childId" to-scope="user" global="true"/>
>
> -Adrian
>
> --- On Wed, 12/31/08, Jacek Wagner <ja...@berkeley.edu> wrote:
>
>   
>> From: Jacek Wagner <ja...@berkeley.edu>
>> Subject: passing  parameter in ofbiz
>> To: user@ofbiz.apache.org
>> Date: Wednesday, December 31, 2008, 3:35 PM
>> All,
>>
>> In the very first screen widget  in my application I set my
>> global variable:
>>
>> <set field="childId" from
>> from-field="parameter.childId"
>> to-scope="user"/>
>>
>> How should I set it up to be certain I will never loose the
>> content of childId?
>>
>> Jacek
>>     
>
>
>      
>   
It helped a lot. Thank you Adrian. -- Jacek

Re: passing parameter in ofbiz

Posted by Adrian Crum <ad...@yahoo.com>.
<set field="childId" from-field="parameter.childId" to-scope="user" global="true"/>

-Adrian

--- On Wed, 12/31/08, Jacek Wagner <ja...@berkeley.edu> wrote:

> From: Jacek Wagner <ja...@berkeley.edu>
> Subject: passing  parameter in ofbiz
> To: user@ofbiz.apache.org
> Date: Wednesday, December 31, 2008, 3:35 PM
> All,
> 
> In the very first screen widget  in my application I set my
> global variable:
> 
> <set field="childId" from
> from-field="parameter.childId"
> to-scope="user"/>
> 
> How should I set it up to be certain I will never loose the
> content of childId?
> 
> Jacek