NetTalk Central

Author Topic: Deleting problem  (Read 3419 times)

CaseyR

  • Sr. Member
  • ****
  • Posts: 448
    • View Profile
    • Email
Deleting problem
« on: November 27, 2008, 07:04:16 PM »
Hi,

Using 4.31  PR18

Thanks to the additional features of NetTalk, I have been able to implement a multiple select feature, so that users can select several child records at one time to add to a larger parent logical record.  The parent, child records, and the source table for selecting the child records from are all In-Memory tables.  When the user has completed all their changes, they are saved to physical tables.  The In-Memory child records have a unique identifying number which acts as the primary key.

When the user clicks Insert on the parent record form to add child records, a new form page is called with a field for a user specified parameter and another browse that allows tagging.  The user clicks Save on this sub form and the tagged records are transfered as child records to main logical record. 

Great, but now Delete doesn't work because the form associated with browse is not a single record form anymore.

What is the best method for deleting the last selected record from a browse?  Where is the browse selection saved and how do you save it as SessionValue so it can be used in a different procedure.

Thanks.
 


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Deleting problem
« Reply #1 on: November 27, 2008, 09:52:23 PM »
Hi Casey,

>> What is the best method for deleting the last selected record from a browse? 

to delete one record, yo can put either an inline delete button, or a button under the browse. Then the highlighted record is deleted.

>> Where is the browse selection saved

it's in the session value, of the component, of the unique key for the browse.
eg, if the browse is on Invoices, and the Unique key is Inv:IdKey, and the component is Inv:Id, then the "last selected record" is the current session value of
p_web.GSV('Inv:id')

Cheers
Bruce

CaseyR

  • Sr. Member
  • ****
  • Posts: 448
    • View Profile
    • Email
Re: Deleting problem
« Reply #2 on: November 28, 2008, 09:54:38 PM »
Thanks, Bruce

I created two buttons under the browse: one to add and one to delete.  Once I figured out it was Deleteb_btn not Delete_btn, it worked like a charm.

For the sake of anyone following this thread, the URL for the button is:

'MyForm?<!-- Net:s:SID-->&Action=MyForm&Deleteb_btn=Delete&'

Thanks again.