Return-Path: X-Original-To: apmail-ofbiz-dev-archive@www.apache.org Delivered-To: apmail-ofbiz-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BCDD81853F for ; Fri, 29 May 2015 10:40:17 +0000 (UTC) Received: (qmail 31393 invoked by uid 500); 29 May 2015 10:40:17 -0000 Delivered-To: apmail-ofbiz-dev-archive@ofbiz.apache.org Received: (qmail 31365 invoked by uid 500); 29 May 2015 10:40:17 -0000 Mailing-List: contact dev-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ofbiz.apache.org Delivered-To: mailing list dev@ofbiz.apache.org Received: (qmail 31354 invoked by uid 99); 29 May 2015 10:40:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 May 2015 10:40:17 +0000 Date: Fri, 29 May 2015 10:40:17 +0000 (UTC) From: "Pierre Smits (JIRA)" To: dev@ofbiz.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (OFBIZ-6139) Lookup fields break when used with a form having skip-start="true" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OFBIZ-6139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14564549#comment-14564549 ] Pierre Smits edited comment on OFBIZ-6139 at 5/29/15 10:39 AM: --------------------------------------------------------------- Having to have the form name hard coded in the field as in: {code}
leads to a degradation in functionality. Such a form can be used only with one start form. With dynamic form building whereby the start-form might be conditionally defined (based on parameter values), the form name required in the lookup fields of the injectable sub-forms should change accordingly. was (Author: pfm.smits): Having to have the form name hard coded in the field as in: {code}
{code} leads to a degradation in functionality. With dynamic form building whereby the start-form might be conditionally defined (based on parameter values), the form name required in the lookup fields of the injectable sub-forms should change accordingly. > Lookup fields break when used with a form having skip-start="true" > ------------------------------------------------------------------ > > Key: OFBIZ-6139 > URL: https://issues.apache.org/jira/browse/OFBIZ-6139 > Project: OFBiz > Issue Type: Sub-task > Components: framework > Affects Versions: Trunk > Reporter: Jacques Le Roux > Assignee: Jacques Le Roux > Priority: Minor > Labels: lookup > Fix For: 14.12.01, 12.04.06, 13.07.02, Upcoming Branch > > > We neglected this aspect so far. Adding a "form-name" attribute to the field element of the lookup fixes it. > The value of "form-name" attribute must be the name of the "parent form", ie the 1st form (the one with skip-end="true") which precedes the current form (which has skip-start="true"). > If you use a related description field (using the "description-field-name" attribute of the lookup element) you need to put the "form-name" attribute in this field element too. -- This message was sent by Atlassian JIRA (v6.3.4#6332)