Select query problem in form [message #310943] |
Wed, 02 April 2008 22:01  |
mm_kanish05
Messages: 493 Registered: January 2007 Location: Chennai
|
Senior Member |

|
|
Hi
Im using form 6i, On form of an item im using this code (When_validate_item)
SELECT GrdDate, VendCode, ChallanNo, ChallanDate, PendingItems, ExciseGPRef,
ExciseGPDate, Excise_Amt,Receiveditems, StatusInd
INTO :GRDRef_Dt, :VendCode, :ChallanNo, :ChallanDt, PItems, :Excise_GP_No,
:Excise_GP_Dt, :Excise_Amt, Noitems, DelFlag
FROM GrdData
WHERE GrdNumber = rtrim(:GrdRef_No)
and Periodid = :Global.Periodid
and UNitid = :Global.Unitid;
when i try this query in isqlplus, im getting one row.
Buw inside the form it reach exception when no_data_found
Why? Can any one help me out to solve this problem. pls immtly
wbr.
kanish
|
|
|
|
Re: Select query problem in form [message #311136 is a reply to message #311056] |
Thu, 03 April 2008 09:26   |
solisdeveloper
Messages: 48 Registered: March 2008 Location: Mexico
|
Member |
|
|
Also check the length of your database field against your datablock Item.
ie. If ExciseGPRef has a lenght of 12 characters in your database, but the Item :Excise_GP_No has only 10 characters you will receive a no-data-found error message because Forms is unable to adapt the result from the query to the receiving item.
Regards!
|
|
|
|
|
|
|
Re: Select query problem in form [message #311209 is a reply to message #311207] |
Thu, 03 April 2008 13:07  |
 |
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
Oh, THAT one! Well, I'll have to trust you as I don't have 6i installation here. But, I'll check it once I get close to it (next week maybe) and if I remember to do that.
|
|
|