Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Custom Search View Error

I have been trying custom search by using CL_BSP_WD_ADVSEARCH_CONTROLLER class.

I replaced the super class of my context with CL_BSP_WD_CONTEXT_NODE_ASP. I did required settings on configurations tab. I added the code blow in search.htm.

<thtmlb:advancedSearch id = "advs0"

fieldMetadata = "<%= controller->GET_DQUERY_DEFINITIONS( ) %>"

header = "<%= search->get_param_struct_name( ) %>"

fieldNames = "<%= controller->GET_POSSIBLE_FIELDS( ) %>"

values = "//search/PARAMETERS"

maxHits = "//search/MAX_HITS"

onEnter = "SEARCH"

ajaxDeltaHandling = "false" />

but I got error when I give <%= search->get_param_struct_name( ) %> to "header" parameter. Then I changed this with my structure name like below.

This is error :

ZDND_REPORT_002 ZDND_REPORT_002/viewTest.

CX_SY_REF_IS_INITIAL - Dereferencing of the NULL reference

ZDND_REPORT_002

viewTest.htm

CL_O2DAFSXOJ11GTUP2CSVJ482B88Y=>_ONLAYOUT

<thtmlb:advancedSearch id = "advs0"

fieldMetadata = "<%= controller->GET_DQUERY_DEFINITIONS( ) %>"

header = "ZSEARCH_STRC"

fieldNames = "<%= controller->GET_POSSIBLE_FIELDS( ) %>"

values = "//search/PARAMETERS"

maxHits = "//search/MAX_HITS"

onEnter = "SEARCH"

ajaxDeltaHandling = "false" />

When I tested my page I didn't get any errors but I couldn't see my parameters on screen.

Thank you for your helps...

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question