Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

_element_ID does not retrieve the current value

Hi,

We want to add the _element_ID to the logging entry in each java script element to have the element ID in case an error occured. The purpose is to faster identify the causing element and to fix the error. Unfortunately it seems that the _element_ID contains always the ID of the element where the _element_ID is used first. For all following java scripts elements the _element_ID  will return the same ID.
Is there way to get the correct ID of the java script element?
try {
    ...
} catch (e) {
    logError(_sessionLogger, _element_ID, e);
}

0 votes


Accepted answer

Permanent link

 Hi Alex,

Thanks for pointing this out. This seems like a defect , have raised one - 79498: Element_ID for javascript element shows same id in console


Alex Beckert selected this answer as the correct answer

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 152

Question asked: Feb 09 '23, 7:40 a.m.

Question was seen: 896 times

Last updated: Feb 21 '23, 1:30 a.m.

Confirmation Cancel Confirm