You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Aditya Sharma (JIRA)" <ji...@apache.org> on 2017/03/26 04:28:41 UTC

[jira] [Commented] (OFBIZ-9280) Sort Links in Lookup for Data Resource Id causes unwanted behaviour on Find Content page

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

Aditya Sharma commented on OFBIZ-9280:
--------------------------------------

Problem:
1. Lookup dialog for dataResourceId uses "ListLookupDataResource" form to list Data Resource records.
2. "ListLookupDataResource" form extends "ListDataResource" form for all the fields.
3. Sort-field is set to true in "ListDataResource" form for all the fields.
4. Sort-field adds <a> hyperlink to "LookupResource" .
5. When clicked <a> link it moves to a new page and doesn't renders the response in the Lookup dialog.
Solution:
First of all it is a lookup to select DataResourceId so as the pattern followed in other lookups in OFBiz it should not have any sort-fields.To set it false, it should be overridden. If all fields needs to be overridden it is better not to extend "ListDataResource" form and add these fields right away.
Apart from that added 'widget-style="smallSubmit"' to dataResourceId according to the uniform pattern followed.

> Sort Links in Lookup for Data Resource Id causes unwanted behaviour on Find Content page
> ----------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-9280
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-9280
>             Project: OFBiz
>          Issue Type: Bug
>            Reporter: Aditya Sharma
>            Assignee: Aditya Sharma
>         Attachments: screenshot-1.png
>
>
> How to reproduce :
> 1. Log in the Content component
> 2. Go to the Content tab. https://localhost:8443/content/control/findContent
> 3. In the search form, open the lookup of the field ' Data Resource Id '
> 4. Click on any of the table header links to sort the table. Results will be displayed on a new unstyled window closing the Lookup dialog.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)