cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

We are aware of an issue causing pages to load incorrectly for some users and expect a fix soon. Sorry for the inconvenience.

Translate the entire conversation x

How to get an "Element" by ID

BF_13811900
13-Aquamarine

How to get an "Element" by ID

Version: Windchill 13.0

 

Use Case: The "function validateComments" script contains a "document.getElementById("workitem_comment").value" expression. I think the "workitem_comment" value is being used to represent the ID of the field for the "Comments" attribute on a workflow task object.


Description:

I am trying to find out what the element ID would be for the "Process" attribute on the same workflow task object. Please can anybody shed more light on what an element is exactly and how I can query the IDs assigned to different elements that exist in Windchill?

ACCEPTED SOLUTION

Accepted Solutions

Use the weblink below to see information relating to Javascript elements, IDs and associated properties and methods. 

 

https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementById

 

Use the link found below this text to find out how browser developer tools can be used to help identify elements/IDs

 

https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementById

 

View solution in original post

4 REPLIES 4

Hi @BF_13811900,

Thank you for your question. 

Your post appears well documented but has not yet received any response. I am replying to raise awareness. Hopefully, another community member will be able to help.

Also, feel free to add any additional information you think might be relevant. It sometimes helps to have screenshots to better understand what you are trying to do. 

 

Regards,

Anurag 

BF_13811900
13-Aquamarine
(To:anursingh)

Hi. I no longer require support with this one. Please could this post be removed? It seems I am unable to remove it myself.

If you're able to share the solution you found, you should be able to mark that as the "Solution". That will help others in the Community in the future, in case they have the same question.

Use the weblink below to see information relating to Javascript elements, IDs and associated properties and methods. 

 

https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementById

 

Use the link found below this text to find out how browser developer tools can be used to help identify elements/IDs

 

https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementById

 

Announcements
Top Tags