Quantcast
Channel: Martin Dráb's Activities
Viewing all articles
Browse latest Browse all 17532

Populating a form grid from an existing data source using x++

$
0
0

Hi,

I would like to display data in a grid from an existing data source.

Is it possible to populate a grid in a form using a Method and calling the data source directly with an SQL like query in x++? I can query and retrieve data from an existing data source directly using a simple string field and setting the Data Method to a form method that returns the result of a query. The method I used is below.

public display RecId userCount()
    {
        return (select count(RecId) from UserInfo).RecId;
    }

Can I do something similar with a grid to display a simple query in x++?

Note: the UserInfo data source is not included in the form, I can just call the data source directly.

Thanks,

Matt


Viewing all articles
Browse latest Browse all 17532

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>