Re: UNION and View Entity

2017-10-12 Thread Rishi Solanki
wrote: > Hello Dears , > > I have created three view entity ,I want to use *union* between this > entities . > how I can do this ? > > Thank u > Regards > > > > >

UNION and View Entity

2017-10-12 Thread Ahmad Rabab’ah
Hello Dears , I have created three view entity ,I want to use *union* between this entities . how I can do this ? Thank u Regards

Re: View Entity Question

2013-11-18 Thread Deepak Dixit
>> >> -Original Message- >> From: Deepak Dixit [mailto:deepak.di...@hotwaxmedia.com] >> Sent: Friday, November 15, 2013 9:58 PM >> To: user@ofbiz.apache.org >> Subject: Re: View Entity Question >> >> >> Hi Skip, >> >> Please t

Re: View Entity Question

2013-11-18 Thread Rishi Solanki
; > Skip > > > > -Original Message- > > From: Deepak Dixit [mailto:deepak.di...@hotwaxmedia.com] > > Sent: Friday, November 15, 2013 9:58 PM > > To: user@ofbiz.apache.org > > Subject: Re: View Entity Question > > > > > > Hi Skip, >

Re: View Entity Question

2013-11-18 Thread Jacques Le Roux
n. > > Skip > > -Original Message- > From: Deepak Dixit [mailto:deepak.di...@hotwaxmedia.com] > Sent: Friday, November 15, 2013 9:58 PM > To: user@ofbiz.apache.org > Subject: Re: View Entity Question > > > Hi Skip, > > Please try with rel-optional="

RE: View Entity Question

2013-11-18 Thread Skip
: user@ofbiz.apache.org Subject: Re: View Entity Question Hi Skip, Please try with rel-optional="true"; Thanks & Regards -- Deepak Dixit On Nov 16, 2013, at 12:27 AM, Skip wrote: > I have this view that gives the quantity on hand for requested products: > >

Re: View Entity Question

2013-11-15 Thread Deepak Dixit
Hi Skip, Please try with rel-optional="true"; Thanks & Regards -- Deepak Dixit On Nov 16, 2013, at 12:27 AM, Skip wrote: > I have this view that gives the quantity on hand for requested products: > >package-name="org.ofbiz.product.product" &g

View Entity Question

2013-11-15 Thread Skip
I have this view that gives the quantity on hand for requested products: However,

Re: Anyone know a way to apply condition to view-entity and then left join to another view-entity?

2013-10-30 Thread Christian Carlow
It seems like WHERE clauses should be able to be associated with an entity/view-entity other than in find methods such as findByAnd or findListIteratorByCondition. This would allow the where clause to be applied to the query without the query being executed. Once the where clauses are applied

Re: Anyone know a way to apply condition to view-entity and then left join to another view-entity?

2013-10-30 Thread Christian Carlow
#x27;m getting up to speed, it shouldn't take me more than a few years... On 13-10-30 08:56 AM, Christian Carlow wrote: Does anyone know a way to apply a condition to a view-entity and then left join it to another view-entity? I need to be able to apply a condition to the OrderShipment e

Re: Anyone know a way to apply condition to view-entity and then left join to another view-entity?

2013-10-30 Thread Todd Thorner
for SDK products. At the rate I'm getting up to speed, it shouldn't take me more than a few years... On 13-10-30 08:56 AM, Christian Carlow wrote: > Does anyone know a way to apply a condition to a view-entity and then > left join it to another view-entity? > >

Anyone know a way to apply condition to view-entity and then left join to another view-entity?

2013-10-30 Thread Christian Carlow
Does anyone know a way to apply a condition to a view-entity and then left join it to another view-entity? I need to be able to apply a condition to the OrderShipment entity where shipmentId = parameters.shipmentId and then left join this conditioned view-entity to another view-entity. I

Re: view-entity subquery WHERE clauses supported?

2013-09-17 Thread Christian Carlow
arlow wrote: Does anyone know if it is possible to constrain joined view-entity subqueries with their own WHERE clauses? For example: select * from tbl1 left join (select * from tbl2 where tbl2.col1 = 'someVal') tbl3 on tbl1.col1 = tbl3.col1

Re: view-entity subquery WHERE clauses supported?

2013-09-16 Thread Christian Carlow
problem. I tried to add an entity-condition within the view-entity but it was output as a WHERE clause. Was the issue mentioned here ever resolved? http://ofbiz.135035.n4.nabble.com/View-Link-Entity-Conditions-td4219210.html On 09/16/2013 03:16 PM, Christian Carlow wrote: For a little

Re: view-entity subquery WHERE clauses supported?

2013-09-16 Thread Christian Carlow
Conditional joins would also be solution to my problem. I tried to add an entity-condition within the view-entity but it was output as a WHERE clause. Was the issue mentioned here ever resolved? http://ofbiz.135035.n4.nabble.com/View-Link-Entity-Conditions-td4219210.html On 09/16/2013 03:16

Re: view-entity subquery WHERE clauses supported?

2013-09-16 Thread Christian Carlow
For a little perspective, Essentially what I'm trying to accomplish is a simplified shipping schedule list based on order item ship group due quantities. I created a view-entity that joins together orderHeader, orderItem, orderItemShipGroup, and orderItemshipGroupAssoc. Additiona

Re: view-entity subquery WHERE clauses supported?

2013-09-16 Thread Christian Carlow
list by commenting out the following lines in the makeConditionWhereString method: String viewClause = SqlJdbcUtil.makeViewWhereClause(modelEntity, datasourceInfo.joinStyle); if (viewClause.length() > 0) { conditions.add(EntityCondition.makeConditionWhere(viewClause)); } Does anyone

view-entity subquery WHERE clauses supported?

2013-09-16 Thread Christian Carlow
Does anyone know if it is possible to constrain joined view-entity subqueries with their own WHERE clauses? For example: select * from tbl1 left join (select * from tbl2 where tbl2.col1 = 'someVal') tbl3 on tbl1.col1 = tbl3.col1

Re: definition of view entity

2013-06-08 Thread SAURABH SINGH
Hi Always try to not use alias-all in in views entity only select the field so you will get the selected data only and the query time will be less so that we can get data quickly form any view entity.. On Sat, Jun 8, 2013 at 6:14 PM, Martin Kaiser wrote: > Hi all, > > I've

definition of view entity

2013-06-08 Thread Martin Kaiser
Hi all, I've constructed an view entity in entitymodel.xml. It should give me an address related to a party, and also the person and group name. Unfortunately it gives me also the addresses which have are expired by setting the thrudate. I still want the Party/Person/Group information to

Re: View Entity - GiftCard and FinAccount Join

2013-04-09 Thread dhiraj.g
Hi , There are many examples of view enitiy are present in ofbiz. u can follows this link. http://ofbiz.apache.org/docs/entity.html Thanks Dhiraj gupta - dhirajgupta -- View this message in context: http://ofbiz.135035.n4.nabble.com/View-Entity-GiftCard-and-FinAccount-Join

View Entity - GiftCard and FinAccount Join

2013-04-08 Thread Matthew Bertolini
Doesn't look like there is a way to join the gift card table and the fin account table as the card number column and fin account code column are encrypted. Does anyone know a way I can create a view entity with these two tables? Thanks, Matt Bertolini

Re: view-entity view-link for multiple aliases

2012-04-12 Thread Foo Shyn Chung
I found that the usage are quite limited. If i need to populate the result on a ftl form, will i be able to utilized the existing code structure, i.e. list sales as sale, sale.id to get the value of the id selected? Or is there anyway to provide a view-link that joins 2 different tables as i menti

Re: view-entity view-link for multiple aliases

2012-04-12 Thread Jacques Le Roux
You have then to use directly JDBC. Look for prepareStatement in java code for examples. SQLProcessor.executeQuery(String sql) is certainly the best match Jacques From: "Foo Shyn Chung" On second thought, is there anything similar to the JdbcTemplate in Spring framework that let you run custo

Re: view-entity view-link for multiple aliases

2012-04-12 Thread Foo Shyn Chung
On second thought, is there anything similar to the JdbcTemplate in Spring framework that let you run customized SQL directly on OFBiz? Thanx FooShyn On Wed, Apr 11, 2012 at 10:56 PM, Foo Shyn Chung wrote: > Hi all, > > I have a view created via the DynamicViewEntity in a groovy script. This >

view-entity view-link for multiple aliases

2012-04-11 Thread Foo Shyn Chung
Hi all, I have a view created via the DynamicViewEntity in a groovy script. This view of mine consist of few tables and another view which is declared in a entitymodel.xml in another module. In one of the join, the link need to consist of relationship from 3 tables, i.e. select * from ((tableA a

Re: view-entity within view-entity selection issue

2012-04-10 Thread Jacques Le Roux
d a line at the bottom of the page as i don't know how the structure of the wiki is. The title is : Note on using entity or view-entity from other components Please help inspect whether i wrote anything wrong. Thanx FooShyn On Mon, Apr 9, 2012 at 6:40 PM, Jacques Le Roux < jacques.le.r

Re: view-entity within view-entity selection issue

2012-04-09 Thread Foo Shyn Chung
Hi Jacques, I'd added a line at the bottom of the page as i don't know how the structure of the wiki is. The title is : Note on using entity or view-entity from other components Please help inspect whether i wrote anything wrong. Thanx FooShyn On Mon, Apr 9, 2012 at 6:40 PM, Jacqu

Re: view-entity within view-entity selection issue

2012-04-09 Thread Jacques Le Roux
the sequence of the component to be loaded as well. For example, in my case, the view-entity ViewOfficerPaymentInfo is being declared in the Payment entitymodel.xml while the ViewOfficerSalesReport was declared in the Customer module. Since i didn't explicitly stated the sequence to load

Re: view-entity within view-entity selection issue

2012-04-09 Thread Foo Shyn Chung
I'd managed to solve the problem. It seems that the entitymodel.xml loads according to the sequence of the component to be loaded as well. For example, in my case, the view-entity ViewOfficerPaymentInfo is being declared in the Payment entitymodel.xml while the ViewOfficerSalesRepor

Re: view-entity within view-entity selection issue

2012-04-07 Thread Foo Shyn Chung
The problem is my SQL need to have left join on two tables, which are essentially a header and detail tables and they need to have a inner join to make it meaningful. I found that there are a few existing view-entity in Example and in product that are doing what i'm looking to do, but st

Re: view-entity within view-entity selection issue

2012-04-07 Thread Jacques Le Roux
I did not into any details at all, but I'd suggest you to rather create another view-entity which would combine what you need from the 2 others. (ie using directly real entities you used in both others) Jacques From: "Foo Shyn Chung" Further on the issue, i tried moving the

Re: view-entity within view-entity selection issue

2012-04-05 Thread Foo Shyn Chung
Further on the issue, i tried moving the selection from using the entity-condition in xml to a groovy script and using delegator.findList. However the problem seems like persisting. Is this a bug in OFBiz? or simple the way i declare my view-entity is wrong? Thanx FooShyn On Thu, Apr 5, 2012 at

view-entity within view-entity selection issue

2012-04-05 Thread Foo Shyn Chung
Hi all, I'm having issue trying to select a view entity field from within another view entity. I have to view entity currently, first one looks like this: The secon

Re: view-entity definition

2012-03-14 Thread zhiyongcui
Thanks for you reply. But I don't know how to implement it. -- View this message in context: http://ofbiz.135035.n4.nabble.com/view-entity-definition-tp4470865p4473628.html Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: view-entity definition

2012-03-14 Thread Anne
See if complex-alias will do what you want. Cheers, Anne. On 14 March 2012 13:17, zhiyongcui wrote: > How to implement concat function in view-entity ? > > -- > View this message in context: > http://ofbiz.135035.n4.nabble.com/view-entity-definition-tp4470865p4470865.html > S

Re: How Get Month and year Value for View-entity ?

2012-03-14 Thread Anne
You might be able to use complex-alias, though I haven't tried it myself. Have a look at the documentation included in the entitymodel schema. Cheers, Anne. On 12 March 2012 21:57, kiunx wrote: > Hi there, > i want to ask something about View Entity, > can i get the month or yea

Re: How Get Month and year Value for View-entity ?

2012-03-13 Thread Rishi Solanki
-9893287847 http://www.hotwaxmedia.com On Mon, Mar 12, 2012 at 4:27 PM, kiunx wrote: > Hi there, > i want to ask something about View Entity, > can i get the month or year value from 1 column that contai date? > for example > theDate is the column contain date data. > TheMo

How Get Month and year Value for View-entity ?

2012-03-12 Thread kiunx
Hi there, i want to ask something about View Entity, can i get the month or year value from 1 column that contai date? for example theDate is the column contain date data. TheMonthIs is the month value from theDate and TheYearIs is the year value from theDate

Re: view entity

2011-12-14 Thread Rakesh_Ists
out for you. If you are not able create, let me know the structure of table , i will give the view need to be created. -- View this message in context: http://ofbiz.135035.n4.nabble.com/view-entity-tp4169000p4194206.html Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: view entity

2011-12-07 Thread Integrin Solutions
View entity in ofbiz does not represent database view; It is an entity created at runtime based on the configuration in ; Consider these as join queries if you will; Look for the view-entity configurations in entitymodel_view.xml in the relevant application - Sakthi On 12/7/11

view entity

2011-12-07 Thread sreejithpallikkara
Hi I am a fresher to Ofbiz, I want to create view entity for the following SQL Query, create view newView as (SELECT pr_id FROM span_purchase_request where pr_id not in(SELECT distinct pr_id FROM span_request_for_quotation))\ I have tried it in Ofbiz, but not able to get the propper output

Re: Best fix for OFBIZ-4393 View entity condition-expr doesn't handle null?

2011-09-05 Thread Anne
ecently while creating entity condition >>> expressions >>> in mini-language. Try using fromField="nullField" instead. >>> >>> -Adrian >>> >>> On 9/5/2011 4:20 AM, Anne wrote: >>>> >>>> Hi >>>> >&g

Re: Best fix for OFBIZ-4393 View entity condition-expr doesn't handle null?

2011-09-05 Thread Adrian Crum
from Hans confirms my uncertainty. I want a view-entity that uses a condition-expr to check a field for null. The current code does not support this. Setting 'value="null"' currently generates "fieldname='null'" in the where condition. Leaving the value attr

Re: Best fix for OFBIZ-4393 View entity condition-expr doesn't handle null?

2011-09-05 Thread Anne
n mini-language. Try using fromField="nullField" instead. > > -Adrian > > On 9/5/2011 4:20 AM, Anne wrote: >> >> Hi >> >> I created Jira OFBIZ-4393 and included a patch. I'm not sure it's the >> best solution, and a comment from Hans c

Re: Best fix for OFBIZ-4393 View entity condition-expr doesn't handle null?

2011-09-05 Thread Adrian Crum
a comment from Hans confirms my uncertainty. I want a view-entity that uses a condition-expr to check a field for null. The current code does not support this. Setting 'value="null"' currently generates "fieldname='null'" in the where condition. Leaving the

Best fix for OFBIZ-4393 View entity condition-expr doesn't handle null?

2011-09-04 Thread Anne
Hi I created Jira OFBIZ-4393 and included a patch. I'm not sure it's the best solution, and a comment from Hans confirms my uncertainty. I want a view-entity that uses a condition-expr to check a field for null. The current code does not support this. Setting 'value="null&q

Re: How to implement Having function in view-entity defination?

2011-06-24 Thread Rishi Solanki
While defining the view entity, you may use group-by on the field aka alias of the view entity. Then you can add condition in the bottom using entity-condition in the bottom of view entity definition. See the view-entity ExampleStatusItem in the /framework/example/entitydef/entitymodel_view.xml

Re: How to implement Having function in view-entity defination?

2011-06-21 Thread Jacques Le Roux
Sorry, but it's not clear what you want exactly. Could you elaborate a bit more? Jacques From: "zhiyongcui" I want to implement having function in view-entity defination, but I can't.Is there somebody who can help me?many thanks! -- View this message in context: ht

How to implement Having function in view-entity defination?

2011-06-21 Thread zhiyongcui
I want to implement having function in view-entity defination, but I can't.Is there somebody who can help me?many thanks! -- View this message in context: http://ofbiz.135035.n4.nabble.com/How-to-implement-Having-function-in-view-entity-defination-tp3613550p3613550.html Sent from the

Re: about view-entity

2011-05-26 Thread Brajesh Patel
hi, Following view-entity will help you because there some aggregate function is used in side of this entity also there is the use of group by clause. -- Brajesh On 24-May-2011

about view-entity

2011-05-24 Thread zhiyongcui
How to implement sql as below with view-entity definition. select PRODUCT_ID,FACILITY_ID,LOCATION_SEQ_ID, SUM(case when LOCATION_SEQ_ID='A' then QUANTITY_OH_HAND_TOTAL else 0 end) AS QTY1, SUM(case when LOCATION_SEQ_ID='b' then QUANTITY_OH_HAND_TOTAL else 0 end) AS QTY2 from

Re: Complex relations in View Entity defs

2011-05-04 Thread David E Jones
There hasn't been a lot of interest in that feature, so it isn't totally implemented. Basically don't use the entity-alias attribute on the condition-expr element, and make sure the field-name matches an alias on the view-entity (ie to do a condition on a field it must be

Re: Complex relations in View Entity defs

2011-04-28 Thread Justin Robinson
Ok I found a ref in a bug report on ofbiz from 2009 Using entity-condition in the view entity def, but I'm still unclear as to how I can get a list of attrName & attrValue fields to appear as field & values respectively in a view entity Can anyone help me out or po

Complex relations in View Entity defs

2011-04-28 Thread Justin Robinson
I'm creating a new view entity that has to contain several different attribute records from the same table. Attributes are distinguished by a combination on an id and the attrName. I've used a combination of fields for a view link, in another case, befo

Re: View-Entity

2011-04-08 Thread Jacques Le Roux
You can use in see ExampleStatusItem Jacques From: "Info Olagos" Hello, I created a view , partially. I used these commands for creating a view definition in entitymodel.xml for a new specific component: - view-entity - alias - complex-alias - view-link My view needs to have a

View-Entity

2011-04-07 Thread Info Olagos
Hello, I created a view , partially. I used these commands for creating a view definition in entitymodel.xml for a new specific component: - view-entity - alias - complex-alias - view-link My view needs to have a condition in it with fields equal to a value. How can i add these conditions in the

Re: Where to see the generated sql when retrieving result from view entity?

2011-03-29 Thread varun bhansaly
; > Jacques > > From: "arini.rusda" > > Hi, >> I want to see the generated sql when i'm trying to retrieve data from view >> entities, because my view entity didn't show the result i expected when i >> want to do some grouping. Someone could tell me how

Re: Where to see the generated sql when retrieving result from view entity?

2011-03-29 Thread Jacques Le Roux
http://markmail.org/message/s57f7znzczb6us6h Jacques From: "arini.rusda" Hi, I want to see the generated sql when i'm trying to retrieve data from view entities, because my view entity didn't show the result i expected when i want to do some grouping. Someone could tel

Where to see the generated sql when retrieving result from view entity?

2011-03-29 Thread arini.rusda
Hi, I want to see the generated sql when i'm trying to retrieve data from view entities, because my view entity didn't show the result i expected when i want to do some grouping. Someone could tell me how to view the generated sql? Because i couldn't find it in the ofbiz.log Th

Re: Defining a new view entity (Scope: Detail Party:General Entities)

2011-02-24 Thread Justin Robinson
pler way to achieve my aim, but the application logic is irrelevant to this forum. I would like some advice on the simplest way to modify a view, by joining an entity that has 2 primary keys. I'd like to get the attrValue field, into my CustRequestAndPartyRelationshipAndRole view entity, but the

Defining a new view entity (Scope: Detail Party:General Entities)

2011-02-23 Thread Justin Robinson
Ok my last email to the mailing list was rather glib, no suprise no-one replied. (Sorry) I need to define a view entity that can encapsulates the person-party (of type customer) related to party-group (of type account team) & the person-party (of type employee). So that I can trace

Re: View entity extra conditions

2010-08-15 Thread James McGill
On Sun, Aug 15, 2010 at 3:57 AM, varun bhansaly wrote: > Hi Jacques, > I forgot to mention, I am using > https://svn.apache.org/repos/asf/ofbiz/branches/release09.04 at rev > 934744. > In this ModelViewEntity does not consider "entity-condition", so while this >

Re: View entity extra conditions

2010-08-15 Thread Jacques Le Roux
Varun, In R9.04 it's not a a valid view entity definition: it does not exist in entitymodel.xsd. But you are right, actually this is an issue in OFBiz because we don't handle XSD files correctly (ie by version). To avoid this, if you use Eclipse, you may follow this

Re: View entity extra conditions

2010-08-15 Thread varun bhansaly
Hi Jacques, I forgot to mention, I am using https://svn.apache.org/repos/asf/ofbiz/branches/release09.04 at rev 934744. In this ModelViewEntity does not consider "entity-condition", so while this is still a valid view entity definition, the engine ignores "entity-condition". W

Re: View entity extra conditions

2010-08-15 Thread Jacques Le Roux
es From: "varun bhansaly" Hi Jacques, The requirement is to define a view entity, write some additional filtering conditions in the definition itself, when this view entity is being queried in the code, these filteringconditions need not be explicitly specified. So taking the view defi

Re: View entity extra conditions

2010-08-15 Thread varun bhansaly
Hi Jacques, The requirement is to define a view entity, write some additional filtering conditions in the definition itself, when this view entity is being queried in the code, these filteringconditions need not be explicitly specified. So taking the view definition in the start of this trail

Re: View entity extra conditions

2010-08-15 Thread Jacques Le Roux
Aug 15, 2010 at 1:32 PM, Jacques Le Roux < jacques.le.r...@les7arts.com> wrote: You say "it seems", don't the view give you the results you want? Jacques From: "varun bhansaly" Hi, I have written a view entity, as shown below, the intention is to perform inn

Re: View entity extra conditions

2010-08-15 Thread varun bhansaly
uot;it seems", don't the view give you the results you want? > > Jacques > > From: "varun bhansaly" > > Hi, >> I have written a view entity, as shown below, the intention is to perform >> inner join b/w two entities & a further condition. >>

Re: View entity extra conditions

2010-08-15 Thread Jacques Le Roux
You say "it seems", don't the view give you the results you want? Jacques From: "varun bhansaly" Hi, I have written a view entity, as shown below, the intention is to perform inner join b/w two entities & a further condition. But after looking at the raw SQL, it

Re: View entity extra conditions

2010-08-15 Thread varun bhansaly
inline > > > On Sun, Aug 15, 2010 at 11:53 AM, varun bhansaly >wrote: > > > Hi, > > I have written a view entity, as shown below, the intention is to perform > > inner join b/w two entities & a further condition. > > But after looking at the raw SQL,

Re: View entity extra conditions

2010-08-15 Thread Ravindra Mandre
Hi, Comments inline On Sun, Aug 15, 2010 at 11:53 AM, varun bhansaly wrote: > Hi, > I have written a view entity, as shown below, the intention is to perform > inner join b/w two entities & a further condition. > But after looking at the raw SQL, it seems entity engine seems to

View entity extra conditions

2010-08-14 Thread varun bhansaly
Hi, I have written a view entity, as shown below, the intention is to perform inner join b/w two entities & a further condition. But after looking at the raw SQL, it seems entity engine seems to ignore entity condition

Re: adding condition to view-entity defination !

2010-05-19 Thread Rishi Solanki
e Software Development HotWax Media Pvt. Ltd. Direct: +91-9893287847 http://www.hotwaxmedia.com On Tue, May 18, 2010 at 5:24 AM, Prashant Punekar < prashant_pune...@mindtree.com> wrote: > Hi, > > Even after adding the condition to the view entity, it seems that the > condition is not be

adding condition to view-entity defination !

2010-05-17 Thread Prashant Punekar
Hi, Even after adding the condition to the view entity, it seems that the condition is not being taken into consideration. When we query the view, we get all the records irrespective of the condition added in the view definition. Here is the view definition

Re: Define view-entity with SQL statement.

2010-03-08 Thread Scott Gray
It should be possible to construct the same view with a static view entity definition as it is with a DynamicViewEntity, the only difference between the two is the dynamic nature of the latter i.e. you can construct the view at runtime to only query the data you actually need. Regards Scott

Re: Define view-entity with SQL statement.

2010-03-08 Thread Hans Bakker
Please do not post in both mailing lists. I have answered your question in the user mailing list. On Tue, 2010-03-09 at 09:43 +0700, Chatree Srichart wrote: > Is it possible if I need to define view-entity with SQL statement because I > need to use NESTED SELECT statement? -- Antwebsyste

Re: Define view-entity with SQL statement.

2010-03-08 Thread Hans Bakker
ards, Hans -- Antwebsystems.com: Quality OFBiz services for competitive rates On Tue, 2010-03-09 at 09:43 +0700, Chatree Srichart wrote: > Is it possible if I need to define view-entity with SQL statement because I > need to use NESTED SELECT statement?

Define view-entity with SQL statement.

2010-03-08 Thread Chatree Srichart
Is it possible if I need to define view-entity with SQL statement because I need to use NESTED SELECT statement?

Re: how retrive data through dynamic view entity

2009-12-24 Thread BJ Freeman
The beginners tutorial http://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Beginners+Development+Guide+Using+Practice+Application+%28Hello+World...%29 Gnanashankar Shanmugam sent the following on 12/23/2009 11:59 PM: > hi friends, > I am new for ofbiz, I created component in hot-deploy.. in

Re: how retrive data through dynamic view entity

2009-12-24 Thread Gnanashankar Shanmugam
hi rishi, thanku for your reply, i can not understand that groovy file, and my scenario follows below, persondetails 1. first name-- text field 2. surname-- test field 3. create- submit button. i want display below, Firstname surname ---

Re: how retrive data through dynamic view entity

2009-12-24 Thread Rishi Solanki
Refer /applications/product/webapp/facility/WEB-INF/actions/facility/CountFacilityInventoryByProduct.groovy Here you got the code reference for creating a dynamic view getting data from it and then getting list which can be displayed on ftl/form-widget. HTH! Rishi Solanki Enterprise Software Deve

Re: how retrive data through dynamic view entity

2009-12-24 Thread Gnanashankar Shanmugam
hi rishi, thanks for your reply, can you send example of simple java code for dynamic view creating to text field and one submit botton.. On Thu, Dec 24, 2009 at 2:35 PM, Rishi Solanki wrote: > Hi Gnanashankar, > After making the dynamic view in groovy/java file you can get the eli by > applying

Re: how retrive data through dynamic view entity

2009-12-24 Thread Rishi Solanki
Hi Gnanashankar, After making the dynamic view in groovy/java file you can get the eli by applying findListIteratorByCondition method of delegator object. then on eli you have methods eli.getPartialList and eli.getCompleteList will gives you the list which then put into context or service result or

how retrive data through dynamic view entity

2009-12-23 Thread Gnanashankar Shanmugam
hi friends, I am new for ofbiz, I created component in hot-deploy.. in that component i created testscreen, in that screen i am having *two text fields*, one submit(*create*) *button*, i want to store value of two fields in * database* through *java code*, after clicking submit button, the value

Re: Inspect SQL for View Entity

2009-10-08 Thread Scott Gray
o understand if there's another way to do joins, besides using view-entity. I'm finding view-entity to be tricky, even though I know what I want in terms of a simple join. -- James McGill Phoenix AZ smime.p7s Description: S/MIME cryptographic signature

Re: Inspect SQL for View Entity

2009-10-07 Thread James McGill
Thanks (framework/base/config/debug.properties). One more question: I'm trying to understand if there's another way to do joins, besides using view-entity. I'm finding view-entity to be tricky, even though I know what I want in terms of a simple join. -- James McGill Phoenix AZ

Re: Inspect SQL for View Entity

2009-10-07 Thread Scott Gray
You could temporarily change your debugging level to verbose and the SQLProcessor will log the statements. Regards Scott HotWax Media http://www.hotwaxmedia.com On 8/10/2009, at 5:36 PM, James McGill wrote: How do you inspect the SQL for a View Entity? -- James McGill Phoenix AZ

Inspect SQL for View Entity

2009-10-07 Thread James McGill
How do you inspect the SQL for a View Entity? -- James McGill Phoenix AZ

Error in finding view-entity

2009-09-29 Thread su2
ng)] ([GenericDelegator.findByPrimaryKey] Passed primary key is not a valid primary key: [GenericEntity:OrderAndTaxByCounty][OTCMOrderNo,ORD143486(java.lang.String)]) - OTCMOrderNo is one my primary key (there are total 5 prima

Re: Error while creating complex-alias in view entity

2009-09-28 Thread su2
derscore. > > I won't be able to look into this today, but maybe later in the > week... so if anyone beats me to the fun I won't be offended. ;) > > -David > > > On Sep 28, 2009, at 12:04 PM, su2 wrote: > >> >> Hello Friends, >> >

Re: Error while creating complex-alias in view entity

2009-09-28 Thread David E Jones
ffended. ;) -David On Sep 28, 2009, at 12:04 PM, su2 wrote: Hello Friends, I am trying to create a view entity with complex alias using two view-entities. I have view entity A, View entity B and trying to create a new view entity C from View Entity A & View Entity B. When I add complex

Error while creating complex-alias in view entity

2009-09-28 Thread su2
Hello Friends, I am trying to create a view entity with complex alias using two view-entities. I have view entity A, View entity B and trying to create a new view entity C from View Entity A & View Entity B. When I add complex-alias with '+' operator I get the error message.

Re: Underlying Query for View-entity

2009-09-23 Thread Jacques Le Roux
methods in there where the query is constructed. You could modify the code to add a print statement or do a debug using tools like eclipse, Hope this helps - YOKEPOWER On 9/23/09, su2 wrote: Hello All, Is it possible to see underlying queries for view-entity? I tried checking checkbox for

Re: Underlying Query for View-entity

2009-09-23 Thread Scott Gray
wrote: Hello All, Is it possible to see underlying queries for view-entity? I tried checking checkbox for verbose in Adjust Debugging Level. And tried to see in runtime/log but was not able to see any SQL query there. Am I looking at the right file? Is there any other way? I really

Re: Underlying Query for View-entity

2009-09-23 Thread Yoke Power
statement or do a debug using tools like eclipse, Hope this helps - YOKEPOWER On 9/23/09, su2 wrote: > > Hello All, > > Is it possible to see underlying queries for view-entity? I tried checking > checkbox for verbose in Adjust Debugging Level. And tried to see in > runtime/lo

Underlying Query for View-entity

2009-09-23 Thread su2
Hello All, Is it possible to see underlying queries for view-entity? I tried checking checkbox for verbose in Adjust Debugging Level. And tried to see in runtime/log but was not able to see any SQL query there. Am I looking at the right file? Is there any other way? I really appreciate all

Re: View-entity with WHERE clause

2009-09-22 Thread David E Jones
In the OFBiz trunk there is an option for view-entity definitions to include an entity-condition element that is similar to the ones in simple-method and various widgets, and that will allow you to add a where condition to the view-entity def. -David On Sep 22, 2009, at 1:52 PM, su2

Re: View-entity does not work with 3 member-Entities

2009-09-22 Thread Yoke Power
hi Su, Answers inline On Tue, Sep 22, 2009 at 5:07 PM, su2 wrote: > > Hello Friends, > > I am trying to create view-entity which works fine with 2 entities but does > not work with 3 entity-member. > > I have couple of questions. > > 1. Is there any restriction on e

Re: View-entity with WHERE clause

2009-09-22 Thread Yoke Power
Hi Su, Just to give a back ground, Entity and View Entity work in the same fashion at runtime/query execution; the only difference being, entity is used for single entity and view-entity is used for combining multiple entities; that being said, entity OR view-entity query has two parts namely 1

  1   2   >