on 05-18-2007 7:04 AM
Hi Friends ,
I am getting some problem while using the message manager ,the scenario is like this I am having a table control in view , if there are errors in the values entered in the inputfield of table rows i am calling the method report_attribute_t100Message( ) to display error messages , in this method i am passing the message , context element and the attribute name . This things are working fine when i am in the default view and table control is also in the default view but when i use navigation , means if the table control is in second view the errors are not displayed . I dont know why its not displaying messages, I have checked the message manager object also errors are present in it but not displayed .
Can anybody tell why it is happening and how to solve it ?
Regards
Yashpal
Hi Yashpal,
Message displayed is depend on where you display the messages, as i understand is that you are using navigation if you raise the message and do the navigation then the message can be removed due to the page refresh.
Another way to find out whether this is due to the refresh problem is to make the message as PERMANENT and see if the message comes. If the message comes after making message permanent then place the code of raising the message in another place.
Best regards,
Suresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Suresh ,
No I am not refreshing the view , Problem is when the message is raised in view other than default view , means i navigate from default view to other view say view2 . in view2 there is a table control in that the messages are raised but not displayed .
But for example when i put the table control in default view and raise messages they are displayed .
Regards
Yashpal
Hi,
I have a similar problem, I am navigating from initial screen to my detail screen which has 2 tab strips - one header and one item . Each of them have 4 tabs. I am using REPORT_ATTRIBUTE_T100_MESSAGE to raise the message. Whenever there is an error on the detail tab, its displayed properly as a link with focus on the supplied element. The message disappears automatically after correcting the error.
But if there is an error display on the header its displayed as REPORT_T100_MESSAGE i.e. without the link to navigate to the element and also message does not get clear automatically once the error is corrected.
Please help us.. this is real urgent.
Regards
Rohit Chowdhary
Hello Yashpal,
Could you past the source code snippet of the message manager call, please?
Best regards,
Thomas
P.S: If you don't specify a context attribute and context element, there won't be a link. Specifying a context element alone, results in a link for some ui elements, like a table, if it points to a table row.
Hi thomas,
pls find the code snippet for the message manager
im_elem is type ref to if_wd_context_element.
g_message_manager is defined as an attribute of assistance class and instantinated in component controller init.
the follwing call to the message manager is part of an assistance class method which is called in the view as wd_assist->check_material( ) with import export parameters i.e im_elem is passed as an export parameter
lw_msg-msgty = 'E'.
lw_msg-msgid = 'ZMA_MSGCLASS'.
lw_msg-msgno = '294'.
CALL METHOD me->g_message_manager->report_attribute_t100_message
EXPORTING
msg = lw_msg
element = im_elem
attribute_name = 'MATNR'.
Hi Yashpal,
Instead of reporting T100 messages directly in each view, better solution will be have a buffer of messages in component controller and add the messages to this buffer withour reporting the T100 message directly.
In component controller's wddopostprocessing , loop through the buffer of message and report each message using report_t100_attribute_message one by one. Do the reporting of messages only in this method.
I think, this will work fine for your problem
Thanks,
Prashanth
Hi Prashanth ,
I am doing the validation of nodes when some action is performed i.e in wdBeforeAction( ) if there are error in the node the handler method is not called and errors are displayed . if i do the validation in wdPostProcessing () it will be of no use because the handler method will execute first and then wdPostProcessing() is called .
Regards
Yashpal
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.