Hi,
I'm working on an external .NET application to show some data from Navision tables by accessing the SQL Server. If the table has an OptionString field, I would get an integer instead of the string representation.
Does anyone know where this string information is stored in SQL Server?
Currently I'm using enum to map the optionstring in my .NET application, but everytime I change the OptionString in Navision, I have to update the application also.
I know I could have used Code field combined with FlowField for this purpose, but wasting a table just for storing 3 options is too expensive for me.
Any thoughts and help will be very appreciated.
0
Comments
To my knowledge the optionstring values isn't stored in any SQL Server table. You will have to hardcode it in you application or store the values in a setup table.
Regards
Claus
http://www.AcumenConsulting.co.nz
Regards
Claus
http://www.AcumenConsulting.co.nz
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Eg. I created a field called MyField with the options: Option,second,third
this is how it is represented (in hex):
This is: MyField 00 d ( ( 00 01 00 09 00 Option 00 00 02 00 09 00 second 00 00 03 00 0a 00 third 00 00 00 00 00
So you can see that it is: FieldName null d ( something null 01 something something something Value1 null null 02 something something something Value2 null null 03 Value3 a whole bunch nulls
So you can see that there is a definite pattern and thus the details can be extracted.
So it's not impossible, it's just not easy. 8)
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!