cancel
Showing results for 
Search instead for 
Did you mean: 

Creating Value nodes/ Attributes

Former Member
0 Kudos

Hi,

I have a requirement to add some of new fields on to service header over view screen.

One of the fields is present in the BOL, the others need to be added as value nodes. The field which is present in the BOL could be added as a attribute to the existing context node.

But when I right click on the context block i don’t get any options to create value nodes.

Can some one tell me how to create value nodes in CRM 5.0? Or is it possible to add the extra fields needed as value attributes to the existing context node?

Best Regards,

Kiran

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

ok, thanks i will test it out and confirm about this.

Regards,

Kiran

Former Member
0 Kudos

Hi Johan,

Thanks for confirming the fact that value node creation is not supported though Wizard in CRM 5.0, i too had seen this and was looking if there are any work arounds.

You are suggestions looks fine to me, can you elobarte more on how to "create a page attribute for the view in SE80 and read/fill it from the controller class".

Do you mean create the page attribute on the *.htm page?. But how od you display this on screen?. Any pointers to details of this would be helpful.

Thanks,

Kiran

johan_vanzijl
Participant
0 Kudos

Have a look at IrecReason.htm in CRM_IC and the way the drop down lists are filled. Attributes dd_reason, dd_result, etc. are indeed page attributes of the .htm page.

These are set initially from method set_models in CL_CRM_IC_IRECREASON_IMPL using the code below:

  • set page attribute

view->set_attribute( name = 'dd_result'

value = me->gt_result ). "#EC NOTEXT

Any changes can be picked up in method do_handle_data(i think, not sure).

Now in the view you need to change the html of the input field from this:

<crmic:inputField id = "description"

maxlength = "40"

width = "100%"

<b>value = "//AdminH/Description"</b>

disabled = "<%= descdisabled %>" />

to this:

<crmic:inputField id = "description"

maxlength = "40"

width = "100%"

<b> value = "<%= dd_result %>"</b>

disabled = "<%= descdisabled %>" />

You will have to test the above code, as I don't have an actual working example with me now and just used this to show the concept.

johan_vanzijl
Participant
0 Kudos

Hi Kiran

When you use the wizard in the BSP_WD_WORKBENCH you will see that the option Add Value Attribute is greyed out. The text at the top says says Value attributes are not supported in this version.

Do you really need these attributes on the context node? Attributes on the context should update to the bol entity.

An alternative is to create a page attribute for the view in SE80 and read/fill it from the controller class.

Hope this helps

Johan