cancel
Showing results for 
Search instead for 
Did you mean: 

how to get editable pop up in Web UI?

former_member182350
Active Contributor
0 Kudos

Hello,

The requirement is to get a editable popup for notes (solution comment) on opportunity BT111H_OPPT component with certain question pre-populated. Once user add answer to these question in POPUP screen, and there should button on popup screen which will close popup as well as SAVE text to texttype on Opportunity header.

Please suggest whether this is feasible . If yes, suggest approach or reference any standard ediatble popup component?

Thanks,

Arjun

Accepted Solutions (1)

Accepted Solutions (1)

arunprakash_karuppanan
Active Contributor
0 Kudos

Hi,

I doubt that there are any standard components the fit your requirement. You could create a custom bsp component and call it a s a popup. If you want to know how to call a component as a popup, look at the product search help implementation in BT115QIT_SLSQ. Create a custom component, define interface in repository, create component usage in calling component, bind nodes in comp_controller->wd_usage_initialize if needed, call as popup and fire outbound plug to close popup. I'm sure there's plenty of articles on popup usage.

Regards,

Arun Prakash

former_member182350
Active Contributor
0 Kudos

Hi Arun,

Thanks for inputs.

Requirement : To design editable popup with pre-populated question, user will enter the answer to this question and it should be saved on opportunity header notes(one text type). Based on certain data validation of few fields on Opportunity header, the pop up should appear as Editable screen.

Approach:

(1) Created a component ZTEST_POP, Added context node as BTAdminH & BTTextH

(2) Created a pop view with context node (BTTextH)

(3) Included view created as part of step 2 into MainWindow

(4) Changed runtime repository & Added interface view for the custom component

(5) Enhance BT111H_OPPT component => Runtime Repository ->created component usage"Popup" for ZTEST_POP component

(7) Redefine the EH_ONSAVE method of BT111H_OPPT and called the popup using below code:

confirm_popup = comp_controller->window_manager->create_popup(

iv_title = 'Enter Solution text Z0008'

iv_interface_view_name = 'ZTEST_POPUP/MainWindow'

iv_usage_name = 'Popup' ).

Status:

1. Pop up screen is getting launched without data

Issue:

1. Data is not getting populated and Iu2019m unable to achieve this and please Need help/Guidance on how to pass data??

Please can you guide me to solve this issue.

It will be great help if you can give some pointer on this

Thanks and Regards,

Arjun

Former Member
0 Kudos

Hi Arjun,

There are two options to pass data

1. Component controller binding

There should be an identical context node created in both the components.(can be a modal or value node).

Redefine method 'WD_USAGE_INITIALIZE' in the source component 'component controller' and refer to the target component usage(Component usage of pop view)

Example:

IF iv_usage->usage_name = 'BP_BPBT'.
  CALL METHOD iv_usage->bind_context_node
   EXPORTING
    iv_controller_type  = cl_bsp_wd_controller=>co_type_component
    iv_target_node_name = 'BUTTONSAVE'    " Node of the MAIN component
    iv_node_2_bind      = 'BUTTONSAVE'.   " Node of the embedded component
 ENDIF.

Add the context node to the Interface controller in run time repository of target component.

Now if you set the data in source component context node, it will reflect at target.

2. Another simple way is to add the data required in target compoenent to the outbound plug of source component and use the same at target component.

You can see how the query services of standard F4 helps are filled, this is the same way..

Regards,

Masood Imrani S.

former_member182350
Active Contributor
0 Kudos

Thanks a lot for inputs.....Its done..

Answers (0)