Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
Hi @SY_11011881
Thank you for your question!
I’d like to recommend to bring more details and context to your initial inquiry. For example:
Please add screenshot(s) to better understand what you are trying to do in your process.
Please refer to this guideline to make your questions more likely to receive a quick and useful answer.
This will increase your chances to receive meaningful help from other Community members.
What is a good question?
Thank you for your participation and please let me know if you need further assistance!
Best regards,
a portion of your text s not visible in english language. can you also put the question in english ?
Hi @aman.somgade,
Please make sure to use the translation option we have available. It will translate the whole text, and title, in English.
Thanks,
Thanks for the info. I will use this feature going ahead.
You can use this code to get the attribute value:
public static String getIBAValue(Persistable targetObj, String ibaInternalName) throws WTException {
String ibaValue = "";
try {
Locale locale = SessionHelper.getLocale();
PersistableAdapter obj = new PersistableAdapter(targetObj, null, locale, null);
obj.load(ibaInternalName);
Object ibaObj = obj.get(ibaInternalName);
if(ibaObj != null)
{
return ibaObj.toString();
}
else
return ibaValue;
} catch (WTException e) {
e.printStackTrace();
String error = "Error while fetching attribute value with message= "+e.getMessage();
return error;
}
}
Hi @SY_11011881,
I wanted to see if you got the help you needed.
If so, please mark the appropriate reply as the Accepted Solution or please feel free to detail in a reply what has helped you and mark it as the Accepted Solution. It will help other members who may have the same question.
Please note that industry experts also review the replies and may eventually accept one of them as solution on your behalf.
Of course, if you have more to share on your issue, please pursue the conversation.
Thanks,