on 2019 Jul 23 9:02 AM
When I create a text for an activity, the first text is accepted.
When I try to add another text I receive an error "DATREF_NOT_ASSIGNED".
How can I add multiple text types to the same acticvity
// Create a text of type "Body Text" s. DataTypes in RepExplorer
10002 = Body Text instActivityTxtColl = instActivity.TextCollection.Create();
elActivityTxtCollTxt.TypeCode.content = "10002";
instActivityTxtCollTxt = instActivityTxtColl.Text.Create(elActivityTxtCollTxt);
elActivityTxtCollTxtCntnt.Text.content = "10002 Body Text from InfoText:" + "\n" + this.Infotext; instActivityTxtCollTxt.TextContent.Create(elActivityTxtCollTxtCntnt);
// Add other text ? Error: DATREF_NOT_ASSIGNED ?
if (instActivityTxtColl.IsSet())
{
elActivityTxtCollTxt.Clear();
elActivityTxtCollTxt.TypeCode.content = "10023";
instActivityTxtCollTxt = instActivityTxtColl.Text.Create(elActivityTxtCollTxt);
elActivityTxtCollTxtCntnt.Clear();
elActivityTxtCollTxtCntnt.Text.content = "10023 Service Details:"; instActivityTxtCollTxt.TextContent.Create(elActivityTxtCollTxtCntnt);
}
Request clarification before answering.
User | Count |
---|---|
31 | |
9 | |
8 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.