on 10-14-2015 3:28 PM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
81 | |
10 | |
10 | |
8 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.