|
sujith - 2006-08-12 13:16:54
I was trying to delete records by pressing on the "X" image.
I think there is no codes in this Class to do this task, am I right?
sujithukvl@gmail.com
Gustavo Arcila - 2006-08-12 16:30:45 - In reply to message 1 from sujith
Hi,
No you're not right, deletion works perfectly, the X image calls a javascript which request a confirmation to user if he wants to delete, check if your browser has javascript enabled
Regards,
Gustavo
sumatra - 2006-09-26 08:06:38 - In reply to message 2 from Gustavo Arcila
If you delete a record. Then hit F5 to refresh the grid, you delete another record. Very dangerous!
sumatra - 2006-09-26 08:11:28 - In reply to message 2 from Gustavo Arcila
If you delete a record, then hit F5 to refresh the grid. Then another record is also deletet. Very dangerous!
sumatra - 2006-09-26 08:17:06 - In reply to message 2 from Gustavo Arcila
If you delete a record, then hit F5 to refresh the grid. Then another record is also deletet. Very dangerous!
Sorry: You delete all records with that key walue, not the one you were pointing at in the grid.
Gustavo Arcila - 2006-09-26 12:39:47 - In reply to message 5 from sumatra
Is for that reason you must supply $Browse -> IDfield("your_id_field");
sumatra - 2006-09-27 06:27:03 - In reply to message 6 from Gustavo Arcila
Thanks, i had no id field in the table. But it now works fine!
Kerul Patel - 2006-09-30 11:26:07 - In reply to message 6 from Gustavo Arcila
Dear, First of all its gr8 work of piece.
Although there are some bugs which i found.
1 -> after delete one must have to refresh page, other wise grid shows empty.(yes i kept $Browse -> IDfield("id"); so i don't have deletion of another record problem.)
2 -> my auto increment fld is "id" now if I keep this field showing in grid then it creates very big prob. say i'm on page 1 which has last record id=5 and i've total of 10 pages. Now from page 1 if i click on add then id field shows value = 6 instead of 51. and u can understand what could happen.
3 -> Its related to masking
$Browse -> FormatColumn("validity","Valid", "30", "30", "0","100","center","integer");
now if i press add and enter character values in this field then even it accepts and save 0.00 (default value in db).
But it must give error and don't have to save record.
I appriciate your work and like to contribute to your work. If u can just give me hint from where to handle this things i can do it on my own and can send new class file to you.
sumatra - 2006-10-04 09:30:15 - In reply to message 8 from Kerul Patel
I also have problems regarding deletion. If I delete a record on page 1, then page 2 (last page) shows afterwords. Therefore I have to go back to page 1 and continue from there.
Gustavo Arcila - 2006-10-04 13:08:24 - In reply to message 9 from sumatra
Try by setting "r" variable with the 1st record to show
|