Is it possible to restore infolog from InfologData? Consider the code
static void Job12(Args _args)
{
InfologData infologData;
;
// here we report something
error("something awful");
error("something terrible");
setprefix("scary");
warning("mouse");
// here we get infolog data
infologData = infolog.infologData();
infolog.clear(0);
// SOME CODE
// here we view infolog once again
}
what should I write instead of // SOME CODE
to restore "something awful","something terrible", "scary\tmouse" into infolog from infologData?
My goal is to perform some operation, store infolog in database, and then show it to user, when they want it.
The simple solution: store the returned value in a container field. Remember, do not store container fields in transaction tables, as it requires one extra disc operation per container/memo field to retrieve a record.
You may later display the value in the infolog:
You can convert the container to string: