Return-Path: X-Original-To: apmail-ofbiz-user-archive@www.apache.org Delivered-To: apmail-ofbiz-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 749F09821 for ; Mon, 16 Apr 2012 04:36:56 +0000 (UTC) Received: (qmail 33026 invoked by uid 500); 16 Apr 2012 04:36:55 -0000 Delivered-To: apmail-ofbiz-user-archive@ofbiz.apache.org Received: (qmail 33001 invoked by uid 500); 16 Apr 2012 04:36:55 -0000 Mailing-List: contact user-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ofbiz.apache.org Delivered-To: mailing list user@ofbiz.apache.org Received: (qmail 32985 invoked by uid 99); 16 Apr 2012 04:36:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Apr 2012 04:36:55 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ipohfly@gmail.com designates 209.85.160.172 as permitted sender) Received: from [209.85.160.172] (HELO mail-gy0-f172.google.com) (209.85.160.172) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Apr 2012 04:36:48 +0000 Received: by ghbg16 with SMTP id g16so2562639ghb.31 for ; Sun, 15 Apr 2012 21:36:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=e/hhhTM+7ctq8aox/GgolqRNGPNh/JHw3dM7vxy5CKY=; b=cfj1j/kFHW70DmrfVODXMRL0pA396NYcVvhDebyJZbEeg/gPduazFlzdxMVlgJDv1H UGsQKu6eYiJoAN2agqDY0eYBHLUFuSnTfT3842UQOQPoAdTM2YIoWKdXtZ13b3gmZ2YA cF3owgQQs1IrxtktEMbZve3d0Fb3L8v5UmJse6ZnLY/qHi5TH+coR6RP2F7VUhBq69rf OvuI/EGP+KSjFqoCjcZmPatGddRDCDBGaqh/K88s3ihrmsQsZ9x/Lfj6hwSFD0XMTeUu d44Oqc4BWdlPcfxy/hDOqI1DbfUY413nuYa+Gk9Z0A+M8QH7x5LGPl0j6AnomnMBUmkM ZImg== MIME-Version: 1.0 Received: by 10.236.170.165 with SMTP id p25mr9429042yhl.123.1334550988102; Sun, 15 Apr 2012 21:36:28 -0700 (PDT) Received: by 10.236.63.243 with HTTP; Sun, 15 Apr 2012 21:36:28 -0700 (PDT) In-Reply-To: References: Date: Mon, 16 Apr 2012 12:36:28 +0800 Message-ID: Subject: Re: Adding condition in DynamicViewEntity without declaring it to be an Alias From: Foo Shyn Chung To: user@ofbiz.apache.org Content-Type: multipart/alternative; boundary=20cf305b0ab0949b6304bdc45d02 X-Virus-Checked: Checked by ClamAV on apache.org --20cf305b0ab0949b6304bdc45d02 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, I can't find such property, possible to point to me which attributes that would likely to be able to configure this? Thanx FooShyn On Mon, Apr 16, 2012 at 3:00 AM, wrote: > Hello. As far i know in an entityengine.xml there is an option for > that is used to state "dont include in the query". I think the Dynamic > query you can do the same. > > Foo Shyn Chung a k=C3=B6vetkez=C5=91t =C3=ADrta: > > >Hi all, > > > >I have a situation whereby there's a filter i need to add into the > >view-entity created via DynamicViewEntity, however this field is not bei= ng > >declared with an Alias field. > > > >The reason for this is because my SQL is actually a group by statement > with > >sum in the fields to get a total sales figure. The filter i would need t= o > >add in is a date field filter so that it will only selects a range of > sales > >date to aggregate the data. However this date will not be a part of the > >group by clause and hence cannot be selected. > > > >Is there anyway that i can add in a condition without stating the field = as > >an Alias? > > > >Thanx > >FooShyn > --20cf305b0ab0949b6304bdc45d02--