Horizontal menu

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

Horizontal menu

myofbiz
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



Reply | Threaded
Open this post in threaded view
|

Re: Horizontal menu

Adrian Crum
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
>
>
>
>      
Reply | Threaded
Open this post in threaded view
|

Re: Horizontal menu

myofbiz

Cant we do it without CSS
--- On Fri, 11/14/08, Adrian Crum <[hidden email]> wrote:
From: Adrian Crum <[hidden email]>
Subject: Re: Horizontal menu
To: [hidden email]
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
>
>
>
>      


     
Reply | Threaded
Open this post in threaded view
|

Re: Horizontal menu

Adrian Crum
In reply to this post by Adrian Crum
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
>>
>>
>>
>>      
>
Reply | Threaded
Open this post in threaded view
|

Override global variables

Jacek Wagner
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
Reply | Threaded
Open this post in threaded view
|

Re: Horizontal menu

Adrian Crum
In reply to this post by myofbiz
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 <[hidden email]> wrote:
> From: Adrian Crum <[hidden email]>
> Subject: Re: Horizontal menu
> To: [hidden email]
> 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
>>
>>
>>
>>      
>
>
>      
Reply | Threaded
Open this post in threaded view
|

Re: Override global variables

Adrian Crum
In reply to this post by Jacek Wagner
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
>
Reply | Threaded
Open this post in threaded view
|

Re: Override global variables

Jacek Wagner
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
Reply | Threaded
Open this post in threaded view
|

Re: Override global variables

BJ Freeman
In reply to this post by Jacek Wagner
_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
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Override global variables

Adrian Crum
In reply to this post by Jacek Wagner
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
>
Reply | Threaded
Open this post in threaded view
|

Re: Horizontal menu

myofbiz
In reply to this post by Adrian Crum
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 <[hidden email]> wrote:
From: Adrian Crum <[hidden email]>
Subject: Re: Horizontal menu
To: [hidden email]
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
>>
>>
>>
>>      
>



     
Reply | Threaded
Open this post in threaded view
|

Re: Horizontal menu

Adrian Crum
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 <[hidden email]> wrote:
> From: Adrian Crum <[hidden email]>
> Subject: Re: Horizontal menu
> To: [hidden email]
> 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
>>>
>>>
>>>
>>>      
>
>
>
>      
Reply | Threaded
Open this post in threaded view
|

Re: Override global variables

Jacek Wagner
In reply to this post by Adrian Crum
 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
>>

Reply | Threaded
Open this post in threaded view
|

Re: Override global variables

Jacek Wagner
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
>>>
>

Reply | Threaded
Open this post in threaded view
|

database locking

Jacek Wagner
In reply to this post by Adrian Crum
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