Customization - adding UD table with UltraGrid

I found my problem and feel a bit silly.

 

My customization is add the UD Table to RMADtl.

 

I picked a RMA without a detail line hence the error.

 

I apologize for any confusion.

 

 

 

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of cathy@...
Sent: Tuesday, April 22, 2014 12:11 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Customization - adding UD table with UltraGrid

 

 

I am forgetting about the drop down at this point because I can't even add a record to UD01.

I added UD01 to RMA Processing.

This is how I mapped the UD01 to the RMADtl.

parentKeyFields[0] = "PartNum";
        childKeyFields[0] = "Key1";
        parentKeyFields[1] = "RMANum";
        childKeyFields[1] = "Key2";
        parentKeyFields[2] = "RMALine";
        childKeyFields[2] = "Key3";
        parentKeyFields[3] = "CustNum";
        childKeyFields[3] = "Key4";


Then I added a new sheet to RMA Processing sheetLinePanel.

The Epi Binding is UD01View.

Under File New UD01 - I get an error.

"************** Exception Text **************
System.IndexOutOfRangeException: Index -1 is either negative or above rows count."

Can I map a numeric field to the Key fields? 

If not, since they are keys - what is the best way to map RMADtl to UD01?

Any help would be appreciated.

 

I am forgetting about the drop down at this point because I can't even add a record to UD01.

I added UD01 to RMA Processing.

This is how I mapped the UD01 to the RMADtl.

parentKeyFields[0] = "PartNum";
        childKeyFields[0] = "Key1";
        parentKeyFields[1] = "RMANum";
        childKeyFields[1] = "Key2";
        parentKeyFields[2] = "RMALine";
        childKeyFields[2] = "Key3";
        parentKeyFields[3] = "CustNum";
        childKeyFields[3] = "Key4";


Then I added a new sheet to RMA Processing sheetLinePanel.

The Epi Binding is UD01View.

Under File New UD01 - I get an error.

"************** Exception Text **************
System.IndexOutOfRangeException: Index -1 is either negative or above rows count."

Can I map a numeric field to the Key fields? 

If not, since they are keys - what is the best way to map RMADtl to UD01?

Any help would be appreciated.