cancel
Showing results for 
Search instead for 
Did you mean: 

ParseFromString does not exist

former_member200925
Active Participant
0 Kudos

Hi experts,

I'm trying to assign a string in the "EXTENDED_Name" variable, but the follow message is displayed to me:

I'm importing the libraries:

- import ABSL;

- import AP.Common.GDT;

- import AP.CRM.Global;

- import BASIS.Global;

But the error still appear.

Can help me ?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I wouldn't expect to typically use ParseFromString with a "Name" type field. What is the actual type of EXTENDED_Name?

Is there a reason you aren't doing a direct assignment like:

text = "05";

If this isn't allowed, depending on the element type of "text", it may need to be:

text.content = "05";

former_member200925
Active Participant
0 Kudos

Hi Dan thanks for reply,

I'm trying to set "Name" to de ServiceRequest, like below:

var dataServiceRequest : elementsof ServiceRequest;

dataServiceRequest.Name = "Text of Test";

But the error "Assigment of the type 'String' to the type 'EXTENDED_Name' is not possible." is displayed at "Error list".

I'm try to convert type EXTENDED_Name with ParseFromString. To do this I need the command ParseFromString.

Do you understood ?

Former Member
0 Kudos

Anderson,

Try:

dataServiceRequest.Name.content = "Text of Test";


You may also need to set a languageCode as well, e.g.:


dataServiceRequest.Name.languageCode = "EN";

former_member200925
Active Participant
0 Kudos

Thanks for your reply Dan, it's work.

Answers (0)