Share this page

# lrt_InterateIDCals

Correlating Functions

Saves data for correlation after an AS_EXESVC call.

void lrt_InterateIDCals( void *buf, int occurrence, char *param );

buf | The name of the buffer containing the response
occurrence | The number of times the service has been called (a zero-based index)
param | The name of the parameter to store the data

lrt_InterateIDCals is automatically generated by Vugen when using the Clarify CRM application and saves data that was returned in the reply buffer of an AS_EXESVC call to the database. The data is used for correlation.

buf is the name of the reply buffer whose data is saved for correlation. It is the same buffer sent as the odata argument of lrt_tpcall.

lrt_InterateIDCals is similar to lrt_ClarifyCorrelate. It is generated only if the "next_value" field appears in the buffer sent to the server as the AS_EXESVC request. See the example.

## Return Values

This function has no return value.

## Parameterization

The following argument can be parameterized using standard parameterization: source

## Example

The following example sets a buffer, data_0 before sending it in an AS_EXESVC call to the database. Note the "next_value" field, which always appears in the fifth occurrence of the same id.

To save the data in the returned buffer, data_1, lrt_interateIDCals is invoked and saves the data to the parameter interact_id0.

Copy code

    lrt_Fadd32_fld((FBFR32*)data_0, "id=167772263", "value=db",
              LRT_END_OF_PARMS);
    lrt_Fadd32_fld((FBFR32*)data_0, "id=167772263", "value=DB_INCFLD",
              LRT_END_OF_PARMS);
    lrt_Fadd32_fld((FBFR32*)data_0, "id=167772263", "value=",
              LRT_END_OF_PARMS);
    lrt_Fadd32_fld((FBFR32*)data_0, "id=167772263", "value=",
              LRT_END_OF_PARMS);
    lrt_Fadd32_fld((FBFR32*)data_0, "id=167772263", "value=next_value",
              LRT_END_OF_PARMS);
    lrt_Fadd32_fld((FBFR32*)data_0, "id=167772270", "value=user",
              LRT_END_OF_PARMS);
    data_1 = lrt_tpalloc("FML32", "", 4096);
    tpresult_int = lrt_tpcall("AS_EXESVC", data_0, 0, &data_1, &olen, 0);
    lrt_abort_on_error();
    // Save returned value from the table
    lrt_InterateIDCals(data_1, 0, "interact_id0");

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: