Is there any way to use a infomation message box instead of the Al

D

David Wei

I am designing an infopath form. I want to show the users with an information
box, for example, after they click submit, to show " submit successfully"
something.
unfortunately, I just found the Alert method and Confirm method under
XDocument.UI, those are not what I really want, as this is just a information
notification, no warn or choose need.
If I use the default submit function, there is a infomation message box
there. But I couldn't find the way to use that while I write codes for
submitting.

Any expert can help me? Great thanks and Merry Christmas!
 
D

Darren Neimke

Hi David, if you have a custom TaskBar you can pop custom Html UI to the
user. To see this in action take a peek at the DataInterop sample form - you
should find it at:

C:\Program Files\Microsoft Office 2003 Developer Resources\Microsoft
Office InfoPath 2003 SDK\Samples\DataInterop

Extract the files which make up that Form and look at the scripts.js file to
see how they pop the UI.
 
D

David Wei

Hi Darren,

Thanks for quick response. Actually, I did try the sample what you suggested
before. If I didn't misunderstand you, I guest what you figured is the
XDocument.UI.ShowModalDialog. But that 's also not what I want. there are
some reason below:
at first, I don't want to change the form to be full trusted just because I
used such a small piece of functionality. and it's also not straight forward.
I have to make a htm file and add it into the form.

Actually, I just hate the exclamation on the Alert pop window as this is
just information notice. I don't know why the mircrosoft guys didn't offer
another method for UI, similar to Alert but just for kind information.

Regards

david
 
E

em

hi,
don't know if you want/can use managed code. I am using managed code
(VB.NET) and there I use the MsgBox-function which solves the problem you
mentioned.
regards
em
 
D

David Wei

Unfortunately, I can't. there is no .net framework on uer side.
thanks any way.

david
 
C

ChandraSekhar Annapragada

Hi,
We used taskpane option with ShowModalDialog() method we got success on
this. No need to make the form as trusted form.


Greg Collins said:
Since you are not using .NET, if you have a task pane, you can use a modal dialog from the task pane without the requirement to be full trust.

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



Hi Darren,

Thanks for quick response. Actually, I did try the sample what you suggested
before. If I didn't misunderstand you, I guest what you figured is the
XDocument.UI.ShowModalDialog. But that 's also not what I want. there are
some reason below:
at first, I don't want to change the form to be full trusted just because I
used such a small piece of functionality. and it's also not straight forward.
I have to make a htm file and add it into the form.

Actually, I just hate the exclamation on the Alert pop window as this is
just information notice. I don't know why the mircrosoft guys didn't offer
another method for UI, similar to Alert but just for kind information.

Regards

david




Darren Neimke said:
Hi David, if you have a custom TaskBar you can pop custom Html UI to the
user. To see this in action take a peek at the DataInterop sample form - you
should find it at:

C:\Program Files\Microsoft Office 2003 Developer Resources\Microsoft
Office InfoPath 2003 SDK\Samples\DataInterop

Extract the files which make up that Form and look at the scripts.js file to
see how they pop the UI.
 
Top