On Element Change Event
CursorPosition (ThisElement, 0)
As a workaround the above code works to correct the display even in the element where you do not ever go and just used to display the text, even readonly element.
One might wonder why do I have to place the longer text when I want to see just the beginning part of the text. The main reason I have to do this as merge-print with wordmerge in Sesame does not allow me to perform conditional merge that I could do with Q&A.
Growth_Weight: 90th percentile compared to the same age group
What I want to see is 90th but I need to merge the whole value, as the patient is more than 15 years of age I do not need this growth parameter.
If I just merge just 90th, because of inability to conditional merge as it stands now with Sesame, in above 15 years age group - the merge data will be null but ....
*merge* percentile of as compared to the same age group (This will create a problem, when if value is null, I want the whole line to be eliminated. It will print "Percentile of as compared to the same age group"
I could only do that if I have whole field with everything in the mergefield that way nothing will be printed when value is null in the field.
==========
In the element where you pass through right after lookup ( ) command executed and cursor falls at the end of the line or the last character in the case of multiline element, the following will work as workaround.
On element Enter Event
If @CursorPosition (ThisElement) > 0 then
{
CursorPosition (ThisElement, 0)
}
If you add text or modify the current element then display corrects itself anyway. The above will work even if you do not have to change anything.
What is the shortcut key to bring the cursor to the beginning of the text in the element in the multiline element?