
Signature
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com
Perhaps there is something about calling Query from rules that sets that timeout back to the default value.
Try creating a second query button (or whatever you are using) which calls into code instead of using a rule. Have your code physically set the timout and then do a query. See if that makes a difference.
Hey Microsoft, if your listening -- is there something about rules that sets the timeout back to the default value?

Signature
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com
This datasource is NOT loaded by default, but still the timeout remains 30
sec.
Dominique
"Greg Collins [InfoPath MVP]" <Greg.Collins_AT_InfoPathDev.com> wrote in
message news:OhbuU2U4EHA.3388@TK2MSFTNGP15.phx.gbl...
Secondary data sources are loaded before the OnLoad event handler is
processed. This is because things like User Roles might point to a data
source--so that information has to be there early on.
You will need to tell your secondary data source to NOT load by default...
Then in your OnLoad handler you can set the timeout and then manually query.
This should solve your issue.

Signature
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com
Dde - 14 Dec 2004 01:44 GMT
Will give that a try tomorow.
Thanks
Perhaps there is something about calling Query from rules that sets that
timeout back to the default value.
Try creating a second query button (or whatever you are using) which calls
into code instead of using a rule. Have your code physically set the timout
and then do a query. See if that makes a difference.
Hey Microsoft, if your listening -- is there something about rules that sets
the timeout back to the default value?

Signature
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com
This datasource is NOT loaded by default, but still the timeout remains 30
sec.
Dominique
"Greg Collins [InfoPath MVP]" <Greg.Collins_AT_InfoPathDev.com> wrote in
message news:OhbuU2U4EHA.3388@TK2MSFTNGP15.phx.gbl...
Secondary data sources are loaded before the OnLoad event handler is
processed. This is because things like User Roles might point to a data
source--so that information has to be there early on.
You will need to tell your secondary data source to NOT load by default...
Then in your OnLoad handler you can set the timeout and then manually query.
This should solve your issue.

Signature
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com
jb - 14 Dec 2004 08:57 GMT
I set *all* my timeouts high (for debugging in MSE), and I use code (not
rules) for all filling, and it works OK for me.
> Will give that a try tomorow.
> Thanks
[quoted text clipped - 23 lines]
>
> This should solve your issue.
Dde - 24 Dec 2004 05:48 GMT
Does it mean you can use NO rules at all ?
Thanks,
Dominique
> I set *all* my timeouts high (for debugging in MSE), and I use code (not
> rules) for all filling, and it works OK for me.
[quoted text clipped - 26 lines]
> >
> > This should solve your issue.
jb - 24 Dec 2004 08:07 GMT
I'm not using any rules anywhere. I haven't tested whether rules would make
anything not work. I can only say the timeout does seem to work for me,
using code. BTW, I use a WebService QueryAdapter --- no guarantee there
might be a difference for timeouts on different types of adapter.
> Does it mean you can use NO rules at all ?
>
[quoted text clipped - 37 lines]
> > >
> > > This should solve your issue.
Dde - 26 Dec 2004 05:24 GMT
Hi,
I use this code on a button vor mty Web Service query adapter:
function CTRL380_6::OnClick(eventObj) {
// Write your code here
XDocument.UI.Alert("This operation can take up to one minute.");
XDocument.DataObjects("EstimateOptim").QueryAdapter.Timeout = 120;
XDocument.DataObjects("EstimateOptim").QueryAdapter.Query();
}
but I also have some rules on other objects. Whatever I do, the WS adapter
still times out after 30 sec.
Dominique
> I'm not using any rules anywhere. I haven't tested whether rules would make
> anything not work. I can only say the timeout does seem to work for me,
[quoted text clipped - 42 lines]
> > > >
> > > > This should solve your issue.
jb - 28 Dec 2004 13:37 GMT
Sorry, can't help any more. You've done the right thing and all you can, I
think...
> Hi,
>
[quoted text clipped - 68 lines]
> > > > >
> > > > > This should solve your issue.
jb - 28 Dec 2004 13:37 GMT
Sorry, can't help any more. You've done the right thing and all you can, I
think...
> Hi,
>
[quoted text clipped - 68 lines]
> > > > >
> > > > > This should solve your issue.
Dde - 30 Dec 2004 06:19 GMT
Ok fine, thanks anyway.
Dominique
Dde - 24 Dec 2004 05:49 GMT
Hi,
Tried his soluion but it doesn't work either .....
Dominique
Perhaps there is something about calling Query from rules that sets that
timeout back to the default value.
Try creating a second query button (or whatever you are using) which calls
into code instead of using a rule. Have your code physically set the timout
and then do a query. See if that makes a difference.
Hey Microsoft, if your listening -- is there something about rules that sets
the timeout back to the default value?

Signature
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com
This datasource is NOT loaded by default, but still the timeout remains 30
sec.
Dominique
"Greg Collins [InfoPath MVP]" <Greg.Collins_AT_InfoPathDev.com> wrote in
message news:OhbuU2U4EHA.3388@TK2MSFTNGP15.phx.gbl...
Secondary data sources are loaded before the OnLoad event handler is
processed. This is because things like User Roles might point to a data
source--so that information has to be there early on.
You will need to tell your secondary data source to NOT load by default...
Then in your OnLoad handler you can set the timeout and then manually query.
This should solve your issue.

Signature
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com