Unix Technical Forum

Object Libraries in Oracle Forms

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 ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database > Oracle Miscellaneous

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 06:53 AM
Uma
 
Posts: n/a
Default Object Libraries in Oracle Forms

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 06:54 AM
Gunter Herrmann
 
Posts: n/a
Default Re: Object Libraries in Oracle Forms

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-08-2008, 06:54 AM
Frank van Bortel
 
Posts: n/a
Default Re: Object Libraries in Oracle Forms

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-08-2008, 06:54 AM
Uma
 
Posts: n/a
Default Re: Object Libraries in Oracle Forms

Thanks for ur response. I tested the olb file. But the forms need to
be recompiled if we change in the olb file. That means, there doesn't
seem to be much difference between a template and an olb file!


Regards,
Uma

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-08-2008, 06:55 AM
Gunter Herrmann
 
Posts: n/a
Default Re: Object Libraries in Oracle Forms

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-08-2008, 06:55 AM
Frank van Bortel
 
Posts: n/a
Default Re: Object Libraries in Oracle Forms

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-08-2008, 06:55 AM
Gunter Herrmann
 
Posts: n/a
Default Re: Object Libraries in Oracle Forms

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:03 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com