Question

Lookup Column is not working when manually Inserted in the page

Hi,

I have created a Lookup Configuration page for 'UsrTestObj'(Lookup object) and I have added a lookup column for 'UsrTestObj' that is 'UsrTestLookupColumn'. For displaying it on page I have used following code in the diff array

{

                "operation": "insert",

                "name": "Test Lookup Column",

                "values": {

                    "layout": {

                        "colSpan": 12,

                        "rowSpan": 1,

                        "column": 0,

                        "row": 2,

                        "layoutName": "TestGrid_Layout"

                    },

                    "bindTo": "UsrTestLookupColumn",

                    "enabled": true,

                    "contentType": 5

                },

                "parentName": "TestGrid_Layout",

                "propertyName": "items",

                "index": 4

            }

Lookup Column displayed but not working. When I click on the search symbol nothing happens. How to resolve this issue? Am I missing something.

Like 0

Like

6 comments

Dear Nagaraju,

 

Are there any console errors after you are clicking on the lookup column? Have you tried debugging this behavior? 

 

Best regards,

Angela

Angela Reyes,

Dear Angela,

 

I am getting below error after opening the editpage immediately

user: Supervisor/7f3b869f-34f3-4f20-ab4d-7480a5fdf647

 file: http://localhost:5500/0/core/hash/Terrasoft/controls/component/componen…

 line: 543

 column: 4

 message: Uncaught Terrasoft.ItemNotFoundException: Item is not found 

 date: Mon Feb 08 2021 10:34:19 GMT+0530 (India Standard Time)

 stack: undefined

But I am unable put the breakpoint in the diff array. For more Info, I have used 'Base Lookup Page' as parent for the lookup Editpage.

Hello Nagaraju,

 

Could you please recreate the issue and check the network tab in the browser Developer tools area? For example, if there is any long time pending request.

 

Thank you in advance.

 

Best regards,

Roman

Roman Rak,

Hello Roman,

 

Thanks for Reply. I have checked the network tab, all resources are loaded. I only got the above itemnotfound error.

 

Actually, My requirement is to add an Editpage to the lookup and apply some business rules in the page. I have followed below community article to add an edit page to lookup.

https://community.creatio.com/articles/adding-lookup-edit-page

Now, I am having issue adding a lookup column to that page. Please provide any example of inserting lookup columns manually in edit page.

 

Thanks in Advance.

Nagaraju,

Hello,

 

Please remove empty spaces in the column name so your code would look like this:

{
                "operation": "insert",
                "name": "TestLookupColumn",
                "values": {
                    "layout": {
                        "colSpan": 12,
                        "rowSpan": 1,
                        "column": 0,
                        "row": 2,
                        "layoutName": "TestGrid_Layout"
                    },
                    "bindTo": "UsrTestLookupColumn",
                    "enabled": true,
                    "contentType": 5
                },
                "parentName": "TestGrid_Layout",
                "propertyName": "items",
                "index": 4
            }

There shouldn't be empty spaces in column names and these empty spaces generate an error.

 

Best regards,

Oscar

Oscar Dylan,

 

Thank you Oscar. It is working fine now and silly mistake from my side, I couldn't spot it out.

Show all comments