Action()
{
char *item;
char *versionSeriesId;
int i = 1;
//Correlate the value to get the File ID
web_reg_save_param_ex("param = GetDocTypeGridId", "LB=odata.etag", "RB=\",\"DataCollectionUri", "Ordinal=ALL", LAST);
//Filter the data
while(i <= lr_paramarr_len("GetDocTypeGridId")){ // start walking parameter array at 1 until number of items in array
item = lr_paramarr_idx("GetDocTypeGridId", i);//save each
if(strstr(item,"Closing Instruction") !=NULL){ //checking with file name as "Closing Instruction"
//found item now parse string
versionSeriesId = (char *)strstr(item, Lr_eval_string("LoanKeyParam")); //the versionSeriesId is contained within the array
Lr_eval_string((char *)versionSeriesId, ClosingInstruction_VersionSeriesId); //since we stopped the initial capture after the versionSeriesId, we don't have to add a \0, just save the parameter.
i = lr_paramarr_len("GetDocTypeGridId")+1; //change i to the greater than while.
}
i++
};
lr_output_message("ClosingInstruction_VersionSeriesId" = %s", lr_eval_string("{ClosingInstruction_VersionSeriesId}")));
web_custom_request("",
"URL = ",
"Method = POST",
"Resource = 0",
"RecContentType = multipart/mixed",
"Referer = ",
"Snapshot = t1.inf",
"Mode = HTML",
"EncType = multipart/mixed; boundary=\"batch_357647d1-a6b5-4e6a-aa73-edfc88d8866e\"",
"BodyBinary = --batch_357647d1-a6b5-4e6a-aa73-edfc88d8866e\r\n...........Content....VersionSeriesId\":\"{ClosingInstruction_VersionSeriesId}".........; ",
LAST);
return 0;
}
No comments:
Post a Comment