cancel
Showing results for 
Search instead for 
Did you mean: 

Childwindow: Get the parent window

Former Member
0 Kudos

Hello Forum,

there is a service call window in B1. For example I can add to this service call an activity.

Now I want to extend the activity window in a way that the ContractID of the ServiceContract is displayed. This number is displayed in the ServiceCall window. How can I access the parent window "ServiceCall" from within the Activity window?

Get the ContractID from the DataSources:

I have looked through the datasources: OCRD, OCLG (Activity), OCPR (Contact Person), OATC+ACT1 (Attachment) is opened. But this doesnt help, because the connection between OCLG and OSCL (ServiceCall) is made through SCL5.

Get through the opend windows:

If several ServiceCalls are opened, how can I determine the right ServiceCall Window from which this activity window is opened?

Thanks

Mark

Accepted Solutions (1)

Accepted Solutions (1)

Johan_H
Active Contributor
0 Kudos

Hi Mark,

Usually you would first get the ContractID, and then open the activity window, and prefill it.

As generally speaking the B1 client window is the parent of all forms, you would have to create the activity with some prefilled field, or user defined property or something anyway to know which form called it.

Regards,

Johan

Former Member
0 Kudos

So you are saying: At normal the user adds the activity by pressing the activity button on the service call form. Now I have catch the click (register a ItemPressed event handler) and transport the needed data directly into the new form.

Thanks for the hint

Answers (0)