Hi Jimmy,
Thanks for your quick response. Here is my data source
-myFields
- queryFields
- tns: Z_RFC_PR_CREATE_EX
- : IT_PRITEMS
- item(Repeating)
PLANT
COST_CENTER
PURCHASING_GROUP
ORDER
G_L_ACCT
MATERIAL
- dataFields
- tns: Z_RFC_PR_CREATE_EXResponse
: EX_PRNO
my: Plant
my: CostCenter
my: PurchasingGroup
In the above data source ORDER, G_L_ACCT, MATERIAL are the fields in repeating table and PLANT, COST_CENTER, PURCHASING_GROUP are hidden fields.
On button click the data must be passed from my: Plant, my: CostCenter, my: PurchasingGroup to hidden fields (PLANT, COST_CENTER, PURCHASING_GROUP).
But the button should not be in the repeating table. It should be some where else in the form.
When i click the button it should fill the hidden fields of the current row.
Here is the code that i wrote,
I know this is the stupid code, Can you make the changes to this code if possible,
public void CTRL37_6_Clicked(object sender, ClickedEventArgs e)
{
XPathNavigator xNav = MainDataSource.CreateNavigator();
XPathNodeIterator xNode = xNav.Select("/dfs:myFields/dfs:queryFields/tns:Z_RFC_PR_CREATE_EX/IT_PRITEMS/item", NamespaceManager);
while (xNode.MoveNext())
{
string PURCHASING_GROUP= xNode.Current.SelectSingleNode("/dfs:myFields/my:PurchasingGroup", NamespaceManager).Value;
string PLANT = xNode.Current.SelectSingleNode("/dfs:myFields/my:Plants", NamespaceManager).Value;
string COST_CENTER = xNode.Current.SelectSingleNode("/dfs:myFields/my:CostCenters", NamespaceManager).Value;
}
}
Thanks,
Kalyan.