Hello everybody,

I've created a datasource definition called "dsdData" which has a datasource "dsdData1". Then I created a LOV called "lovData", the latter depends on "dsdData1".

In the main panel I have the necessary fields to modify a record from the table used in "dsdData". The code of one of them is as follows:

<textField name="txtCodArgumento">
    <targets>
        <targetOf LOV="lovData" column="TBLCODARG"/>
    </targets>
 </textField>

In this same panel I've created a Save button to commit the changes applied in the main panel.

If I use the datasource and column parameters in the textField, when I load the LOV, the main panel automatically shows the first row from the LOV, which is not so pretty.

As for now I'm saving the record by extracting field by field in a stored procedure, I was wondering if there's any way or if I'm missing something to just use the doCommit without showing the first row from the LOV.

Thank you for the great support,

Freddy

asked 07 Aug '14, 19:00

Freddy%20Shimabukuro's gravatar image

Freddy Shima...
277
accept rate: 0%


Hi Freddy,

You should bind your textField to a datasource that is based on a datasource definition which is in turn based on the table (or view) that you want to commit your changes to.

The tutorial 22 explains how to use an LOV. But your issue is not LOV related. If there wasn't an LOV but a simple textField, you still couldn't use doCommit.

I'd go over the first few tutorials again or look at how we bound the components in the reference application.

Hope this helps.

Kind Regards,
Yalim

link

answered 07 Aug '14, 21:55

Yalim%20Gerger's gravatar image

Yalim Gerger ♦♦
1.8k5
accept rate: 15%

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:

×61
×30
×9

Asked: 07 Aug '14, 19:00

Seen: 846 times

Last updated: 07 Aug '14, 21:55


© Copyright Gerger 2017