on 01-06-2014 5:24 AM
HI,
my requirement is that some of the fields/tables should be printed on second page onwards and if line count exceeds then it goes to next page. How to give the page wise validation in the table.(Page break is not possible in my scenario)
Thanks with Regards,
Vallamuthu.M
Hello Vallamuthu,
Page wise Validation has 2 cases.
1) For table data, if you want to validate all values, you need not handle page wise validation. Instead you can carry out field level validation. The validation will apply till the scope of sub form is over(i.e all the data in the sub form is processed. It doesn't matter how many body pages are created at run time).
2) For table data, if you want to validate the values depending on page attributes ( for example even and odd pages, you have to write a Javascript in Layout Ready Event. This code should get executed depending on the result of modulus operator.
For example,
1) Fetch current page.
2) Check whether it is even or odd page.
3) For example if it is even, execute the code. Else don't.
Note: Remember that the page index will start from 0. So if modulo result is 0, it is odd. If 1, it is even. So handle the code accordingly.
As you said that "Page break is not possible in my scenario". Two doubts arise here. Are you not able to provide page break or you do not need a page break?
If you are not able to provide a page break, then you might have designed the table in the master page. The table should be always in the design view(body page).
If you do not need a page break, then I don't think there is necessity of page validation for table data.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pavan,
Thanks for your reply.
I yet to work in java. could you give the javascript for second point.
Kindly find below my layout. In this layout, If value is not there in any one of the line item then it'll be hide. In such cases, The item values are splietted(Marked in black color). I need to print two set of item values in single page.
Thanks with Regards,
Vallamuthu.M
Message was edited by: vallamuthu madheswaran
Hi vallamuthu,
Why don't you just create a subform round it and set a flag in the given data, what must be at one page together?
There are more than one way to develop a thing like that...
I mean, no pagebreak isn't possible, beause this just depends on the data.
Another solution:
There was endless paper some years ago printed by needles *just joking*
Regards
Florian
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 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
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.