on 03-03-2016 8:14 PM
Hi Sumit,
I think this is a tricky requirement.
You can scroll the overview page on button click by below code in event handling method.
me->scroll_position-y_pos = '100'.
Above code will scroll the page vertically at position 100.
This is just an example. You need to read the position of the assignment block in page and set the position accordingly.
Regards,
Naresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sumit,
I think that will be available in VIEW_AREA variable of the IMPL Class of an overview page.
I also checked the GO TO Feature in CRM and it works with Javascript and Ajax.
Below code generates the script with Item list as assignment blocks for Go To button.
lr_menu = cl_thtmlb_dynamenu=>factory(
ajaxhandlerclass = me->ajaxhandlerclass
design = me->menudesign
for = lv_parent_id
id = lv_menu_id
items = lt_items
position = me->menuposition
* ??? = me->submenuLoadOnDemand Possible future development.
trigger = me->trigger
onbeforeopen = lv_onbeforeopen
onafterclose = 'th_mb_close'
switchid = me->switchid ).
you can debug in method IF_BSP_ELEMENT~DO_AT_BEGINNING of class : CL_THTMLB_MENUBUTTON
Search for lv_onbeforeopen = me->onclientclick. and read the comments by SAP.
Regards,
Naresh
Hello Naresh Sir,
View area position was blank so tried an another approach using html.
I am not sure whether this is right approach or not but have acheived this using an html tag <a name ="Jumpto"></a> in html page of bsp component.
Field hyper link is done using this interface IF_CHTMLB_FORM_ITERATOR~RENDER_CELL_START
html_str = '<a href=" #Jumpto">'
CREATE OBJECT html_bee.
html_bee->add( html = html_str ).
ev_replacement_bee = html_bee.
Regards,
Sumeet
Hi Sumeet,
I have found a solution thought not a very clean one. You can create multiple View Configuration and based on the Event you can set the config keys which will set the view as the assignment block. For example in your case, when the user selects the Organization, you can select the Org View and set it as the first view.
I am thinking of other ways while this could help you.
Hope this helps.
Thanks,
Samantak.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.