A button in repeating table to fetch value of the row

L

Liu Feng

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?

--


Thanks,
LiuFeng
MSN Messenger: (e-mail address removed)
 
F

Franck Dauché

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é
 
L

Liu Feng

Hi, Franck Dauch¨¦

Thank you!

--

Thanks,
LiuFeng
MSN Messenger: (e-mail address removed)


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¨¦
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top