Usage of UIGeneralFunctions.php #828
pakricard
started this conversation in
Development Discussion & Specification
Replies: 1 comment
-
|
This looks sooo cool! :-) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
On pull request #827, I added includes/UIGeneralFunctions.php
I have been using these functions in my custom scripts for a long time, and they allow a significant reduction in repeated lines of code around webERP.
As an example, webERP has numerous dropdowns to select one location, and they are repeated all over. Some only show the location name, some the code and name, etc. Some are sorted one way, some another.
A call to function FieldToSelectOneLocation() allows to reduce code lines, and more consistency, as everytime we need to slect a location, it is shown the same way. Also, for webERP customization, then a customization in just one function is enough.
Functions included at the moment are:
My idea would be to use these functions whenever we need to modify a script that uses fieldsets.
Thoughts?
R
Beta Was this translation helpful? Give feedback.
All reactions