Question

IEE - Get Parent field value

  • 14 July 2021
  • 3 replies
  • 241 views

Userlevel 2
Badge +4

Hello Everyone , 

 

I got 2 new IEE windows form.

One is the parent a Master Form details Tab form and one is the children a form window.

I’m trying to get fields values from the parent form.

How can I reference those fields in the children form ?

 

Can i get the value from the ‘’:i_hWndParent.FrameName.FieldName.Text property itself ? or I need to get it from a member variable ?

 

Thank you ,

Best regards


This topic has been closed for comments

3 replies

Userlevel 5
Badge +8

Hi @Simon L. 

I think you will be able to retrieve a parent field value from the child form as follows.

(ParentWindowName).FromHandle(i_hWndParent).(ParentField).Text;

Thanks & Best Regards,

Wimali

Userlevel 2
Badge +4

HI @Wimali Athulathmudali  ,

Thank you for your answer.

This is a viable solution.

This work if the field isn’t protected or private.

 

Best regards ,

Userlevel 5
Badge +8

Hi @Simon L. ,

You can declare a new variable and assign the required value in parent window then you will be able to 

use that particular variable as above.

Thanks & Best Regards,

Wimali