NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: bergsj on June 15, 2010, 03:26:05 AM

Title: Calling a form in View mode using URL
Post by: bergsj 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
Title: Re: Calling a form in View mode using URL
Post by: kevin plummer 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.
Title: Re: Calling a form in View mode using URL
Post by: Bruce on June 16, 2010, 01:41:25 AM
On the Url put
&View_btn=View
instead of
&Change_Btn=Change

Cheers
Bruce
Title: Re: Calling a form in View mode using URL
Post by: bergsj on June 17, 2010, 01:18:22 AM
Thanks, did the trick. Why no View in the Action dropdown?

Cheers,
Sjoerd
Title: Re: Calling a form in View mode using URL
Post by: Bruce on June 17, 2010, 06:17:14 AM
good question.