Home » Developer & Programmer » Forms » Adding item to the Datablocks
Adding item to the Datablocks [message #176917] Mon, 12 June 2006 00:29 Go to next message
selvakumar_82
Messages: 138
Registered: October 2005
Location: chennai
Senior Member
Hi,

I have 2 text boxes ,1 Button and 1 data block with 2 items.

It is like purchase entry module, whenever i press Button ,
Two values should go to datablocks.

I have attached the screen,Just go through it and tell me how to do that.Finally i have to save from that data blocks

Regards
Selva.R
Re: Adding item to the Datablocks [message #177649 is a reply to message #176917] Fri, 16 June 2006 00:20 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
What is not working?

David
Re: Adding item to the Datablocks [message #181975 is a reply to message #176917] Wed, 12 July 2006 07:13 Go to previous messageGo to next message
bhupinderbs
Messages: 67
Registered: July 2006
Location: Bangalore
Member
Hi

It is very simple.
Here is the answer.

Bhupinder Singh
Re: Adding item to the Datablocks [message #182008 is a reply to message #176917] Wed, 12 July 2006 10:15 Go to previous messageGo to next message
jowahl
Messages: 82
Registered: May 2006
Member
i think it's working fine.
where is the problem exactly?
Re: Adding item to the Datablocks [message #182119 is a reply to message #181975] Thu, 13 July 2006 03:18 Go to previous messageGo to next message
selvakumar_82
Messages: 138
Registered: October 2005
Location: chennai
Senior Member
Thanx,

But i am facing one more problem,

I have to count the number of rows in the block and i have to insert each values into database.(This process should take place after i enter the all values in the blocks)

Thanx and regards

Selva.R


Re: Adding item to the Datablocks [message #182142 is a reply to message #182119] Thu, 13 July 2006 04:42 Go to previous messageGo to next message
selvakumar_82
Messages: 138
Registered: October 2005
Location: chennai
Senior Member
Hi ,

I tried to use following code:To save the values from Block

its showing that unable to insert a record

Go_block('ITEM_MASTER');
First_record;
Loop
if (:item_master.item_code is not null or :item_master.numbers is not null ) then

insert into forms_ex values (:item_master.item_code,:item_master.numbers);



Exit when :item_master.item_code is null or :item_master.numbers is null;
Else
Message('Values Saved');

End if;

end loop;

Kindly go through this code and tell me the solution

Thanx and Regards
Selva.R
Re: Adding item to the Datablocks [message #182152 is a reply to message #176917] Thu, 13 July 2006 05:13 Go to previous message
jowahl
Messages: 82
Registered: May 2006
Member
you will get an endless loop because you NEXT_RECORD is missing.


Previous Topic: What is G in oracle 10g
Next Topic: On-Screen-Validation
Goto Forum:
  


Current Time: Fri Sep 20 10:29:29 CDT 2024