[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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[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

Nicolas Malin (Jira)

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

Aditya Sharma edited comment on OFBIZ-10012 at 11/29/17 2:33 PM:
-----------------------------------------------------------------

+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.



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 ( 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)