This is a discussion on Object Libraries in Oracle Forms within the Oracle Miscellaneous forums, part of the Oracle Database category; --> Hi, I am thinking of using object libraries in my new application. Can anyone please tell me the basic ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, I am thinking of using object libraries in my new application. Can anyone please tell me the basic difference between Object libraries and templates. Which is more preferable - using olb files or templates and property class? Thanks in advance. Uma |
| |||
| Hi! Uma wrote: > I am thinking of using object libraries in my new application. Can > anyone please tell me the basic difference between Object libraries and > templates. Which is more preferable - using olb files or templates and > property class? Let's say you create an application with yellow buttons all over. These buttons are all inherited from the olb. Your customer tells you she wants green buttons. With an olb all you have to do is change the olb and recompile all the forms. HTH -- Gunter Herrmann Naples, Florida, USA |
| |||
| Gunter Herrmann wrote: > Hi! > > Uma wrote: > >> I am thinking of using object libraries in my new application. Can >> anyone please tell me the basic difference between Object libraries and >> templates. Which is more preferable - using olb files or templates and >> property class? > > > Let's say you create an application with yellow buttons all over. > These buttons are all inherited from the olb. > Your customer tells you she wants green buttons. > With an olb all you have to do is change the olb and recompile > all the forms. > > HTH > I think you're wrong there: there's no need to recompile the form - that's the beauty of it (compared to templates) It's been a long time since I did olb and forms, though, and memory fades nowadays -- Regards, Frank van Bortel |
| |||
| Hi! Uma wrote: > Thanks for ur response. I tested the olb file. But the forms need to > be recompiled if we change in the olb file. As I said. Maybe Frank confused olb changes with pll changes. > That means, there doesn't > seem to be much difference between a template and an olb file! The main difference is that a change in an olb works without further code changes. If you change a template you have to make the same changes in all forms created from the template. Think of an olb as something like an include file in C. brgds -- Gunter Herrmann Naples, Florida, USA |
| |||
| Gunter Herrmann wrote: > Hi! > > Uma wrote: > >> Thanks for ur response. I tested the olb file. But the forms need to >> be recompiled if we change in the olb file. > > > As I said. Maybe Frank confused olb changes with pll changes. > >> That means, there doesn't >> seem to be much difference between a template and an olb file! > > > The main difference is that a change in an olb works without further > code changes. If you change a template you have to make the same > changes in all forms created from the template. > Think of an olb as something like an include file in C. > > brgds > Maybe I am (was?) mistaken. But there was some option include or reference... You want the Reference, iirc include (or copy?) is default? -- Regards, Frank van Bortel |
| ||||
| Hi! Frank van Bortel wrote: > Maybe I am (was?) mistaken. But there was some option > include or reference... > You want the Reference, iirc include (or copy?) is default? Yes, if you copy you lose the reference and all advantages of an olb are gone. It would be like copying the Include file into all source files (see my analogy with C). This approach would be really stupid. brgds -- Gunter Herrmann Naples, Florida, USA |
| Thread Tools | |
| Display Modes | |
|
|