on 04-20-2005 5:21 PM
I just started with the Business One SDK for SBO 2004. One of the examples for the UDO objects uses GetArrayDAG. Is this a depreciated method?
I don't see any references to GetArrayDAG in the docs for the CSboDataAccessGate, on the forum, web, etc.
Currently, method GetDAG exists for CSboDataAccessGate.
For example, the MealOrder user object sample uses GetArrayDag like so:
SBOErr CMyUDO::OnAdd ()
{
long lErr, lMealCount;
TCHAR tcName[128];
TCHAR tcPrice[128];
CSboDataAccessGate dagMOR1 = GetArrayDAG (ao_Arr1);
//get number of meals ordered
lMealCount = dagMOR1.GetRecordsCount();
//calculate price of meals
swprintf (tcPrice, _T("%d"), lMealCount * MEAL_PRICE);
//set the price
lErr = SetValue (_T("U_Price"), tcPrice, ao_Main, 0);
//call father class OnAdd function
SBOErr sboErr = CSboBusinessObject::OnAdd ();
return sboErr;
}
Thanks for any assistance.
Nevermind, the docs for the sample were updated even if the sample source wasn't. GetArrayDAG is replaced with GetDAG like I figured.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.