on 06-05-2008 5:55 AM
Hi All,
We need to show error messag to the user in case of incorrect entry.
I have a tableView with an editable field , when save is clicked this field is checked , if the entery made is incorrect , i want to display an error message at the bottom of the page.
I have to use the methods ADD_MESSAGE , ASSERT_MESSGAE and GET_MESSAGE o do this,
i cant figure out the syntax and specially , how to define the parameter condition of ADD_MESSAGE..
Please help,
Anubhav.
Edited by: Anubhav Jain on Jun 5, 2008 6:56 AM
hi,
In layout of the BSP Page, u can use phtmlb extension for this.
In one of my application, i have used the following code:
<%@extension name="phtmlb" prefix="phtmlb" %>
<%
if message is not initial.
%>
<phtmlb:messageBar id = "messageBar"
text = "<%= message-text %>"
type = "<%= message-type %>"
rulerDisplay = "BOTTOM" />
<%
endif.
clear message.
%>
In the above code message can be brought in OnInputProcessing method and can be used in layout.
Hope this helps..
Regards,
Sneha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sneha,
Actually if i use
rulerDisplay = "BOTTOM"
i get the message at the end of last cell of my gridLayout.
ie if i use something like...
<htmlb:gridLayout id = "maingrid"
columnSize = "1"
rowSize = "4"
then i get the message after the element specified in last gridLayoutCell but not at the bottom left corner of the page!!!
How to display the message at bottom left corner of my page?
Hope i was able to describe my doubt.
BR,
Anubhav..
Edited by: Anubhav Jain on Jun 6, 2008 10:22 AM
Hi,
u can also use javascript for dispalying the message in the status bar.
1. declare message variable in page attributes.
2. assign ur message to this variable 'message' in oninputprocessing
3. In layout set a condition
<% if message is not initial. %>
window.status="<%= message %>" ;
<% endif. %>
Regards,
Sneha.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.