The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
AutoCheck Complete on Sales Process
Posted: 07 May 10 6:31 AM
|
Hi All, im trying to replicate something in 7.5 that i developed in 7.2 and im having problems. I have disabled the Complete checkbox column on the sales process and now need to get it working so the box is checked when the user clicks the step hyperlink.
Any ideas? |
|
|
|
Re: AutoCheck Complete on Sales Process
Posted: 10 May 10 4:32 AM
|
would using Sys.WebForms.PageRequestManager.getInstance()._doPostBack....... be a possibility for this?
im trying to wrap my end around how i would call a funciton in the server side .cs script from the client side .js script?
when the hyperlink is clicked it executes javascript:executeaction. One possibility could be to call a server side c# function at the end of this javascript function that will check my check box for that step.
Any ideas anyone? |
|
|
|
Re: AutoCheck Complete on Sales Process
Posted: 10 May 10 5:35 AM
|
Why do this at client side?
The click on hte hyperlink executes an action on the server. The code is on the OpportunitySalesProcess.ascx.cs file. Parse the file, study it, debug it and find the best place to hook into.
Also, by examining this file you will find the code to properly Complete the Step.
|
|
|
|
Re: AutoCheck Complete on Sales Process
Posted: 10 May 10 5:42 AM
|
i thought the hyperlink click executed script in the .js file? And in this file i cant refer to the checkbox to chnage its properties. |
|
|
|
Re: AutoCheck Complete on Sales Process
Posted: 10 May 10 5:47 AM
|
And you could be right, but at some point it has to execute code on the server. I haven't checked this on 7.5.2, last I did this change was 7.5.0
|
|
|
|