| View previous topic :: View next topic |
| Author |
Message |
leopdurr
Joined: 11 Apr 2010 Posts: 151 Location: British Virgin Islands
|
Posted: Sun May 20, 2012 10:13 pm Post subject: Delete From List |
|
|
Hi
The Delete From List function in a Reference List.
I want to use a Process to Remove a Refrence from a List:
Eg:
Invoice with ListItems.
I want to remove a LineItems from an Invoice during Invoice enry using a Process.
what is the function to do this is it DELETE or REMOVE? and how should the rule be contructed?
Thanks Leopold |
|
| Back to top |
|
 |
jacklcs
Joined: 31 Dec 2010 Posts: 337
|
Posted: Wed May 23, 2012 1:07 pm Post subject: |
|
|
Hi
If ur invoice header is the owner of the invoice detail, then in the header object... MyDetailID.. Use the delete function. That will auto delete the detail trx.. If u delete the header trx..the detail also deleted too.
However, if u use the peer as link the two table.. The u need to write the rule on delete rule section.
Find invoice_detail where invoice_detail.myheaderid =invoice_header.mydetailid
Delete invoice_detail
Hope it help...thks. |
|
| Back to top |
|
 |
leopdurr
Joined: 11 Apr 2010 Posts: 151 Location: British Virgin Islands
|
Posted: Thu May 24, 2012 7:13 am Post subject: |
|
|
| OI do not want to delete the Invoice i just want to delete 1 or more of the InvoiceDetails. Instead of using the Default Delete From List i want to implement my own process to remove any of the InvoiceDetails. |
|
| Back to top |
|
 |
jacklcs
Joined: 31 Dec 2010 Posts: 337
|
Posted: Tue May 29, 2012 1:48 pm Post subject: |
|
|
Write the process... delete invoice_detail
Find invoice_detail where invoice_detail.myheaderid =invoice_header.mydetailid
delete invoice_detail |
|
| Back to top |
|
 |
|