Hi,
There are so many advantages if we have a library.
1 it can be used in almost all projects, We can avoid same type of code
appearing every where in the project so code will be less and manageable.
Changes made to one library will affect in every project where it is used,
which help us in tuning performance of the project by just updating logic
of population in some cases because logic is always separated by the actual
project. We can have separate error trapping mechanism for population of
control if grid Is there then we will retry cont.. button.
Almost everywhere in project we require to add a new values to the combo,
which is already populated. Or we need to add one blank value at the top of
the combo-list like [None]. In grid we require separate method for
generating a serial numbers for rows I think there is no way to do this
automatically. After sort this also has to be executed once again other wise
sr. no will be no use. To do this we have a function/ proc like this which
will accept parameter like this
Pm_popgrid(ControlName, dataset,isBlak,isPrevAdd,isWithSr,..
This will really help programmer.
2 if we are using this code then there will be one similar pattern in coding
style, which will add quality to the code.
3 This will add security to code. Bottom level / unauthorized programmer
will never be able change the code.
so to compile this we Need One list of controls along with their standard
code for popultion. Here you can send me genric code for population of tree.
Which will accept three parameter like display,Id, ParentId..
Regards
Kishor