cancel
Showing results for 
Search instead for 
Did you mean: 

Simple Object (Advanced) Search WebUI

Former Member
0 Kudos

Hello,

i want to create a WebUI component build on a Simple Object I've created. The Simple Object has a Queryobject, but it seems that it is not possible to create a Dynamic Query Object for it.

So as soon as I want to use the Model to create an Advanced Search Page I get the Error Message:

Cannot display view BSP_DLC_CONF/AdvSearchConfig of UI Component BSP_DLC_CONF

An exception has occurred Exception Class CX_CRM_UNSUPPORTED_OBJECT - Object ZLOV_OFFCODE_QRY is not (yet) supported

Method: CL_CRM_GENIL_OBJ_MODEL=>IF_GENIL_OBJ_MODEL~GET_DQUERY_AVAIL_ATTR_OPTIONS

Source Text Row: 10

My Questions:

- Does anyone know a way to create an advanced search page for a simple object? (eg. set the missing attibute options somewhere?)

If that's not possible:

- Is there any standard tutorial, documentation or blog that describes how to create a searchpage for simple objects?

Thanks for any help!

Michael

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

was the problem eventually solved? I´m trying to achieve the same here. I created a simple object (ZMySObject), which is related to genil component SO2 automatically. The object has a class and a structure. I have no mandatory fields structure and also no key structure maintained. But i have a search structure maintained, which I named ZMySObjectQ.

I created a search page in the BSP component workbench and used inheritance from cl_bsp_wd_advsearch_controller for the view controller and inheritance from cl_bsp_wd_context_node_asp for my query context node.

Now when I try to configure the search page in the component workbench, I can see all attributes from my search structure, but once I try to move them to right side, the configuration crashes with an cx_unsupported_object exception. The message says 'Object type MySObjectQ (namespace '') has not been defined'.

The location of the exception is IF_GENIL_OBJ_MODEL~GET_DQUERY_AVAIL_ATTR_OPTIONS line 10.

Do I missed a step in the configuration? Is it even possible to create such a search page, from a simple object?

Thanks in Advance

Alexander Petrenz

Former Member
0 Kudos

Hello Michael,

I am facing exactly the same problem. Could you solve the issue in the meantime and can share your results with me?

Regards,

Aametto

sumit_mittal2
Active Contributor
0 Kudos

Hi,

Even to my knowledge advance search is not supported with simple object yet..

Sumit Mittal

Former Member
0 Kudos

Hello,

i'm having the same problem. Is there any example code for implementing an simple search? Or a document for the creation of an advanced search object?

Best regards

Sascha Federau

sumit_mittal2
Active Contributor
0 Kudos

Hi Sascha,

Try creating normal search view ( don't change the context node class with the advance search ) and give the search object as the simple search object which you have specified in the Simple Object Customizing.

i haven't tried it on my own but this should work for normal search as it works in BOL browser as well.

Cheers,

Sumit Mittal

Former Member
0 Kudos

Hi summit,

what do you mean with "normal search view"?

I'm thinking about the creation of an z-advanced-search. Do you think that would be a better solution? Does anybody know if there is any documentation available? I searched for it, but if found only documentations for the simple object search.

Best regards

Sascha

sumit_mittal2
Active Contributor
0 Kudos

Hi Sacha,

While implementing advance search we need to change the view implementation class inheritance to (CL_BSP_WD_ADVSEARCH_CONTROLLER)

Similarly search context node class inheritance also needs to be changed to (CL_BSP_WD_CONTEXT_NODE_ASP)..

Check any standard search component to make sure which level of inheritance needs to be changed for e.g... you can refer to bp_head_search component..

If we don't change these inheritance to give the special behavior of advance searches, the view will be normal search view not supporting dynamically adding/removing search parameters..

I am not sure about the approach of creating z-advance search..In advance search view when you try to map it to simple search object it might give same error as it would be expecting advance search object in the search context node.

Hope this helps..

Cheers,

Sumit Mittal

Former Member
0 Kudos

Hi Sumit,

my problem: i have no knowledge about creating z-components based on simple object search. I have only created the components with advancedsearches (cl_crm_bol_dquery_service,....). Do you know an documentations about this topic?

The main problem: I want to make the fields city and city_part read-only. The user shall use the value help in the postal code field. But if i use the DDIC-Valuehelp and make the fields city and city_part readonly, the values from the value help won't be inserted in the two fields.

But if i use my own component ( with reuse_popup = comp_controller->window_manager->create_popup) it works. Small problem, hight effort to solve

Best regards

Sascha