Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Hi.
I need to invoke javascript funtion after "defineItemAttributesWizStep" is displayed.
The purpose is to set number field "readOnly=true".
How can i do it?
Action attribute "beforeJS" does not help because field is null at that time.
Thanks.
Aleksandr Kosolapov wrote:
Hi.
I need to invoke javascript funtion after "defineItemAttributesWizStep" is displayed.
The purpose is to set number field "readOnly=true".
How can i do it?
Action attribute "beforeJS" does not help because field is null at that time.
Thanks.
I have done something similar for new part creation by adding this to the end of codebase/netmarkets/jsp/part/createPartWizard.jspf:
<script>
//Run functions after the attribute table has been loaded.
PTC.wizard
.on(
"afterLoadAttributeTable",
function() {
//alert("Here at afterLoadAttributeTable");
//Needs a delay here because the "afterLoadAttribueTable" isn't really
//after the table has finished loading in the browser.
setTimeout(
function()
{
someJavaScriptFunctionHere();
}, 50);
});
</script>
Hi,
As per your requirement, if you only want to make number as read only you can achieve the same by changing the constraint in OIR, provided the object is supported to have OIR.
Find below the link for more details regarding OIR
https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS172537
another link from Help Center which detailed different constraints and their effect on UI.
Best Regards,
Kaushik