Coming soon: Your brand new Help Center & Community! Get a sneak-peek here

Creating new appointment i Diary doesn't use CurrentContact

Hi, in 8.2 R04 Win client, when you drag to create a new appointment in the Diary, it no longer suggests a company.

I assume this is a bug, and not intentional?

RE: Creating new appointment i Diary doesn't use CurrentContact

Will be fixed in 8.3. The Person Panel release.
With the advent of orphans, the current system has another dimension. For one if the Current Person is an orphan, Win does not change the Current Contact.
Bottom line we have had a few changes down there :-)

/conrad

Af: Conrad Weyns 20. apr 2018

RE: Creating new appointment i Diary doesn't use CurrentContact

Ok, thanks for verifying. I wrote up a quick script as a workaround:

'
' Bugfix for SuperOffice 8.2 R04 Windows version where Company/Person not suggested
' when you drag-create a new appointment in the Diary.
' Frode Lillerud, Ganske Enkelt AS, 20.april 2018
'

Sub OnViewPreShow(hWnd, fullPath)
  If StrComp(fullpath, "MainWindow.AppointmentDialog", vbTextCompare) = 0 Then
    If CurrentAppointment.Identity = 0 then
      CurrentAppointment.Contact = CurrentContact
      CurrentAppointment.Person = CurrentPerson
    End if
  End if
End Sub
Af: Frode Lillerud 20. apr 2018

RE: Creating new appointment i Diary doesn't use CurrentContact

Like magic!
Once Orphans (person whose contact_id=0) are present then CurrentPerson and CurrentContact may not be related.
What Win will do is to choose the current contact first and then only use the current person if it is related.
A entity is not allowed to have a person and contact that are not in the same family!

We are not quite done with these new issues.
Say you are on the person card, with an orphan. Then you switch to diary and drag create a new appointment.
You may expect to get the CurrentPerson set in the appointment, with empty contact. Others might not. Depends on your workflow.

Web clears the current contact when person card is orphan. But web reloads when switching panels. Win does not!
Not sure we can please all.

/conrad

Af: Conrad Weyns 20. apr 2018