Page 1 of 1

Change access to method request....

Posted: Mon May 06, 2013 4:29 pm
by indev
Is it possible to change the method: TryToSaveData() in FormSheetFillEdit to public from private? I am trying to add some functionality to the Sheets via a plugin and I need to be able to run this method from the instance that is passed to the plugin.

thanks.

Re: Change access to method request....

Posted: Tue May 14, 2013 2:25 pm
by indev
Hmmm...is this not the right forum for questions like this?

Re: Change access to method request....

Posted: Tue May 14, 2013 2:41 pm
by drtech
Yes, this is the right place...just need an OD developer to look at it...they might do that for you...

Re: Change access to method request....

Posted: Tue May 14, 2013 4:02 pm
by jsalmon
I sent an email to my boss on the tenth asking if we change access modifiers for this purpose. Haven't gotten a reply back yet, I'll post once I get an answer.

Re: Change access to method request....

Posted: Wed May 15, 2013 4:04 pm
by jordansparks
I'm having trouble understanding why. You're passing in an instance of that form? So the user isn't actually using the UI in that form? You're just using it as a container to simulate user input?

Re: Change access to method request....

Posted: Thu May 16, 2013 8:56 am
by indev
No the plugin uses the current UI, but it adds an additional button (much like the Email/PDF one) that needs to execute that function. Since the button event handler (and constructor, etc.) is in the plugin and not the main prog it needs to call the function from the instance that is passed. Unfortunately I can't because it is private. If it was a public function I could call the TryToSaveData() then continue... I can't think of any other way to make this work, but I am willing to try anything else if I am approaching this incorrectly. Thank you for your input.

Re: Change access to method request....

Posted: Mon May 20, 2013 6:17 pm
by indev
I hate to bug about this, but just curious if you have had a chance to consider this request. I have tried working around it, but I can't do much with the sheet until it is saved. I even looked at re-implementing the save method for the plugin, but that would be a lot of wasted work (and could lead to some serious problems if the internal save method ever changed.)

Re: Change access to method request....

Posted: Mon Jun 03, 2013 10:56 am
by indev
Just curious what the status of this is...

thanks.

Re: Change access to method request....

Posted: Wed Jun 12, 2013 10:59 am
by jsalmon
I would recommend emailing Dr. Sparks directly about this. He is the only one that can give the approval for such a change: jsparks@free-dental.com