Skip to main content
14-Alexandrite
Oct 6, 2020 6:55 AM UTC
Question

About the "null" error

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

Support
Oct 27, 2020 4:02 PM UTC

Hi @OnurNalbantoglu.

 

Please confirm the product you are using.

 

Regards.

 

--Sharon

Translate