Quantcast
Channel: PTC Community : Unanswered Discussions - Windchill
Viewing all articles
Browse latest Browse all 3592

return value for string wrong(java api)

$
0
0

Hi

I´m trying to retrieve an value from a class and returning a string value in to another class.

The return value is not a string it´s returning the class name and an object id.

 

Class IBAHandler

public class IBAHandler  {
public String s;
public String obj;

public String IBAHandler() throws WTException  {  
//this.changeOrder = co;
wt.fc.ReferenceFactory rf = new wt.fc.ReferenceFactory();
  wt.fc.WTReference ref = rf.getReference("VR:wt.change2.WTChangeOrder2:9049460");

 

  wt.fc.Persistable obj = ref.getObject();
   
  String s = obj;
 

 

   return  s;
   }

 

Class RetriveHandler

if (workshops != null) {

 

 

IBAHandler workshops = new IBAHandler();

this.workshops=s;

   

   } else {

    workshops="Workshops not set";

   }

 

(return workshops: ext.itt.www.productService.IBAHandler@231ef93)

 

Regards


Viewing all articles
Browse latest Browse all 3592

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>