Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to read a cotainer field in a view

0 views
Skip to first unread message

Peter

unread,
Jul 30, 2009, 8:37:01 AM7/30/09
to
Hi.

(Ax 4.0, sql2005)
I have a view showing informations about my projects:

select Projid, Name from Projtable

I would like to show the date(s) where the project status was changed
between 3 to 4.

I have set up a databaselog where these informations are kept. My challenge
is, that the ínformation I am seeking is in a field called Data. This field
is a container type, and I am not able to show the content in a read-able way.

I know that there is a C## funciton called something like Con2Str. But my
views are bulid in Tsql.

Can anyone advice me ?

--
Med venlig hilsen / Regards

Peter

SysProg

unread,
Sep 29, 2009, 12:53:02 PM9/29/09
to
Hi Peter,

If I understand correctly, you want to be able to use a select statement to
look at data stored in an ax container.

You will have to read the data into a field on a table using x++ first.

Something like:

for(i=0; i <= conlen(mycontainer); i++)
{
mycreatedField = conpeek(mycontainer, i);
}

Then you can use a select statement in SQL because the data will be stored
in a field you created.

I hope this helps a little.

Regards.

0 new messages