on 11-17-2007 7:17 AM
Hello,
I have created a form like Sales Order where on the Right Top Corner of the form there is a field of No. that is the primary key of the table @OOBR as Document.
I want to show the DocEntry value each time across which the data is given,
and the showing value must be incremented after each data insertion.
Rgds
Subrata
Hi
While loading your form you Query the database for Maximum Number of that field and increment it by 1(if it is alphanumeric then split that and get the numeric part of the field and then increment that by 1 then concatenate that with your prefix and then assign that value to field) and assign that value to field.While adding the data also insert present record with existing number in field.and then use the same logic that you do in form load.
Hope this helps
Regards
Vishnu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
How will I use Item_pressed Event of my Buttton in beforeaction=false. ?
Because I used UDO. So, I can't use any action under the ADD button.
It's not giving me any chance to write code for the button.
In my form I added the following code during form creation
I got value from db and incremented then stored into query_result_from_db
oEdittext.value= query_result_from_db
Hi,
Is it a UDO FORM? It's UDO Document?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I created a UDO.
Then, I've created a form by coding and used the UDO name in the form.If it means it's a UDO form. Then it is.
Tables are created as Document & Document rows from Tools-> User Defined Field-> User Table
And I've binded the edittext box that will show the autoincremented DocEntry
with the database DocEntry Field.
Rgds
Subrata
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.