How i can mapping php method to DO field?

11 views
Skip to first unread message

Agus Suhartono

unread,
Nov 27, 2013, 4:25:45 AM11/27/13
to openbiz-cubi
Hi

I have complex formula that DO not yet can handle it.

So how i can mapping php method to Database Object.
What your advice, on DataObject or on DataRecord?


Thank you



Agus Suhartono


and...@projectclick.com

unread,
Nov 27, 2013, 10:47:40 AM11/27/13
to openbi...@googlegroups.com
Agus,

There are couple of dependencies to keep in mind while choosing where to
use this function. For example:
1. Your software is designed for multi database tenancy (Oracle, SQL
Server, MySQL and etc) or single.
2. Your algorithm is using some or a lot of data to produce output final
result
3. Algorithm required to use OS related functions /functionality.

There are many more design points to consider but these are major.
Most likely the reason you want to use function in DO because your
algorithm is data related (item 2 above). In most of my cases of the
same nature I ended up creating database function rather than server
script due to performance gains. And then call that function from DB
view or dataobject. But my case is based on single database tenancy. If
there is a requirement of using OS related functions withing your
algorithm then most likely you have to put your function in php unless
you're using SQL Server.

Thanks,
Andrew
> --
> You received this message because you are subscribed to the Google
> Groups "Openbiz Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to openbiz-cubi...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Zhaoyang Sun

unread,
Dec 7, 2013, 9:35:37 AM12/7/13
to openbi...@googlegroups.com

if you have complicater data function, e.g. create a sale's quote, you may use a service class to complete such logic.

Reply all
Reply to author
Forward
0 new messages