Accessing Launch Form Options Context Value

I’ve been staring at this too long, but I’m having a bit of trouble accessing the data I am passing to my form via LaunchFormOptions.ContextValue. I am able to see the results and it works just fine when I bind the ContextValue to a dataset and then bind the data source of a grid to that data set.
But, when I try to access the data with code OR view it in the Visual Studio DataSet visualizer, I can’t see anything in there.

image

I thought that accessing via the code would work just fine, but there’s no row at position 0 in the results table of that data set.

Should I be looking somewhere else?

I think you may be looking for
(DataSet)UD01For.LaunchFormOptions.ValueIn;

Well I can access the context value dataset when it’s bound to an ultra grid, but not from a table in the dataset. The data is definitely being passed I’m just not accessing it correctly

I think what you are seeing is that the result table is being built (columns), but there are no datarows. Check whatever generates that ds you are looking at.

So I was being a dumb dumb and my results were actually empty, lol.
Works just fine when there are results, so I handled it on the pre-passing of the context value rather than passing in empty data

1 Like