This will *not* remove the rows from the database.
Arthur
<Louis Antony> wrote in message news:484950ea.3b7...@sybase.com...
<Louis Antony> wrote in message news:48495294.3bc...@sybase.com...
>I had to face this question in an interview and they want it
> to be done with datawindow; not with any embeded sql
> statements.
> Why don't you want to move them to the delete buffer?
1. Move the rows to another datawindow or datastore, and detele these rows whent save?
2. Add one column to table for mark the rows that need to delete (e.g.: del_flag = 1), then delete these rows in trigger after save.
<Louis Antony> 撰寫於郵件新聞:48495294.3bc...@sybase.com...
<Louis Antony> wrote in message news:48495294.3bc...@sybase.com...
When will DDL be used in SQLPreview?
Arnd
"Arnd Schmidt" <arnd.s...@gmx.de> wrote in message
news:uiuk44lhs02piu5vm...@4ax.com...
You were posed an interesting question! This is how I would do it ...
1) Add a computed SQL column (ie: cc_delete)
2) Add a filter to the DWO to filter where cc_delete = 'Y'
3) When the user requests a Delete - set the computed column to "Y" and it
should disappear.
When a physical delete is required ... move the filter buffer to the Delete
buffer and perform an Update. The interesting bonus behind this approach is
to cancel all the pending deletes by just setting the Filter to "" if the
user wants to back out of the multi-row delete sequence. :-)
HTH
--
Regards ... Chris
ISUG - NA RUG Director
http://chrispollach.pbdjmagazine.com
<Louis Antony> wrote in message news:48495294.3bc...@sybase.com...
Maybe the folks had a framework, where they used such an approach.
I used a framework where _all_ DB transactions were done via
stored procdures, but the framework did not used the built-in DW SP features.
Instead there was a repository based service class, that does a match
against a tag based security sytsem to get the rights and the to be used procedure
for an insert / update / delete. For sure, if no SP was configured for the
user, the insert, delete or save buttons and also dw features where automatically
disabled by the framework.
Arnd
"Arnd Schmidt" <arnd.s...@gmx.de> wrote in message
news:ud4r44hqstd5i1i1i...@4ax.com...
"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com> wrote in message
news:484d9e74$1@forums-1-dub...
"Arnd Schmidt" <arnd.s...@gmx.de> wrote in message
news:ud4r44hqstd5i1i1i...@4ax.com...
Did you see some scenarios where key modification were used in this way (delete / insert)?
I am really interested when this could make sense.
Arnd
"Arnd Schmidt" <arnd.s...@gmx.de> wrote in message
news:q7jt44lu4duf0r9kg...@4ax.com...
Also to force a cascading delete when changing the natural key,
is something I have never seen.
Arnd