Change access to method request....
Change access to method request....
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.
thanks.
Re: Change access to method request....
Hmmm...is this not the right forum for questions like this?
Re: Change access to method request....
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....
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.
The best thing about a boolean is even if you are wrong, you are only off by a bit.
Jason Salmon
Open Dental Software
http://www.opendental.com
Jason Salmon
Open Dental Software
http://www.opendental.com
- jordansparks
- Site Admin
- Posts: 5770
- Joined: Sun Jun 17, 2007 3:59 pm
- Location: Salem, Oregon
- Contact:
Re: Change access to method request....
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?
Jordan Sparks, DMD
http://www.opendental.com
http://www.opendental.com
Re: Change access to method request....
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....
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....
Just curious what the status of this is...
thanks.
thanks.
Re: Change access to method request....
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
The best thing about a boolean is even if you are wrong, you are only off by a bit.
Jason Salmon
Open Dental Software
http://www.opendental.com
Jason Salmon
Open Dental Software
http://www.opendental.com