cancel
Showing results for 
Search instead for 
Did you mean: 

passing messages between controllers

former_member758419
Active Participant
0 Kudos

Hi all,

I need to pass the error messages from main controller and display it in sub controller. I'm using model class to chech the error messages. I've been able to display the error messages in the Main controller, but how to pass those messages to sub controller.

Thanks in advance,

Sachidanand.B

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

you can access the attributes of your main controller through

the m_parent attribute of your subcontroller, that way

you can catch the messages and display them through subcontroller.

grtz

Koen

former_member758419
Active Participant
0 Kudos

Hi,,

Thanks for ur reply,,

Can u please elaborate on how to access the messages on main controller example: msdn->message-text,

msdn->message-type, msdn->message-connectedControl

in the do_request of subcontroller.

should we reinitialize the model instance 'msdn' in the subcontroller. like:

me->m_sdn ?= create_model( class_name ='zmvc_m_sdn' model_id = 'msdnid').

where m_sdn is an attribute in subcontroller with type reference to model class(ZMVC_M_SDN)

Thanks,,

Sachidanand.B

Answers (0)