ofbiz-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacques Le Roux (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (OFBIZ-10012) Alert message : "Developer: for lookups to work you must provide a form name!" appears when try to select contentId from Lookup
Date Thu, 30 Nov 2017 10:57:00 GMT

    [ https://issues.apache.org/jira/browse/OFBIZ-10012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16270778#comment-16270778
] 

Jacques Le Roux edited comment on OFBIZ-10012 at 11/30/17 10:56 AM:
--------------------------------------------------------------------

+1 for having console message though I think we can continue with the missing lookup icon
& add a message from fieldLookup.js.
Here, issue is with "LookupContent" form (check ownerContent lookup https://demo-trunk.ofbiz.apache.org/content/control/findContent
) as it is generating form name as "form_0_lookupId" and all the renderLookup field are having
"LookupContent" as form name due to which
{code}
jQuery('form[name="${formName}"]').length()
{code}
gives 0 results.
if we want checks to ensure no lookup I think it should be in either macroFormRenderer or
renderLookupField.



was (Author: aditya.sharma):
+1 for having console message though I think we can continue with the missing lookup icon
& add a message from fieldLookup.js.
Here, issue is with "LookupContent" form (check ownerContent lookup https://demo-trunk.ofbiz.apache.org/content/control/findContent
) as it is generating form name as "form_0_lookupId" and all the renderLookup field are having
"LookupContent" as form name due to which 
jQuery('form[name="${formName}"]').length gives 0 results.
if we want checks to ensure no lookup I think it should be in either macroFormRenderer or
renderLookupField.


> Alert message : "Developer: for lookups to work you must provide a form name!" appears
when try to select contentId from Lookup
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-10012
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-10012
>             Project: OFBiz
>          Issue Type: Bug
>          Components: content
>    Affects Versions: Trunk
>            Reporter: Sonal Patwari
>            Assignee: Deepak Dixit
>         Attachments: ContentSearchOptionsAlertShowing (1).png
>
>
> Steps to reproduce:
> 1. Go to [Content Component|https://demo-trunk.ofbiz.apache.org/content/control/main]
> 2. Click on Content from [submenu|https://demo-trunk.ofbiz.apache.org/content/control/findContent].
> 3. Click on the Advanced Search button [https://demo-trunk.ofbiz.apache.org/content/control/ContentSearchOptions].
> 4. Provide Content Id.
> 5. User should be able to see the alert message.
> 6. For reference screenshot is attached.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message