You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Jacques Le Roux (JIRA)" <ji...@apache.org> on 2015/11/02 10:49:27 UTC
[jira] [Commented] (OFBIZ-6418) Allow form widget find fields
handle ignore-when to control hiding of result grid/form
[ https://issues.apache.org/jira/browse/OFBIZ-6418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14984985#comment-14984985 ]
Jacques Le Roux commented on OFBIZ-6418:
----------------------------------------
Hi Christian,
Could you please explain how this is supposed to work? I just tried by adding
{code}
ignore-when=""quoteId".equals("CQ0001")"
{code}
(CQ0001 is the default data value which shows when demo data are loaded) to this line
{code}
<field name="quoteId" title="${uiLabelMap.OrderOrderQuoteId}" widget-style="buttontext">
{code}
in <form name="ListQuotes" of QuoteForms.xml
But I can't see how this line
{code}
if("Y".equals((String)parameters.get(this.getName().concat("_hide")))){
{code}
in ModelFormField.shouldIgnore() (called by MacroFormRenderer.java.renderTextFindField()) can work, because I see no "_hide" String anywhere else
What do I miss?
> Allow form widget find fields handle ignore-when to control hiding of result grid/form
> --------------------------------------------------------------------------------------
>
> Key: OFBIZ-6418
> URL: https://issues.apache.org/jira/browse/OFBIZ-6418
> Project: OFBiz
> Issue Type: Sub-task
> Components: framework
> Affects Versions: Trunk
> Reporter: Christian Carlow
> Attachments: OFBIZ-6418.patch, OFBIZ-6418.patch
>
>
> The ignore-when provided in OFBIZ-4481 should be extended to form widget find fields to allow end users to hide the field of corresponding results grid/form. It should be hidden by default and controlled from the <field> or subfield element in the form definition using an attribute similar to <text-find> ignore-case attribute. It should be html rendered as a checkbox similar to ignore case.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)