|
Thanks for replying. It can be done. As shown in the video. Since the college is dependent on the selection of country and course category, i will have to create another column in the same table which will concatenate the values of Country and category. Similarly, for course, since it depends on selection of country, category and college, i need another col containing concatenation of country-category-college. I tried this and it was working. But again i seem to have stuck here. let me explain: For e.g. i have this table "course_category_table" and "Student_info" table. Now the table caurse_categorytable has the following cols, Country, Category, College and Course. For these columns i have configured for the user to add, edit, list. In the same table, i also have two other columns, "Country-category" and "country-category-college". I dont expect the user to provide values for these two columns. So i will have to modify the Insert Query for the Add Page and also the Update Query for Editing records. But how do i do this? Where do i modify the insert and the update queries? I tried the Events page, but could not find anything exactly relevant. Except for "After Record Added". Can this be used for Add Page Query? I tried this:
____
*global $conn;
$strSQLInsert = "insert into course_category_table (--rbegin--Country-Category, Country-Category-College--rend--) values (CONCATENATE(Country,"-",Category), CONCATENATE(Country,"-",Category,"-",College))";
db_exec($strSQLInsert,$conn);*
_____________________________________________________________________________________________________
What bout Update? I tried "After Record Updated"? But how do i get the condition. I wrote the query as:
_____
*global $conn;
$strSQLInsert = "update course_category_table set 'Country-Category'=CONCATENATE(Country,"-",Category), 'Country-Category-College'=CONCATENATE(Country,"-",Category,"-",College) where ?????####";
db_exec($strSQLInsert,$conn);*
_____________________________________________________________________________________________________
Will this do what i want to happen? Can you help me out in this? By the way, its an awesome s/w. Amazing functionalities you have put in this great package. Keep up the GR8 job Guys...
|