Bookshelf Home | Contents | Index | PDF | ![]() ![]() |
Siebel Reports Administration Guide > Actuate Method Reference > Essential DataStream Methods > About the Fetch MethodThe Fetch method performs three functions:
The following code sample is from the Fetch method in the ssAccountQuery datastream component in the Aclist (Account List) report. Function Fetch () As AcDataRow Dim custDataRow As ssAccountDataRow If (baseReport::bQueryExecuted = True) Then bStatus = ssBusCompFirstRecord (theBC) bStatus = ssBusCompFirstRecord (theBC) If (errCode = 0) And (baseReport::bSetForward) Then ssBusCompInvokeMethod (theBC, "SetForwardOnly", "") bStatus = ssBusCompNextRecord (theBC) If (bStatus = True) And (errCode = 0) Then If (errCode = 0) Then custDataRow.ssAccount_Status = ssBusCompGetFieldValue (theBC, "Account Status") If (errCode = 0) Then custDataRow.ssCity = ssBusCompGetFieldValue (theBC, "City") If (errCode = 0) Then custDataRow.ssCompetitor = ssBusCompGetFieldValue (theBC, "Competitor") If (errCode = 0) Then custDataRow.ssCountry = ssBusCompGetFieldValue (theBC, "Country") If (errCode = 0) Then custDataRow.ssDescription = ssBusCompGetFieldValue (theBC, "Description") If (errCode = 0) Then custDataRow.ssIndustry = ssBusCompGetFieldValue (theBC, "Industry") If (errCode = 0) Then custDataRow.ssLocation = ssBusCompGetFieldValue (theBC, "Location") If (errCode = 0) Then custDataRow.ssMain_Fax_Number = ssBusCompGetFormattedFieldValue (theBC, "Main Fax Number") If (errCode = 0) Then custDataRow.ssMain_Phone_Number = ssBusCompGetFormattedFieldValue (theBC, "Main Phone Number") If (errCode = 0) Then custDataRow.ssName = ssBusCompGetFieldValue (theBC, "Name") If (errCode = 0) Then custDataRow.ssParent_Account_Name = ssBusCompGetFieldValue (theBC, "Parent Account Name") If (errCode = 0) Then custDataRow.ssPostal_Code = ssBusCompGetFieldValue (theBC, "Postal Code") If (errCode = 0) Then custDataRow.ssState = ssBusCompGetFieldValue (theBC, "State") If (errCode = 0) Then custDataRow.ssStreet_Address = ssBusCompGetFieldValue (theBC, "Street Address") If (errCode = 0) Then custDataRow.ssSynonym = ssBusCompGetFieldValue (theBC, "Synonym") If (errCode = 0) Then custDataRow.ssType = ssBusCompGetFieldValue (theBC, "Type") ' Now retrieve the system fields If (errCode = 0) Then custDataRow.ssId = ssBusCompGetFieldValue (theBC, "Id") If (errCode = 0) Then custDataRow.ssCreated = ssBusCompGetFieldValue (theBC, "Created") If (errCode = 0) Then custDataRow.ssCreated_Formatted = ssBusCompGetFormattedFieldValue (theBC, "Created") If (errCode = 0) Then custDataRow.ssCreated_By = ssBusCompGetFieldValue (theBC, "Created By") If (errCode = 0) Then custDataRow.ssUpdated = ssBusCompGetFieldValue (theBC, "Updated") If (errCode = 0) Then custDataRow.ssUpdated_Formatted = ssBusCompGetFormattedFieldValue (theBC, "Updated") If (errCode = 0) Then custDataRow.ssUpdated_By = ssBusCompGetFieldValue (theBC, "Updated By") ssProcessLastError(ssAppServer, "", "") In this example, the value of bStatus defines the position of the first data row. While bStatus is true, custDataRow continues to pass rows until no values are returned. The SetForwardOnly method makes sure that all rows are processed and that duplicate rows are not passed. NOTE: Because all data is returned as strings, two methods are called on the GetFieldValue business component Siebel Object Manager interface variable (for all data types) and on GetFormattedFieldValue (for date, currency, and other data types that require formatting). GetFieldValue and GetFormattedFieldValue are described in Table 44. NOTE: These calls to the two methods are no longer done directly. Instead, these are called as ssBusCompGetFieldValue and ssBusCompGetFormattedFieldValue. These methods are implemented in sssiebel.bas and call the above mentioned methods. |
![]() |
![]() ![]() |
Siebel Reports Administration Guide | Copyright © 2009, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |