on 08-16-2010 3:35 PM
Hi Experts
I have a table with some columns containing input fields. All input fields are mandataory.
I am displaying an error pop up window incase any of the input field is blank. This pop window/view contains few details such as user name, employee code, line number at which input field is blank etc.
We are handling one row at a time. It means even if there are multiple rows that are erroneous we are handling them one by one only.
Now I am required to show this pop up window just below the row which is having blank input field.
Any idea how to achieve this?
Kindly note that users screens are of different sizes.
We are using NW 7.
Regards
Vineet
Hi Vineet,
If you use popup windows for showing the error message for the rows and according to your requirement then you need to set hight size for popup windows dynmically after identifying row in the table and test it for successfully displaying for all rows in the table.
Hope it will helps
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.
Hi
I have already tried what you are suggesting.
Here is what I have tried till now.
I have taken height of table header as reference and change height of my popup window based on row selected.
An increment of 20 is sufficing my requirement.
I am able to successfully adjust height of my popup window.
This approach works fine till the FirstVisibleRow is 0.
Problem starts when when first visible row is not 0. I am not able to determine value of first visible row outside wdDoModifyView.
Use of wdDoModifyView provides result only if I execute my action twice which is not acceptable.
Could you please help me here?
Regards
Vineet
Hi
Is there any way we can determine value of first visible row outside wdDoModifyView?
For adjusting height I am using below code
ShowMessageView(300,(160+20*i));
There are 10 rows visible at a time in table.
So this code works only till the rows displayed are 0 to 9.
The moment it changes from 1 to 10 or 6 to 15, position of popup window goes for a toss.
So, the correct code should be
ShowMessageView(300,(160+20*( i - FirstVisibleRow)));
It will be really helpful if you can let me know how we can determine value of first visible row outside wdDoModifyView?
Regards
Vineet
Hi Vineet,
Web Dynpro does not support pixel perfect alignment. So , I am not sure if the code will work on different devices & browsers.
Regarding FirstVisibleRow , you can bind 'FirstVisibleRow' property of the table to context attribute of type int . Then, it can be accessed from outside wdDoModifyView method. However , server event is required for this property to get updated.
Regards,
Apurva
Hi Vineet,
Hook method 'wdDoModifyView' will be called by Web Dynpro framework in case of server event.
Only option to force execution of wdDoModifyView is having dummy server event (so as to force execution of all steps of phase model) but it will impact the performance of the application.
Regards,
Apurva
Hi Vineet,
Why don't you try
wdComponentAPI.getMessageManager().reportContextAttributeException(<parameters such as the context attribute infor and the message>);
Here you can pass the attributeInfo for the exact atrribute from the element of the node bound to the inputField and also pass a message to be displayed which includes the Employee Number, Line Number and whatever details you want to add to the message. reportContextAttributeException will highlight the inputFiled in red and if click the message or the inputField it will also display the error just below the inputField.
Regards,
Ajay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.