Skip to Content
avatar image
Former Member

Unable to pass data to a Used DC from the Parent DC in CE 7.2

Scenario:

I have created a DC which displays errors for input validation. I am using this DC in a parent DC where the users fill in the input values and submits data.

I am following this blog [http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/8881] [original link is broken] [original link is broken] [original link is broken]; for adding the used DC.

I have added the used DC in the component properties of the parent DC and built both parent and child.

I have set the data in the wddoinit() method of the component controller of the parent DC as in the blog.

But when I run the application the data is not set. The input field/text field is empty.

Request your valuable help here.

Regards,

Vaishali

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Apr 09, 2011 at 07:41 PM

    hi

    You expose nodes/attributes in child dc (add in interface controller) and map this to component controller of the parent dc through used dc(add used dc in references of component controller of parent dc)

    Then use these attributes for data binding.As attributes are mapped then values reflect in both contets

    Hope it helps you

    Best regards

    Suresh Joshi

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 11, 2011 at 04:24 AM

    Hi Vaishali,

    Try setting the values in the wdDoInit() method of the view of the parent DC.

    Regards,

    Sayan Ghosh

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 11, 2011 at 09:02 AM

    Hi Vaishali,

    Some time its not possible to pass the values in general way when the child DC has to supply some value to parent DC at run time. Like the parent DC is initiated and then it invokes the child DC and then Child DC has to pass some value to parent DC such in your case please check the following link for the detail and work around. [how-to-control-visibility-of-one-component-from-th].

    Regards

    Jeetendra

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 15, 2011 at 08:14 AM

    Hi Vaishali,

    Were you able to achieve the output?

    Try passing the value from plug parameter. As it is written in wdinit method, does it get lost during the modification of the view?

    else, in the fire plug method, call a method in innerdc interfaceview controller , from here take the control to the view controller of innerdc and set the context using context mapping. hope this works.

    Thanks,

    Nandini

    Add comment
    10|10000 characters needed characters exceeded