Skip to Content
avatar image
Former Member

How to remove an element which is added because of model binding?

Hi May I know how do I do that? To empty the element that appears in the node because of model binding?

Because I am unable to execute the model as the model requires some of the element's attributes to be filled up.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Mar 18, 2009 at 09:00 AM

    Hi Jackson,

    You can use invalidate before the model execution.

    node.invalidate();

    Check these links:

    1) invalidate-on-node-does-not-seem-to-work

    2) invalidate-concept-for-value-node-and-model-node

    I hope this solves the issue.

    Thanks and Regards,

    Pravesh

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 20, 2009 at 04:36 AM

    Hi,

    Just wanted to put in my 2 cents worth as well. Maybe it will help.

    When I want to remove unnecessary model context attributes that I dont want / need on the UI - I use a Faceless component in between the UI and the Model Components.

    UI <------ Faceless Comp <---- Model

    The model has a Public Part used inside the faceless component. All the unnecessay parameters are filled in with default / initial / garbage values inside the faceless component.

    Finally, the faceless component exposes a Public Part with just the required context to the UI component.

    You could also make use of "Component Usage" via the Component Interface Controller - i guess.

    It''s an SAP Best Practice. And illustrated by Chris Whealy's best practices e-learning segments.

    Hope the information is useful.

    Thanks.

    p256960.

    Add comment
    10|10000 characters needed characters exceeded