Skip to main content
14-Alexandrite
October 6, 2020
Question

About the "null" error

  • October 6, 2020
  • 1 reply
  • 1868 views

I am working on a workflow. I created an expression. I want it to appear on the screen when the user enters multiple data. However, whenever multiple entries are made, it brings "null" to the beginning of the attribute value. The html code I created to appear on the screen and the screenshot of the Error are attached.

I request your help.

 

ptccommunty.pngScreenshot_1.png

 

com.ptc.core.lwc.server.PersistableAdapter obj = new com.ptc.core.lwc.server.PersistableAdapter(primaryBusinessObject,null,null,null);

obj.load("REF_TEKLIF_NO");

Object value= obj .get("REF_TEKLIF_NO");

if (value instanceof Object[]) {

Object values[] = (Object[]) value;

for(int vv=0; vv < values.length; vv++)

{ REF_TEKLIF_NO = REF_TEKLIF_NO + (vv == 0 ? "" : ", ") + (java.lang.String) values[vv]; }

}

else {

REF_TEKLIF_NO = (java.lang.String) value;

}

1 reply

Community Manager
October 27, 2020

Hi @OnurNalbantoglu.

 

Please confirm the product you are using.

 

Regards.

 

--Sharon