How to set condition to ADD button !

Talk about implementing of customized templates

Moderators: ne_moj, zewa

rssridhar17
Junior
Junior
Posts: 21
Joined: Dec 8th, '11, 05:01

How to set condition to ADD button !

Postby rssridhar17 » Dec 22nd, '11, 05:41

Hi,

I have 2 tables, one is Header_table and another is details_table.
Transaction-Add mode: 1 record would be entered for header_table and more than 1 record would be entered in details_table.
condition is: without adding record for details_table the add button in header_table should not be accepted.

For the above : I will have 2 datagrids for adding records. similar to:
http://www.hitechgraphics.info/svga/dat ... xample.php
where only Edit mode has 2 actions, one is update the 1st table record and add record to the 2nd table.
but in my case I want to add only 1 record to 1st table and many records to the second table.

administrator
Site Admin
Site Admin
Posts: 5937
Joined: Jan 7th, '09, 23:18
Contact:

Re: How to set condition to ADD button !

Postby administrator » Dec 22nd, '11, 08:51

How do you want to add them:
firstly to the 1st table and then to the 2nd?
Or
firstly to the 2nd and then to the 1st?

You may do following: create a page, where you add data to the 1st table, then it will redirect you to the next page, where you can add records to the 2nd datagrid as many as you need.


Return to “Add/Edit/View Mode Templates Implementing”