create an Incident with a Product value
Content
Hello can you give me a clarification about how to set a product when submitting an Incident? In standard ProductCategoryInput widget, I saw that the eventObject sent when validating the form is
formEventObject.data.name = "Incident.Product"
formEventObject.data.value = 8438 (I have the productID value from another widget)
and then
RightNow.Event.fire("evt_formFieldValidatePass", formEventObject);
I tried to replicate this behaviour but without success.
I tried also to pass the whole product hierarchy in an array, set the table etc...
formEventObject.data.table = "Incident";
formEventObject.data.value = [8025, 8076, 8438];
formEventObject.data.dataType = "Product";
formEventObject.data.level = 2;
...
Are these field correctly set? am I forgetting something? Thanks very much for every explanation