NetTalk Central

Author Topic: Insert child record from parent browse  (Read 3997 times)

Rene Simons

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
Insert child record from parent browse
« on: October 12, 2008, 01:05:59 PM »
Hi,
This probably has been on before but I woul like to use a button in a browse, where this button starts the insert function for a child record of the browse. Best would be when there is no data shown in de URL-field of the browser.
How can I do this??
Kind regards,
Rene
Rene Simons
NT14.14

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Insert child record from parent browse
« Reply #1 on: October 13, 2008, 12:07:07 AM »
Hi Rene,

See FAQ W4.
Essentially you're just calling a form "directly not from the browse". Ok, you're calling it from a browse, but not the _right_ browse <g>.

Cheers
Bruce

Rene Simons

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
Re: Insert child record from parent browse
« Reply #2 on: October 14, 2008, 11:57:57 AM »
Bruce,
I checked the FAQ and managed to get i to work.
However, when I follow the exact instructions, the URL I type in in the wizzard, looks like:

'ZiekmeldenMedewerker?<!-- Net:s:SID-->&Insert_btn=Insert&'

a) I presume this looks right. Right?
When I run the app, the URL in the browser looks like this:

http://localhost:88/ZiekmeldenMedewerker?SessionID=643646827&Insert_btn=Insert&&MDW__recordid=2&PressedButton=Ziekmelden

Mind the two && just after Insert_btn=Insert. Imho there sould only be only one.

I worked around it by leaving my one out (for now).

Btw. is ther a way to not see the URL in the URL-field of the browser?

There is more:
After I insert the record and return to the Parent Browse and click the cancel button, I return to the previouly abandoned insert form. But I expect to go back to the main page.

Kind regards,
Rene
Rene Simons
NT14.14

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Insert child record from parent browse
« Reply #3 on: October 16, 2008, 10:37:38 PM »
Hi Rene,

>> I worked around it by leaving my one out (for now).

right.

>> Btw. is there a way to not see the URL in the URL-field of the browser?

If you make a frames-based site, but with only a single frame, then the site "looks" like a normal site, but "behaves" like a frame.
Specifically it prevents the URL from being displayed in the address bar.

>> After I insert the record and return to the Parent Browse and click the cancel button, I return to the previously abandoned insert form. But I expect to go back to the main page.

Remember, on the web you _never_ really go back - you're always moving forward. Set the URL of the Cancel button so it takes you explicitly where you want it to go.

Cheers
Bruce