on 12-02-2011 10:50 AM
Dear Friends,
In my current applications there are four searchfields like requestno,requesteddate,preparedby,department.by using this four fields iam serching the data from the list. when i am putting any one valid value it retrieve data , itis not retrive the dat afor any valid and invalid combination.my current requirement is that if i am searching with reqno and requestno is wrong then it should be provide some warning mesage.for any invalid value it should be throughing message.
please guide me to do that.
Thanks,
smruti moharana
Dear Smruti,
Please use the validation before calling method for execting in database or list.
OR
Get the error message when you execute the mehtod that show in the iview.
Best Regards
Arun Jaiswal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Smruti,
Please let us know the which database you are using..ABAP or Oracle
In ABAP case, check the what RFC is returing after extecuting then map content node in the component controller and iview to show the error message.
In non-sap database (oracle, sql etc), check the return type for the method after executing the query. set the return type to the content node or attribute and then show in the iview.
OR you can directly set like....If you can getting the value in the context node after clicking on search action......then check if there is no values in the context node then show the custom message.
if (wdContext.node<ABC>.size() > 0)
{
// then show the actual value from database and set to the context
}
else
{
//set the error messge
}
Hope it will helps
Best Regards
Arun Jaiswal
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.