I know that title covers several issues all at once, hopefully I can describe this well.
We have a highly customized opportunity page built on skuid. I am working on a popup to add opportunity line items to the opportunity page from a product search tab on the page. We would like to use this popup for opportunity line items as well as quote line items in the future. The idea is to make it as generic as possible. Here’s what I have thus far:
On our product search tab each product in the search table has a button on it. The snippet that button calls builds a popup via xml and calls createPopupFromPopupXML to open the popup. The hope here is to eventually raise an event from the button and have whatever the main page under the popup deal with it how it would like. The xml is very simple and only includes a single page include to the actual popup page. It also, theoretically, would use a handful of query string parameters to pass default values into the page include of the popup. It looks something like this:
var params = argumentst0];
var popupXMLString =
‘’ +
‘’ +
‘’ +
‘’ +
‘’ +
‘’ +
‘’;
var popupXML = skuid.utils.makeXMLDoc(popupXMLString);
var popup = skuid.utils.createPopupFromPopupXML(popupXML);
The popup page has a model on it derived from Product2 with a number of ui only fields meant to mimic those on our lineitem model. They are shown on a field editor. I have setup a couple conditions on this model to prepopulate fields from the passed in query string values. I am passing the Product2 id as productid and the popup catches that value properly. It does not catch any values from the other variables. As seen above I am trying to pass in a default duration value. This should be picked up by the duration ui only field and prepopulated but it is not happening. I’ve tried making that a text field, passing in 10.0 instead of 10. I’ve tried date values on other fields. Nothing seems to work.
Is there something I need to do to get these ui only field to pickup url params? Could I pass these default values through the popup context object somehow? This was supposed to be the easy part and I’ve been banging my head trying to get it to work for a couple days now.
Thanks,
Jesse