Is is possible to have the out put from a function, specifically {INS_NAME()} to be saved to a document variable to be used in the {ADD_DOCUMENT_SUMMARY()} function?
I need the summary to have the insurance name and two other document variables in it.
Thoughts????
Thanks for your help!!
Gail Ruhlin
Have you tried the following:
{DOCUMENT.myfieldname = INS_NAME()}
.....
{ADD_DOCUMENT_SUMMARY(..., DOCUMENT.myfieldname,...)}
or
{OBSNOW("myOBSterm", INS_NAME() }
{ADD_DOCUMENT_SUMMARY(..., OBSNOW("myOBSterm"), ...) }
For some reason that is not working. I have both
{DOCUMENT.INSNAME=INS_NAME()}
{ADD_DOCUMENT_SUMMARY(DOCUMENT.INSNAME + " " +DOCUMENT.PLEASE_INDIC + " " + DOCUMENT.SCHEDULED_OR11)}
I have also tried
{OBSNOW(“INSURCONAME”, INS_NAME() }
{ADD_DOCUMENT_SUMMARY(OBSNOW(“INSURCONAME”)+ " " +DOCUMENT.PLEASE_INDIC + " " + DOCUMENT.SCHEDULED_OR11)}
In a button and the only thing that populates is the last two document variables.
🙁
Hi Gruhlin,
Try turning the INS_NAME into a string first. I just tried this in a button and it worked:
{ADD_DOCUMENT_SUMMARY(str(INS_NAME("P")))}
If you wanted to add it with those other variables, you could do {ADD_DOCUMENT_SUMMARY(str(INS_NAME("P")," ",DOCUMENT.PLEASE_INDIC," ",DOCUMENT.SCHEDULED_OR11))}
Give that one a shot.
SL
YES thank you that worked turning it into a string. I did however have to use the "+" between each value for it to work.
But thank you soooo much 🙂