PO Shipping Address Spare Fields
Posted: Wed Nov 20, 2019 12:17 pm
So after reading https://forums.jiwa.com.au/viewtopic.php?f=26&t=375&hilit=shipping+address I put some similar code in my form.
Except then it doesn't populate.
So I take a look at ILSpy, and see this:
this suggests to me that if the text in the "Field" column isn't "Spare1", then it's not going to get the Spare1 value out of the ShippingAddress.
Any other suggestions?
Except then it doesn't populate.
So I take a look at ILSpy, and see this:
- Code: Select all
public void DisplayShippingAddress()
{
JiwaGrid shippingAddressJiwaGrid = ShippingAddressJiwaGrid;
checked
{
int num = ShippingAddressJiwaGrid.ActiveSheet.RowCount - 1;
for (int i = 0; i <= num; i++)
{
string text = Conversions.ToString(shippingAddressJiwaGrid.get_GridText("Field", i));
switch (<PrivateImplementationDetails>.ComputeStringHash(text))
{
....
case 2959222051u:
if (Operators.CompareString(text, "Spare1", TextCompare: false) == 0)
{
shippingAddressJiwaGrid.set_GridText("Value", i, (object)_PurchaseOrder.ShippingAddress.Spare1);
}
break;
...
}
shippingAddressJiwaGrid = null;
}
}
this suggests to me that if the text in the "Field" column isn't "Spare1", then it's not going to get the Spare1 value out of the ShippingAddress.
Any other suggestions?