NetTalk Central

Author Topic: Calling a form in View mode using URL  (Read 3774 times)

bergsj

  • Jr. Member
  • **
  • Posts: 81
    • MSN Messenger - swjvandenberg@hotmail.com
    • View Profile
    • Email
Calling a form in View mode using URL
« on: June 15, 2010, 03:26:05 AM »
Hi guys,

I have created a custom button on a browse that needs to open a form in viewing mode. I have called the url like this: frmCustomer?CUS__ID=123. When I do this, not customer 123 is being show, but the customer I had opened before that. So when I need customer 123, I know just need to open some other customer.
When I call the form the seem way, but with the addition of adding the action CHANGE, the correct customer is open right away.
What's is the correct way of opening in viewing mode with a custom button?

Thanks!
Sjoerd
Greetz,
Sjoerd

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Calling a form in View mode using URL
« Reply #1 on: June 15, 2010, 03:00:46 PM »
I would open with action CHANGE but I would set a SSV before I called the form and then on the form read only condition I would check that GSV. There may be a VIEW action which would avoid having to set SSV but I have not used it.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Calling a form in View mode using URL
« Reply #2 on: June 16, 2010, 01:41:25 AM »
On the Url put
&View_btn=View
instead of
&Change_Btn=Change

Cheers
Bruce

bergsj

  • Jr. Member
  • **
  • Posts: 81
    • MSN Messenger - swjvandenberg@hotmail.com
    • View Profile
    • Email
Re: Calling a form in View mode using URL
« Reply #3 on: June 17, 2010, 01:18:22 AM »
Thanks, did the trick. Why no View in the Action dropdown?

Cheers,
Sjoerd
Greetz,
Sjoerd

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Calling a form in View mode using URL
« Reply #4 on: June 17, 2010, 06:17:14 AM »
good question.