cancel
Showing results for 
Search instead for 
Did you mean: 

How to change a format from symbol to number?

SOLVED
Highlighted
New Contributor

How to change a format from symbol to number?

Hi! I have one row,in request, where data is in symol format, i need insert data in another request, but i need plus number. How can i change format, from symbol to number in SoapUI?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Re: How to change a format from symbol to number?

Hey ,

you stated "For example, i have in one request field in char format, i need this data transfer to another request but add some number. For that, i need change from char to varchar. Can i change it in SoapUi?"

 

Is this XML or JSON?

REST or SOAP?

How are you populating the request with data?  Are you hard coding the data values or are you building the content of the request via say a Datasource?

If it's .json rather than .xml - datatypes are maintained more visually in .json - so if "3" is considered text, 3 is considered numeric

 

so if you had a .json name value pair as follows:

 

"attributevalue" : "3"  << the value would be considered text

 

"attributevalue" : 3  << the value would be considered numeric

 

If the above doesn't help - providing more detail for your use case (consider the questions above and others I haven't specified) can only help people diagnose the issue


Cheers,

Richie

 

if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta

View solution in original post

4 REPLIES 4
Highlighted
Community Hero

Re: How to change a format from symbol to number?

Can you tell us a little bit more about this question? Maybe upload a print screen so we can better understand?



If my answer helped please click on the 'Accept as Solution' button.
Highlighted
New Contributor

Re: How to change a format from symbol to number?

For example, i have in one request field in char format, i need this data transfer to another request but add some number. For that, i need change from char to varchar. Can i change it in SoapUi?

Highlighted
Community Hero

Re: How to change a format from symbol to number?

Hey ,

you stated "For example, i have in one request field in char format, i need this data transfer to another request but add some number. For that, i need change from char to varchar. Can i change it in SoapUi?"

 

Is this XML or JSON?

REST or SOAP?

How are you populating the request with data?  Are you hard coding the data values or are you building the content of the request via say a Datasource?

If it's .json rather than .xml - datatypes are maintained more visually in .json - so if "3" is considered text, 3 is considered numeric

 

so if you had a .json name value pair as follows:

 

"attributevalue" : "3"  << the value would be considered text

 

"attributevalue" : 3  << the value would be considered numeric

 

If the above doesn't help - providing more detail for your use case (consider the questions above and others I haven't specified) can only help people diagnose the issue


Cheers,

Richie

 

if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta

View solution in original post

Moderator

Re: How to change a format from symbol to number?

Thanks everyone for your participation.

@PavloRaketa , have you tried what Richie suggested? Did this help?

 


Olga Terentieva
SmartBear Assistant Community Manager

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors