Skip to Main Content

this.value returns undefined, using messageLovField in multi record table(UIX)

125574Oct 2 2002
Hi,

following scenario:
I use Jdeveloper9i
Built a UIX page and filling it with data from a database using BC4J
inside my uix page i have built a multi record table:

<table name="bulk_table"
width="100%"
formSubmitted="true"
data:tableData="TNW_RENDER_VECTOR@cqj2ee:pageDataObjects">
<tableFormat tableBanding="rowBanding"/>
<columnHeaderStamp>
<sortableHeader data:shortDesc="explain"
data:text="header"
data:sortable="sortKey"/>
</columnHeaderStamp>
<columnHeaderData>
<col explain="Levereenheid of Factuurnummer" header="Lev./fakt.nr" sortKey="no" />
</columnHeaderData>
<columnFormats>
<columnFormat columnDataFormat="textFormat"/>
</columnFormats>
<contents>
<messageLovField name="InvFactuurLved"
columns="10"
maximumLength="10"
destination="javascript:callLovFakt(this.value,'lovFaktuurregel','ZOEK_GEGEVEN')"
data:text="InvFactuurLved"/>
</contents>
</table>


the javascript contains following code:

function callLovFakt(fieldValue) {
alert('cell contains: '+fieldValue);
}


Problem is when i type something in a cell and click on the flashlight( wich comes with the lovfield )
the alert always returns: "cell contains: undefined"

Fact is that the flashlight does not contains a value (that's why i get the undefined message)
question is how can i find out wich row i have to look at for the right value? there the flashlight does not contains any value...

greetz jaime

Comments
Post Details
Added on Oct 2 2002
5 comments
74 views