The code fragment you provided isn't technically valid as you're just referring to the property and not assigning or doing anything with it.
Quite right. What I was doing was just using intellisense to look through all the properties, methods etc (the stuff that gets listed when you click the dot). And I didn't see UserField
nn. And then I decided to dig around a bit and find out why I couldn't see it. By the time I verified that, yep I really can't see those fields, I posted this. But I forgot to make the code nicer by doing something like a messagebox.
Your code is basically the same as mine and yes I am using 7.2.1 SR8.
Maybe if I just type in the properties it will work anyway - could it just be an intellisense thing? BTW, this is in the plugin editor, not VS.
EDIT: So it's not an intellisense thing, because I can see them in your plugin when I click the dot.
I'll just keep looking to see where my plugin is failing. Thanks for confirming that at least I know those fields are there.
EDIT2: Found it.
So, what I was doing was
- Code: Select all
foreach (JiwaFinancials.Jiwa.JiwaLandedCost.shipmentline shipLine in shipment.Lines)
but your code has
- Code: Select all
foreach (JiwaFinancials.Jiwa.JiwaLandedCost.Shipment.Line shipLine in shipment.Lines)
Can I ask, why have a JiwaFinancials.Jiwa.JiwaLandedCost.shipmentline?