cancel
Showing results for 
Search instead for 
Did you mean: 

Goto feature in assignment block

sumeet_gehlot
Contributor
0 Kudos

Hi CRM Folks,

I need a help regarding a navigation within a same assignment block.

Requirement is on click of field value US say Org data  = US in Header view , need to move to relevant assignment block like here as Organization dataassignment block.

Similar to functionality of GoTo in CRM

Regards,

S

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

sumeet_gehlot
Contributor
0 Kudos

Hi Naresh Sir,

Thanks for the answer, but its not working for this requirement

Not scrolling even a inch, Jumping from 1 assignment to other assignment.

Can you please tell how this standard go to feature works i dont know the component name ???

How to check.

Regards,

S

Former Member
0 Kudos

Hi Sumeet,

I am not sure which CRM Component offers GO TO functionality.

As I mentioned in previous reply, this scrolling will work if the vertical scroll bar is shown in your page and your page should be OVERVIEW PAGE.

Regards,

Naresh

sumeet_gehlot
Contributor
0 Kudos

Thanks Sir,

I have  checked in OV page in BP_HEAD overview & scrolling happened....

One question - How to read positions of Assignment block.

Thanks

Sumeet

Former Member
0 Kudos

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

sumeet_gehlot
Contributor
0 Kudos

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

Answers (1)

Answers (1)

samantak_chatterjee
Active Contributor
0 Kudos

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.