S
Steve
I would like to create an auxiliary form that gathers data for my main form.
In order to do this, I need to pass a reference of the main form to the
auxiliary form. Then the auxiliary form would be able to gather data to send
back to the main form. I tried the following but couldn't call the function
on the auxiliary form (2nd line of code). Is there something I have to do to
make the function public to external objects?
function search_values::OnClick(eventObj)
{
searcher = Application.XDocuments.NewFromSolution("searcherType.xsn");
searcher.accept_parent_form (XDocument.DOM);
// searcher stores XDocument.DOM in a global
// variable for later processing
}
In case my approach is entirely wrong, here is the situation that drove me
here. I needed a drop-down list of 50K records but InfoPath takes 15 minutes
to process the drop-down choice. I found that a query on an auxiliary form
finds the needed data almost immediately, so I decided to use the auxiliary
form to pick the data and send it back to the main form. If you know of a
better approach, please let me know.
In order to do this, I need to pass a reference of the main form to the
auxiliary form. Then the auxiliary form would be able to gather data to send
back to the main form. I tried the following but couldn't call the function
on the auxiliary form (2nd line of code). Is there something I have to do to
make the function public to external objects?
function search_values::OnClick(eventObj)
{
searcher = Application.XDocuments.NewFromSolution("searcherType.xsn");
searcher.accept_parent_form (XDocument.DOM);
// searcher stores XDocument.DOM in a global
// variable for later processing
}
In case my approach is entirely wrong, here is the situation that drove me
here. I needed a drop-down list of 50K records but InfoPath takes 15 minutes
to process the drop-down choice. I found that a query on an auxiliary form
finds the needed data almost immediately, so I decided to use the auxiliary
form to pick the data and send it back to the main form. If you know of a
better approach, please let me know.