dhanushya
10th July 2008, 13:20
Hi,
I am using dal functionality to insert a record ,
retval = dal.new.object (string tbl.name)
|*dal.set.field (string fld.name, void value [, long element])
retval = dal.save.object (string tbl.name [, long error.flag])
now when the record gets duplicated it should return the 100 valu.
but in my case its poping up the error message which i have attached..
Please refer the attached document.
it give me two options(As shown in document )
after clicking on ignore it return 100 and go further. but when user click exit it gives BW messages.
I dont want this pop up message.
can anybody help me!!
Thanks,
NirajKakodkar
10th July 2008, 14:49
Hello Dhanushya ,
I doubt , there are two multiple indexes in your table and even in second index duplicates are not allowed , so there is a possibility that you are updated duplicate values in your second index .
check whether in second index allow duplicate is ticked in your table definition .
Regards,
Niraj
dhanushya
10th July 2008, 15:11
Hello Dhanushya ,
I doubt , there are two multiple indexes in your table and even in second index duplicates are not allowed , so there is a possibility that you are updated duplicate values in your second index .
check whether in second index allow duplicate is ticked in your table definition .
Regards,
Niraj
yaa, you are right. there are two indices, and duplicate is not allowed on second index. but generally it should return 100 valu. what would be the solution then because if end user click on exit session will get aborted.
_Ralph_
10th July 2008, 17:48
when u use dal methods(dal.save, dal.set.field) messages that used to appear on a BW window are turn into this pop up,
other test you can is listed below:
dal.set.field("int field", 788/0)
in a normal situation you would find a BW windows but in this case the same pop up(with other message) will appear.
dhanushya
11th July 2008, 07:31
Hi,Ralph
I tried out this bit it directly gives me BW message insted of poping up message.
Is it like that i can't use da.new.object() for the inserting record where the chance of duplication? what i feel is when i use dal.save.object() then it should return 100 value in case of duplication but it not.
still :confused:
wiggum
11th July 2008, 12:34
Try db.skip.dupl as error.flag in dal.save.object
dhanushya
11th July 2008, 15:11
First of all thak you very much,
your given solution is correct.
I use db.skip.dupl and then it dont give me this pop up message but it return 0 means success. Insted of that i tried db.return.error then it will return me 100 valu.
Thak you very much:)