cancel
Showing results for 
Search instead for 
Did you mean: 

Replicate Note Field to External Notes in a Customer Quote.

pablo_daniel
Participant
0 Kudos

Hi guys,

I need to replicate the field called Note in the Product to a Customer quote field called External Notes but the field is ReadOnly.

There is a way to change the property of  External Notes Field? ?

I attachs the screen shots.

  • Field in BO Product.

  • Replicate to field External note.

Thx

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Pablo,

I do not know about Customer Quotes in C4C.

However I have done something similar for Service Orders in ByDesign where I had to set the remark for supplier.

There it only did work if I had to create the note content from scratch since the node content was indeed read-only too.

Here is my code:


if (!item.ItemTextCollection.IsSet()) {

  item.ItemTextCollection.Create();

}

var elofText : elementsof ServiceOrder.Item.ItemTextCollection.Text;

elofText.TypeCode.content = "10014";

var text = item.ItemTextCollection.Text.Create(elofText);

if (!text.TextContent.IsSet()) {

  text.TextContent.Create();

}

text.TextContent.Text.content = textContent;

"10014" is the code for the "remark for supplier". You might need to find the correct code by having a look at the data type od the TypeCode using the repository explorer.

I do not know, whether this might help you or not.

Best regards,

Ludger

--

Custom Development with All4Cloud.de

pablo_daniel
Participant
0 Kudos

Hi Ludger,

thanks for the Reply but i cannot to use this code. Because the line 3 doesnt works.

1 var elofText : elementsof ServiceProduct.TextCollection.Text;

2 elofText.TypeCode.content = "10024";

3 var text = item.ItemTextCollection.Text.Create(elofText);


The message Error is "Parameter type 'ServiceProduct.TextNodeElements' is not valid"


Thx.

Former Member
0 Kudos

Open an incident and provide details the name of the business object, name of the node in the repository explorer, code sample, and usecase you want to do. The nodes of standard objects are usually PSM write released and can be done so in a future hot fix.

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Pablo,

You ned to create the ExternalNote at the CustomerQuote.

The code above tries to create a TextCollection at the Root node of a ServiceProduct.

There is only a TextCollection at the SalesProcessInformation node.

Bye,

   Horst

Former Member
0 Kudos

Hi Pablo,

as I wrote in my introduction, my code is for Service Orders in ByDesign where I have done something similar.

If possible you need to adapt this to Customer Quotes for C4C to fit your purpose.

Best regards,

Ludger