Application type - 2 tier architecture
Protocol - Oracle 2 tier
required - Scripting help on Correlation.
**1st recording ** // 170188 needs to be correlated -
lrd_ora8_bind_col(OraStm1, &OraDef264, 1, &CONTRACT_ID_D372, 0, 0);
lrd_ora8_fetch(OraStm1, -0, 300, &uliFetchedRows, 0, 2, 0, 0);
lrd_ora8_stmt(OraStm1, "select count ( 1 ) from contract_bp join contract on "
"contract.contract_id =contract_bp.contract_id and live_sts ="
"'L' where business_partner_id =:1 ", 1, 0, 0);
lrd_assign(&_1_D373, "170188", 0, 0, 0);
lrd_ora8_bind_placeholder(OraStm1, &OraBnd109, "1", &_1_D373, 0, 0,
0);
lrd_ora8_exec(OraSvc1, OraStm1, 0, 0, &uliRowsProcessed, 0, 0, 0, 0,
0);
**** 2nd recording ***** //value got changed from perivous recording to 379814
lrd_ora8_bind_col(OraStm1, &OraDef288, 1, &CONTRACT_ID_D420, 0, 0);
lrd_ora8_fetch(OraStm1, -0, 300, &uliFetchedRows, 0, 2, 0, 0);
lrd_ora8_stmt(OraStm1, "select count ( 1 ) from contract_bp join contract on "
"contract.contract_id =contract_bp.contract_id and live_sts ="
"'L' where business_partner_id =:1 ", 1, 0, 0);
lrd_assign(&_1_D421, "379814", 0, 0, 0);
lrd_ora8_bind_placeholder(OraStm1, &OraBnd133, "1", &_1_D421, 0, 0,
0);
lrd_ora8_exec(OraSvc1, OraStm1, 0, 0, &uliRowsProcessed, 0, 0, 0, 0,
0);
question is - How to correlate the above mentioned dynamic value which is present in the assigned statement & later on same value will be used in exec statement.
Kindly help me on this.
Thanks,
Yathish