Reputation: 1 Apprentice
- Active Members
- Active Posts:
- 128 (0.25 per day)
- 26-July 12
- Profile Views:
- Last Active:
- Nov 27 2013 06:17 AM
- Dream Kudos:
Posts I've Made
Posted 27 Nov 2013After inserting into Table I have used this code for generating next file number.
int fileno1=Integer.parseInt(Result.getString(2)); int increment = ++fileno1; int increment2 = ++increment; filenotxtfield.setText(Integer.toString(increment2));
And it is working fine now.
Admin please mark this thread solved.
Posted 23 Nov 2013I'm able to display the value after data is saved, but it is showing me wrong value with this code.
int fileno1=Integer.parseInt(Result.getString(2)); int increment = ++fileno1; String convertno1=String.valueOf(increment); filenotxtfield.setText(convertno1);
If 1 and 2 file no already exists after entering 3rd number manually and then save it ,it is showing me 2 not 4.?
Posted 23 Nov 2013The problem is solved ...there was some extra curly braces which were causing the problems.
Thank you all for your time.
Please mark this thread solved.
Posted 22 Nov 2013No I'm inserting one row only ...with the blank form open and then fill it up ,then hit save button ,error shows in console and after I see in MSM new row is there.
With a different file no which is my P_K.
Posted 22 Nov 2013No that new data is present after I execute my code(double checked it)before that there was no data present,and my P_K is file no and it's not a duplicate.
- Member Title:
- D.I.C Head
- Age Unknown
- Birthday Unknown
- Click here to e-mail me
chdboy hasn't added any friends yet.