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

Create a attribute under model context node

Hi Friends,

Bt115it_slso component has view Items, which has a table context node ( to show order item details ) - BTADMINI which is bound to a model node BTAdminI.

Now are the fields in this model node are available for us. But my requirement is to bring one dummy field onto this Item table.

I need this dummy field ( this doenst have any model node attribute ) user allowed to enter some value in that field, i have to do some validation using that value.

So i dont need that value to be saved in the backend.. Is it possible ? How can i add a field onto this item table which doenst have any associate model attribute, as i dont need this value to be saved.

please resppond.

thanks

Niraja

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Apr 30, 2011 at 12:32 PM

    Hi Niraja,

    If you need to add a dummy field which is relevant only on UI layer and does not need to be saved, then you just need to add a value attribute to the context node. To do this, you need to enhance the concerned view and then add the attribute to the right context node. You can refer to the following wiki that describes how to enhance a Web UI component :

    http://wiki.sdn.sap.com/wiki/x/6ADACg

    After you add this attribute, you can then pull it on your layout from the configuration tool.

    Regards,

    Shiromani

    Add a comment
    10|10000 characters needed characters exceeded

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

    Hi Jon,

    For adding Global varibales, go to your view controller class. Enter the paramter name. Select the level value as 'Static attribute' from the F4 help and Visibility as 'Public'.Enter you data type.This acts as global variable.

    Regards,

    Lakshmi.Y

    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.