Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / November 2005

Tip: Looking for answers? Try searching our database.

A button in repeating table to fetch value of the row

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Liu Feng - 01 Nov 2005 03:24 GMT
Hi,
I have a repeating table, 1 button and 3 fields in one row,
I write down code for click button, and want to fetch the values of the 3
fields.
How do i?

Signature

Thanks,
LiuFeng
MSN Messenger: blindlf@hotmail.com

Franck Dauché - 01 Nov 2005 03:49 GMT
Hi,

If your 3 fields are: field1, field2 and field3, and that your button is
btnTest then use:

[InfoPathEventHandler(MatchPath="btnTest",
EventType=InfoPathEventType.OnClick)]
public void btnTest_OnClick(DocActionEvent e)
{
 IXMLDOMNode oField1 = e.Source.selectSingleNode("my:field1");
 IXMLDOMNode oField2 = e.Source.selectSingleNode("my:field2");
 IXMLDOMNode oField3 = e.Source.selectSingleNode("my:field3");
}

Regards,

Franck Dauché

> Hi,
> I have a repeating table, 1 button and 3 fields in one row,
> I write down code for click button, and want to fetch the values of the 3
> fields.
> How do i?
Liu Feng - 01 Nov 2005 04:07 GMT
Hi, Franck Dauch¨¦

Thank you!

Signature

Thanks,
LiuFeng
MSN Messenger: blindlf@hotmail.com

Hi,

If your 3 fields are: field1, field2 and field3, and that your button is
btnTest then use:

[InfoPathEventHandler(MatchPath="btnTest",
EventType=InfoPathEventType.OnClick)]
public void btnTest_OnClick(DocActionEvent e)
{
 IXMLDOMNode oField1 = e.Source.selectSingleNode("my:field1");
 IXMLDOMNode oField2 = e.Source.selectSingleNode("my:field2");
 IXMLDOMNode oField3 = e.Source.selectSingleNode("my:field3");
}

Regards,

Franck Dauch¨¦

"Liu Feng" wrote:

> Hi,
> I have a repeating table, 1 button and 3 fields in one row,
> I write down code for click button, and want to fetch the values of the 3
> fields.
> How do i?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.