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

View Fields greyed out

Hello,

Under the component ICCMP_BT_INR, I have called a custom Component ZIBCOMP,which has functional location details.

My custow view under the custom component ZIBCOMP has 3 fields and all of then are greyed out.

For ex:

In usual UI screens we have

Field Label : _______________ (Place holder for entering the value)

In my view the place holder after field label is not visible:

Field Label : NOT VISIBLE (Place holder for entering the value)

Please suggest,if am missing anything in designing the view.

One more thing is my custom component is integrated into the Custom View set in the standard Component.Is something wrong

with the Viewset design?

Regards,

Najm

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Sep 09, 2011 at 09:43 AM

    HI Khaya.

    I'd think there's something wrong with your view configuration. Could you share your layout page html code?

    If it looks like this:

    <%@page language="abap" %>
    <%@extension name="thtmlb" prefix="thtmlb" %>
    <%@extension name="chtmlb" prefix="chtmlb" %>
    <%@extension name="bsp" prefix="bsp" %>
    <chtmlb:config mode = "RUNTIME"
                   xml  = "<%= controller->configuration_descr->get_config_data( ) %>" />
    

    then check your view config from the UI config tool. Try deleting the config, and re-creating it.

    Hope it helps.

    FSA

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hello,

      I deleted the configuration tab and created it again.Now i can see the reuqired fields in the component,with there place holder

      But,the ppalce holders are greyed out i.e the fields ar not input enabled.Though the field's properties in configuration tab say the

      field type as INPUT FIELD.

      Further anything need to be done at layout code.

      Regards

      Najm

  • author's profile photo Former Member
    Former Member
    Posted on Sep 12, 2011 at 01:14 PM

    Hello Guys,

    Any input for me on my issue?

    Regards

    Najm

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 12, 2011 at 09:20 PM

    Hi,

    I think the basic problem is with the context node entity which you are using to display the 3 fields,

    The basic rule is that if your entity is properly created in the create context node methods, then

    the field would be editable.(created and in edit mode)

    lets assume that you are displaying the 3 fields from XXX context node in the view and XXX context node

    has a standard base_entity and it is related to some other standard root entity with the relation which u see in the

    bol_model_browser. So in the create_xxx method, after the standard code creates the model and assigns it

    to you context node, you should call another method like on_new_focus(check any standard code to see the method definition).

    this method resides in the xxx context class and call the method like xxx->on_new_focus( lcl_entity ) from the create_xxx method.

    the lcl_entity should be the parent of that xxx entity. inside the on_new_focus add the code to create a related entity

    of the parent if there is no entity created. (see the bol_model_browser to check the relation between ur xxx and parent node.)

    let me know it worked or not..

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      lcl_entity->get_parent(). returns the parent.

      lcl_entity->get_root( ). returns root entity

      If you need to see the model - then go to GENIL_MODEL_BROWSER. you have to find it there ...

      Edited by: asen2222 on Sep 14, 2011 1:33 PM

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.