Skip to Content
author's profile photo Former Member
Former Member

Calling a Custom View as Pop Up

Hello Guys,

I have added a button UPLOAD in an assignment block and created an event handler method for EH_ONUPLOAD

for navigating to a Custom view as a pop up on click of this button .

Code for adding button:

ls_button-on_click = 'upload'. "EH_ONIMPORT_FROM_FILE
  ls_button-text     = l_import.
  ls_button-enabled  = l_enabled.
  APPEND ls_button TO gt_button.

Code under event Handler method :

gr_file_popup = comp_controller->window_manager->create_popup(
    iv_interface_view_name = 'BP_EMPL/ZNUPLOAD'
    iv_usage_name = 'ZCuFileUpload'
    iv_title = l_title ).

I have also created a Custom Window for holding this custom view and made this window as Interface view.I have defined

component usage using this interface view.

Now ,my navigation on click of UPLOAD button to the custom view does not works.

Please suggest.

Regards

Najam

Add a comment
10|10000 characters needed characters exceeded

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 26, 2011 at 06:59 AM

    Hi,

    i guess your gr_file_popup is bound in debugging, right?

    I missed:

    gr_file_popup->open( ).

    In your coding.

    Kind regards

    Manfred

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 26, 2011 at 08:42 AM

    Hi,

    After your piece of code u need to call the respective event. As mentioned below.

    • Triggere the same event when pop-up is closed

    gr_conf_popup->set_on_close_event( iv_view = me iv_event_name = ' ok ' ).

    gr_conf_popup->open( ).

    Regards,

    Gobi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 26, 2011 at 08:51 AM

    Added the code ..no change.Yet to trigger the custom view.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 26, 2011 at 09:04 AM

    Hi,

    Pls paste your full code, i ll check and confirm u.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 27, 2011 at 04:44 AM

    Thanks

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.