Skip to Content
0
Former Member
Apr 28, 2009 at 04:47 AM

Help required in getting Attribute value in CC

64 Views

Hi Experts,

Let me first explain the scenario.

I want two user defined search helps. Say SH1 and SH2. In the main view ( of Component Controller CC)user will select the value ( say for example HBKID )from SH1 and I need to pass this value to the other search help based on which the value shall be populated.

Now Let me explain what I did.

Created a View and created one search help ( SH1) and I am able to get the values on the nmain View. Now I created the second SH2 now I am facing the problem of passing the value populated in the view to this SH2.

What I tried is, created a Method in main view (with HBKID as export parameter )of CC and made it as an interface, then I called this method from SH2 View. During debug I can see the control is coming up to the method since I could not able to populate the HBKID value it is returning empty values.

Main view context is same as CC context. ( i.e drag and dropped the CC context into Main View context)

To over come this I tried the following ways.

1. Created an Event in CC with HBKID as import parameter. Then triggered this event from the interface method. Created an event handler in the main view of CC. Then populated the HBKID value. However this did not give me the output.

2. Created a public attribute in the CC. Tried to populate this in WDDOMODIFYVIEW with the following code

wd_comp_controller->gv_hbkid = lv_hbkid.

before populating in the debug mode ensured that lv_hbkid is populated.

and in the CC interface method simply I wrote

hbkid = wd_this->gv_hbkid.

This also did not yield the result.

I request all of you to guide me in this regard.

Regards

Venkatesh