You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by adithi agarwal <co...@yahoo.com> on 2008/11/13 20:09:26 UTC
Horizontal menu
Hi
Iam trying to create a menu bar. refering to Examplemenus.xml. I am able to display vertical menu but not horizontal..though I have used the attribute orientation="horizontal"
Can anyone pleaseĀ tell me if there is any other way of displaying hori menu.
Thanks
Re: Override global variables
Posted by BJ Freeman <bj...@free-man.net>.
_NA_ is the default already set up. this is equivalent to 0
so how are you accessing ofbiz?
what what are you trying to accomplish.
Jacek Wagner sent the following on 11/13/2008 11:45 AM:
> All,
>
> I set up a global variable productId in the main decorator with a
> default value of 0.
>
> In the course of various screen widgets and forms I have established a
> final productId which I want to keep.
>
> How can I override the default productId variable?
>
> Jacek
>
>
Re: Override global variables
Posted by Jacek Wagner <ja...@berkeley.edu>.
It works with to-scope.
Thank you.
Jacek
<set field="productId" from-field="parameters.productId"
to-scope="screen" />
Jacek Wagner wrote:
> Adrian,
>
> The following is a part of the main-decorator and screen widget
> implementation
>
> <screen name="main-decorator">
> <section>
> <actions>
> ....................
> <property-map resource="RegistrationUiLabels"
> map-name="uiLabelMap" global="true"/>
> <set field="layoutSettings.companyName"
> from-field="uiLabelMap.RegistrationCompanyName" global="true"/>
> .......................
> <set field="productId" from-field="productId"
> default-value="0"/>
> ..................
> <set field="MainColumnStyle" value="nocolumns"
> global="true"/>
> ......................... </actions>
>
> screen-widget where productId gets its final value
> <screen name="FindCustomer">
> <section> <actions>
> <set field="titleProperty" value="FindLHSAccount"/>
> <set field="productId" from-field="parameters.productId"/>
> <service service-name="findParty"
> auto-field-map="parameters"/> </actions>
> <widgets>
> <decorator-screen name="main-decorator"
> location="component://registration/widget/CommonScreens.xml">
> <decorator-section
> name="body">
> <platform-specific>
> <html><html-template
> location="component://party/webapp/partymgr/party/findparty.ftl"/></html>
> </platform-specific>
> </decorator-section>
> </decorator-screen>
> </widgets>
> </section>
> </screen>
>
> comments: screen widget applies parameters.productId to productId as
> local not global. I do not know where to go from here.
>
> Jacek
>
> Adrian Crum wrote:
>> There is a workaround - instead of trying to initialize the default
>> value in the main decorator, try using the default-value attribute in
>> the main decorator's <set> action:
>>
>> <set field="productId" from-field="productId" default-value="0"/>
>>
>> -Adrian
>>
>> Jacek Wagner wrote:
>>> Adrian Crum wrote:
>>>> You can't - because decorator actions are run after the decorated
>>>> widget's actions.
>>>>
>>>> -Adrian
>>>>
>>>> Jacek Wagner wrote:
>>>>> All,
>>>>>
>>>>> I set up a global variable productId in the main decorator with a
>>>>> default value of 0.
>>>>>
>>>>> In the course of various screen widgets and forms I have
>>>>> established a final productId which I want to keep.
>>>>>
>>>>> How can I override the default productId variable?
>>>>>
>>>>> Jacek
>>>>>
>>> So how can I keep my final productId without passing it thru
>>> countless screen widgets, screen forms and freemarker forms?
>>>
>>> Jacek
>>>
>
Re: Override global variables
Posted by Jacek Wagner <ja...@berkeley.edu>.
Adrian,
The following is a part of the main-decorator and screen widget
implementation
<screen name="main-decorator">
<section>
<actions>
....................
<property-map resource="RegistrationUiLabels"
map-name="uiLabelMap" global="true"/>
<set field="layoutSettings.companyName"
from-field="uiLabelMap.RegistrationCompanyName" global="true"/>
.......................
<set field="productId" from-field="productId"
default-value="0"/>
..................
<set field="MainColumnStyle" value="nocolumns"
global="true"/>
.........................
</actions>
screen-widget where productId gets its final value
<screen name="FindCustomer">
<section>
<actions>
<set field="titleProperty" value="FindLHSAccount"/>
<set field="productId" from-field="parameters.productId"/>
<service service-name="findParty"
auto-field-map="parameters"/>
</actions>
<widgets>
<decorator-screen name="main-decorator"
location="component://registration/widget/CommonScreens.xml">
<decorator-section name="body">
<platform-specific>
<html><html-template
location="component://party/webapp/partymgr/party/findparty.ftl"/></html>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
comments: screen widget applies parameters.productId to productId as
local not global. I do not know where to go from here.
Jacek
Adrian Crum wrote:
> There is a workaround - instead of trying to initialize the default
> value in the main decorator, try using the default-value attribute in
> the main decorator's <set> action:
>
> <set field="productId" from-field="productId" default-value="0"/>
>
> -Adrian
>
> Jacek Wagner wrote:
>> Adrian Crum wrote:
>>> You can't - because decorator actions are run after the decorated
>>> widget's actions.
>>>
>>> -Adrian
>>>
>>> Jacek Wagner wrote:
>>>> All,
>>>>
>>>> I set up a global variable productId in the main decorator with a
>>>> default value of 0.
>>>>
>>>> In the course of various screen widgets and forms I have
>>>> established a final productId which I want to keep.
>>>>
>>>> How can I override the default productId variable?
>>>>
>>>> Jacek
>>>>
>> So how can I keep my final productId without passing it thru
>> countless screen widgets, screen forms and freemarker forms?
>>
>> Jacek
>>
Re: Override global variables
Posted by Adrian Crum <ad...@hlmksw.com>.
There is a workaround - instead of trying to initialize the default
value in the main decorator, try using the default-value attribute in
the main decorator's <set> action:
<set field="productId" from-field="productId" default-value="0"/>
-Adrian
Jacek Wagner wrote:
> Adrian Crum wrote:
>> You can't - because decorator actions are run after the decorated
>> widget's actions.
>>
>> -Adrian
>>
>> Jacek Wagner wrote:
>>> All,
>>>
>>> I set up a global variable productId in the main decorator with a
>>> default value of 0.
>>>
>>> In the course of various screen widgets and forms I have established
>>> a final productId which I want to keep.
>>>
>>> How can I override the default productId variable?
>>>
>>> Jacek
>>>
> So how can I keep my final productId without passing it thru countless
> screen widgets, screen forms and freemarker forms?
>
> Jacek
>
Re: Override global variables
Posted by Jacek Wagner <ja...@berkeley.edu>.
Adrian Crum wrote:
> You can't - because decorator actions are run after the decorated
> widget's actions.
>
> -Adrian
>
> Jacek Wagner wrote:
>> All,
>>
>> I set up a global variable productId in the main decorator with a
>> default value of 0.
>>
>> In the course of various screen widgets and forms I have established
>> a final productId which I want to keep.
>>
>> How can I override the default productId variable?
>>
>> Jacek
>>
So how can I keep my final productId without passing it thru countless
screen widgets, screen forms and freemarker forms?
Jacek
Re: Override global variables
Posted by Adrian Crum <ad...@hlmksw.com>.
You can't - because decorator actions are run after the decorated
widget's actions.
-Adrian
Jacek Wagner wrote:
> All,
>
> I set up a global variable productId in the main decorator with a
> default value of 0.
>
> In the course of various screen widgets and forms I have established a
> final productId which I want to keep.
>
> How can I override the default productId variable?
>
> Jacek
>
Override global variables
Posted by Jacek Wagner <ja...@berkeley.edu>.
All,
I set up a global variable productId in the main decorator with a
default value of 0.
In the course of various screen widgets and forms I have established a
final productId which I want to keep.
How can I override the default productId variable?
Jacek
Re: Horizontal menu
Posted by Adrian Crum <ad...@hlmksw.com>.
Use the Example component as a guide.
-Adrian
adithi agarwal wrote:
> thankyou..
> Iam not using CSS for my application as of now..can you please tell me how do i apply the existing CSS in my application..
>
> --- On Fri, 11/14/08, Adrian Crum <ad...@hlmksw.com> wrote:
> From: Adrian Crum <ad...@hlmksw.com>
> Subject: Re: Horizontal menu
> To: user@ofbiz.apache.org
> Date: Friday, November 14, 2008, 1:04 AM
>
> Oops, I should have said the orientation attribute isn't used any more.
>
> A number of the menu widget attributes have been deprecated or replaced. Some
> time ago, the decision was made to put menu styling - like vertical versus
> horizontal - under the control of style sheets or other rendering engines.
>
> -Adrian
>
> Adrian Crum wrote:
>> The horizontal attribute is not used any more. Use one of the horizontal
> menu CSS styles.
>> -Adrian
>>
>> adithi agarwal wrote:
>>> Hi Iam trying to create a menu bar. refering to Examplemenus.xml. I am
> able to display vertical menu but not horizontal..though I have used the
> attribute orientation="horizontal"
>>> Can anyone please tell me if there is any other way of displaying
> hori menu.
>>> Thanks
>>>
>>>
>>>
>>>
>
>
>
>
Re: Horizontal menu
Posted by adithi agarwal <co...@yahoo.com>.
thankyou..
Iam not using CSS for my application as of now..can you please tell me how do i apply the existing CSS in my application..
--- On Fri, 11/14/08, Adrian Crum <ad...@hlmksw.com> wrote:
From: Adrian Crum <ad...@hlmksw.com>
Subject: Re: Horizontal menu
To: user@ofbiz.apache.org
Date: Friday, November 14, 2008, 1:04 AM
Oops, I should have said the orientation attribute isn't used any more.
A number of the menu widget attributes have been deprecated or replaced. Some
time ago, the decision was made to put menu styling - like vertical versus
horizontal - under the control of style sheets or other rendering engines.
-Adrian
Adrian Crum wrote:
> The horizontal attribute is not used any more. Use one of the horizontal
menu CSS styles.
>
> -Adrian
>
> adithi agarwal wrote:
>> Hi Iam trying to create a menu bar. refering to Examplemenus.xml. I am
able to display vertical menu but not horizontal..though I have used the
attribute orientation="horizontal"
>> Can anyone please tell me if there is any other way of displaying
hori menu.
>>
>> Thanks
>>
>>
>>
>>
>
Re: Horizontal menu
Posted by Adrian Crum <ad...@hlmksw.com>.
Oops, I should have said the orientation attribute isn't used any more.
A number of the menu widget attributes have been deprecated or replaced.
Some time ago, the decision was made to put menu styling - like vertical
versus horizontal - under the control of style sheets or other rendering
engines.
-Adrian
Adrian Crum wrote:
> The horizontal attribute is not used any more. Use one of the horizontal
> menu CSS styles.
>
> -Adrian
>
> adithi agarwal wrote:
>> Hi Iam trying to create a menu bar. refering to Examplemenus.xml. I am
>> able to display vertical menu but not horizontal..though I have used
>> the attribute orientation="horizontal"
>> Can anyone please tell me if there is any other way of displaying
>> hori menu.
>>
>> Thanks
>>
>>
>>
>>
>
database locking
Posted by Jacek Wagner <ja...@berkeley.edu>.
All,
I have modified a non ofbiz Calendar apps to call thru SOAP a number of
ofbiz services, mainly to modify a content of the product table
Case 1. I run Calendar as a stand alone apps and all the calls to ofbiz
services are working as expected.
Case 2. From my ofbiz application (Registration) I am calling Calendar
as a web service which require Calendar to call ofbiz services to
modify the product table. In this case table product is locked
even it is not used in any way by my ofbiz apps (Registration).
Is any way to work around this limitation or I have to re-architecture
the way Calendar and my ofbiz apps are working.
Jacek
Re: Horizontal menu
Posted by Adrian Crum <ad...@hlmksw.com>.
http://docs.ofbiz.org/display/OFBIZ/Back+Office+Applications+UI+Refactor
-Adrian
adithi agarwal wrote:
> Cant we do it without CSS
> --- On Fri, 11/14/08, Adrian Crum <ad...@hlmksw.com> wrote:
> From: Adrian Crum <ad...@hlmksw.com>
> Subject: Re: Horizontal menu
> To: user@ofbiz.apache.org
> Date: Friday, November 14, 2008, 12:48 AM
>
> The horizontal attribute is not used any more. Use one of the horizontal menu
> CSS styles.
>
> -Adrian
>
> adithi agarwal wrote:
>> Hi Iam trying to create a menu bar. refering to Examplemenus.xml. I am
> able to display vertical menu but not horizontal..though I have used the
> attribute orientation="horizontal"
>> Can anyone please tell me if there is any other way of displaying hori
> menu.
>> Thanks
>>
>>
>>
>>
>
>
>
Re: Horizontal menu
Posted by adithi agarwal <co...@yahoo.com>.
Cant we do it without CSS
--- On Fri, 11/14/08, Adrian Crum <ad...@hlmksw.com> wrote:
From: Adrian Crum <ad...@hlmksw.com>
Subject: Re: Horizontal menu
To: user@ofbiz.apache.org
Date: Friday, November 14, 2008, 12:48 AM
The horizontal attribute is not used any more. Use one of the horizontal menu
CSS styles.
-Adrian
adithi agarwal wrote:
> Hi Iam trying to create a menu bar. refering to Examplemenus.xml. I am
able to display vertical menu but not horizontal..though I have used the
attribute orientation="horizontal"
> Can anyone please tell me if there is any other way of displaying hori
menu.
>
> Thanks
>
>
>
>
Re: Horizontal menu
Posted by Adrian Crum <ad...@hlmksw.com>.
The horizontal attribute is not used any more. Use one of the horizontal
menu CSS styles.
-Adrian
adithi agarwal wrote:
> Hi
> Iam trying to create a menu bar. refering to Examplemenus.xml. I am able to display vertical menu but not horizontal..though I have used the attribute orientation="horizontal"
> Can anyone please tell me if there is any other way of displaying hori menu.
>
> Thanks
>
>
>
>