Learn about Redwood and be one of the first to join the conversation

Visit Redwood Community
Checking for NULL in getattributeValue in Groovy EPBCS — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Checking for NULL in getattributeValue in Groovy EPBCS

Accepted answer
22
Views
4
Comments

Summary:

we are trying to check if attribute is attached with dimension and if attribute is tagged then users should get a custom message and script execution will stop.

If no attribute is attached to member for that attribute dimension then nothing should be done. It works fine if attribute is attached and custom message is displayed. However if no attribute is attached then it throws an error for String MemberAtt = ModAttr.toString() in the code. If there is no attribute attached it should just continue without throwing an error. It will be great if some guidance can be provided. How to check for NULL since getattributevalue returns NULL if no attribute is found.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!