Skip to Content
avatar image
Former Member

Component Usage in Standard component

Hello Friends,

I am new to webdynpro. I browsed this forum before posting this message , but all were not somewhat closer to my requirement. I tried most of them, but couldn't succeed.

I have a scenario where in there is a standard component and a z component(which i have developed)

The z component has custom fields, and 2 buttons(OK,CANC).

Now , i have enhanced the standard component to place a button on the view(there is only one view) .

And when I click on the button.. it opens up the z component. I have managed to map the z components component cont node (which are custom fields) into the comp controller context and also to the view's context where the rest of the std fields are available.

I have managed to put the custom fields inside an include and used the include in the standard tables.

Now , when the user fills up the custom fields and clicks on OK button(which is in the z comp), i need to read the custom fields and make sure that are available in the standard component to store it in the tables.

If somebody has a method to do this, can you please post the step by step approach in resolving this.

Regards,

Vinay

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Nov 22, 2011 at 08:38 AM

    Hi ,

    Make a method in your z component and make check its interface part. Make a exporting parameter ie the data that you want to send to the standard component .

    Call your method into the standard component and you will get the data from input fields there.

    Regards

    Kuldeep

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 22, 2011 at 08:40 AM

    What i would do is , use a singleton OO class with attributes and methods. You can set and get your context nodes which are common to both of your components. In your case you can set the std component context in the OO class as attribute. From custom component access them. Vice versa also possible.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 22, 2011 at 07:13 AM

    Can anyone , please help me with the steps.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 22, 2011 at 09:13 AM

    Hi Vinay,

    You can create an event in the component controller of your Z component and mark it as interface.

    Then within the action of your button OK in your Z comp. you can trigger this event.

    You need to create a method as event handler for the event in the standard component.

    With this you can read the data just at the time when the button is pressed on your component Z.

    Hope this help you.

    Regards.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Vinay,

      Sorry, but i still don't understand your scenario... may be is better to open a new thread for this part in the SRM forum.

      If you want to read the item guid you can read the context node ITEM_BASIC_DATA.

      or wich node do you want to read?