What approach would be best for creating a condition of display by using the DECODE function criteria?

Hello world

The requirement is to filter a LOV based on a date entered by the user and a condition that uses DECODE. If : update or : pSystemLinkageFunctionDate Exchange then the LOV should be updated. So, I created a VO of read-only by using SQL. But I can't create a view of criteria that uses the DECODING. What approach would be the best method to meet this requirement?

Select

PET.expenditure_type

pet.start_date_active

pet.end_date_active

petsl.start_date_active

petsl.end_date_active

petsl.system_linkage_function

Of

pa_lookups pl

pa_expend_typ_sys_links petsl

pa_expenditure_types pet

pa_system_linkages psl

where 1 = 1

and pet.unit_of_measure = pl.lookup_code

and pet.expenditure_type = petsl.expenditure_type

and petsl.system_linkage_function = psl.function

and pl.lookup_type = 'UNIT '.

and: pDate between nvl(pet.start_date_active,:pDate)

and nvl(pet.end_date_active,:pDate)

and: pDate between nvl(petsl.start_date_active,:pDate)

and nvl(petsl.end_date_active,:pDate)

and petsl.system_linkage_function = decode(:pSystemLinkageFunction,'L','S','E')

James

Hi Timo,

ADF business components: 11.1.1.62.29

Platform Java (TM): 1.6.0_24

Oracle IDE: 11.1.1.6.38.62.29

Support for version control: 11.1.1.6.38.62.29

Thanks for the link... I'll take a look. However, the DECODING work now; I wasn't quite deep in the stack trace to find the error that turned out be related to one of the dregs.

James

Tags: Java

Similar Questions

Maybe you are looking for

  • What is the new icon of paper airplane (disabled) in the toolbar after the update?

    New (disabled) faded icon appeared in the toolbar after recent update Firefox 35.0. It seems that the paper airplane? No extra/unusual sounds.

  • No HDD Recovery area

    Hello Im not getting that error at the launch of the "no HDD Recovery area" software is not to delete the recovery partitions I didn't touch... I tried to restart and hold down the 0 key it did not work, I used f8 but toshiba recovery did not work, h

  • Problem with display of scatterplot

    Hello In the joint Test TCP host read three peaks New (events) .vi I try to view a data file in a series of point clouds trace. The data is read in a global, then functional shape based on the selection of the axis and displayed. Each parcel allows y

  • Error-61207 and DiagramReset did not clear in the expiration time.

    Hello Just to start with FPGA programming and trying to get my NOR-9155 and NOR-9223 to capture some simple analog voltages. After you have compiled the NI9223 get started (FPGA) for my 9155 - NEITHER with NOR-9223 VI I get the following error messag

  • IE8 failed to update April 2010

    Failure of the cumulative update for IE8 for Vista. Update is KB980182 (had exactly the same problem, a month or two back with Cum.update KB978207). Error message 800719E4. Vista Home Premium (32 bit), SP2. (AVG Internet Security 9 - update running)