(Rewritten this morning) I'm confused about lovFields and their interaction with LOV (componets).
Please point out where I'm wrong:

A textField has - possilbly a datasource and column, but NO LOV info (unlike in ORACLE Forms) - might be specified in the target-description of a LOV (targettype:component)

A lovField is a "speical textField", it - might have a datasource and column (database-item vs. control-item in Oracle Forms) - must(?) lov name - should have a bindvar of datasource of named LOV - can have multiple(?) targetof specifications

The lovField bindvar is used for autoreduceing the LOV's list while typing, or as Searchfield filter.

Questions:

  • why LOV target-type=component and lovField's targetOf ? One should do! What if they contradict/don't match?
  • when to use LOV targetType=compoment and when LOV targetType=datasource-column?
  • why more than on targetOf spec per lovField? (mulitple LOVs filling the same field??)

asked 30 Nov '14, 15:32

dipr's gravatar image

dipr
1561325
accept rate: 0%

edited 01 Dec '14, 04:29


Hi Paul,

Assertions you wrote seem correct to me.

Here are the answers to your questions:

why LOV target-type=component and lovField's targetOf ? One should do! What if they contradict/don't match?

Yes one is good enough and probably datasource is the better choice. You shouldn't use them in a way that creates contradictions.

when to use LOV targetType=compoment and when LOV targetType=datasource-column?

If possible I use datasource. But if in the off chance you want to populate a component that is not bound to a datasource, that's possible too.

why more than on targetOf spec per lovField? (mulitple LOVs filling the same field??)

Technically, it is possible that multiple LOV's populate the same field, so we support it but I don't think this is a common use.

The reason we have the target tag in the XML in the first place is to be able to track the relationship between the LOV and the component even if you rename the component. If you rename a component which is the target of an LOV, and save the panel, the only way we can know that this component was a target of an LOV is the targetOf tag under the component.

Kind Regards,
Yalim

link

answered 03 Dec '14, 10:25

Yalim's gravatar image

Yalim ♦♦
2.8k5
accept rate: 22%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×6
×1
×1

Asked: 30 Nov '14, 15:32

Seen: 741 times

Last updated: 03 Dec '14, 10:25


© Copyright Gerger 2017