H
|
htwebdev author 12/23/2009 |
L
|
lewisekrantz 12/23/2009 |
I inherited this project from a developer that is no longer here, never used PHPR before this week, and I can't figure out how to do what I'm trying to do. Been reading through the manual and this forum and haven't found it yet either. I'm using PHPR 5.1-build 2503, the db is MS SQL Server. I have a list page that shows duplicate record of 1 table comparing to another table. It's a staging table from an Excel import. I want them the user to be able to delete duplicates before committing these records to the final table. What I need is a button (or link) that will allow the user to commit the records after they've handled the duplicates and the records are finalized. Where/how do I do that? Bill
|
H
|
htwebdev author 12/23/2009 |
If I understand your issue, this is one way to address it .. Lets say your FINAL TABLE is "cars" Set up a TABLE named "cars_preprocess" Import from excell into "cars_preprocess" Your user can edit and delete from "cars_preprocess" Then you write a code snipped that is triggered by a button that .... reads thru "cars_preprocessed" and writes records to "cars" and then deletes all of the records in "cars_preprocessed" Lewis
|
J
|
Jane 12/24/2009 |
H
|
htwebdev author 12/24/2009 |
http://www.xlinesoft.com/phprunner/docs/update_multiple_tables.htm
|
J
|
Jane 12/24/2009 |
Sorry for my fault. Here is the correct link: |
H
|
htwebdev author 12/24/2009 |
Nothing is happening with that either. <INPUT class=button id=submit2 type=submit value="Commit Stores" name=submit2>
if ($_REQUEST["submit2"]=="Commit Stores"){
|
H
|
htwebdev author 12/24/2009 |
I didn't mean to mark this as solved, accidentally clicked wrong button - this is NOT solved. |
J
|
Jane 12/25/2009 |
Hi, <INPUT class=button onclick="frmAdmin.a.value='update'; frmAdmin.submit(); return false;" value="Move selected records to production table" type=button>
if ($_REQUEST["a"]=="update") |
H
|
htwebdev author 12/30/2009 |
cool. that worked. must be the onclick event that I was missing before. Thanks. |