Ruskin
27th August 2002, 06:12
Hmmm..... I have come across something strange, using choice sections, in a session that has a synchronized dialog and was wondering if any one else had encountered the same problem and what they did to resolve it...
In the before.program section, there is a statement similar to;
set.synchronized.dialog("ppmmmxxxxs000")
Thus, when an occurrence is double-clicked (to modify), or is duplicated, or inserted, this sub session is started. The occurrence on the main session, is then updated when the sub session values are inserted, or modified (as the main session is now synchronized with the occurrence being edited in the sub session).
I have done the following;
choice.modify.set:
before.choice:
message("START MODIFY")
and I get a "START MODIFY" message when I double click an occurrence. However, if I add;
after.choice:
message("END MODIFY")
I do not get the message "END MODIFY". Putting in Debug, also shows, that the after.choice sub section is not run. This is causing an issue, as the sub session that is activated, updates other records in the code (based on values entered in this sub session). When the sub session is closed, the other occurrences in the main session, do not reflect the changes made in the sub session. The after.choice section does not seem to be running, so I can't perform an execute(find.data) or some other refresh. The only work around I have found, is when the sub session closes a message is displayed to the user telling them to push F5 to refresh the main session.
Is there a way to capture that the synchronized dialog session has been started and closed, from the main session? Alternatively, is there a way to refresh all occurrences on the main session, from the sub session?
In the before.program section, there is a statement similar to;
set.synchronized.dialog("ppmmmxxxxs000")
Thus, when an occurrence is double-clicked (to modify), or is duplicated, or inserted, this sub session is started. The occurrence on the main session, is then updated when the sub session values are inserted, or modified (as the main session is now synchronized with the occurrence being edited in the sub session).
I have done the following;
choice.modify.set:
before.choice:
message("START MODIFY")
and I get a "START MODIFY" message when I double click an occurrence. However, if I add;
after.choice:
message("END MODIFY")
I do not get the message "END MODIFY". Putting in Debug, also shows, that the after.choice sub section is not run. This is causing an issue, as the sub session that is activated, updates other records in the code (based on values entered in this sub session). When the sub session is closed, the other occurrences in the main session, do not reflect the changes made in the sub session. The after.choice section does not seem to be running, so I can't perform an execute(find.data) or some other refresh. The only work around I have found, is when the sub session closes a message is displayed to the user telling them to push F5 to refresh the main session.
Is there a way to capture that the synchronized dialog session has been started and closed, from the main session? Alternatively, is there a way to refresh all occurrences on the main session, from the sub session?