I want to set default value in product type drop down box
in component PRD01QR.
view SearchHelp.
I tried with setter and getter , but not working
they are using query string.
Hi,
You can achieve this by redefining the method GET_VH_PRODUCT_TYPE() in IMPL class of searchHelp view. Just copy paste the implementation of this method from super class and now control the internal table as per your requirement like
comment out the line APPEND INITIAL LINE TO lt_ddlb. (line no: 47)
as it will add an empty line at the starting of internal of product type values which you dont want. In you case there should be some default value for product type field, so arrange the inetrnal table values according to you requirement and what ever value you want to default for product type that should be the first value in the drop down without empty line and add an empty line at the end of the internal table.
No need to call super->GET_VH_PRODUCT_TYPE() in your implementation as you have written all the required code in your implemenation itself.
Hope this would help you!
Regards,
Ajay
Hi,
thanks a lot.
I tried solution and redefined the given method, but it removed search help fields.
Also i did not got line APPEND INITIAL LINE TO lt_ddlb..
But this line is there in method
method - GET_VALUES_FOR_PRODTYPE_ALL
class - CL_CRM_UIU_PROD_CUST_GET
Please help.
Dear Ajay,
Thanks a lot.
In same component in view- SearchHelpResult I want default result for
product type = financing.
I tried with get_table_line_sample.
Passed values to structure but I can't pass value for short_text.
Please advise.
Hi,
Please explain your requirement in detail.
Regards,
Ajay
Hi,
In component PRD01QR
in view- SearchHelpResult we get result for whatever we give search citeria in view SearchHelp.
I want default result to be displayed in view search help result for product type financing
Hi,
In component PRD01QR
in view- SearchHelpResult we get result for whatever we give search citeria in view SearchHelp.
I want default result to be displayed in view search help result for product type financing
Hi,
I didn't understand why do u want to default product type in result list, it should be based on the product you get in the result list.
If you searching based on product type = financing then result list will show you the product type as financing.
But if you are searching based on some other search criteria, it would display you the product type in result list based on your search criteria.
May be you can explain your requirement with the help of a scenario.
Regards,
Ajay
In our case we use only financing products.
So default they want result list with financing products and then user will select required product.
They don't want to give search criteria.
default they want result