navigation

VO over pipelined function does not display data in the iterator

VO over pipelined function does not display data in the iterator

Inspired by my colleague and ADF guru @Valeri Borisov

The Problem

Few days ago I’ve found the next problem:

  1. I had View Object based on pipelined function:2015-12-09 15_55_48-BLOG 2015-11-27 Iterator and VO over pipelined PROBLEM - Google Docs
  2. When I drag the VO on the page, I’ve received “No data to display”.
  3. In the VO I could see rows but no rows in the Iterator.
  4. Where is the problem?

The problem was that when I try to run the Application Module this specific pipelined VO did not return any results in table view but results exist in a form view:
2015-12-09 16_44_39-BLOG 2015-11-27 Iterator and VO over pipelined PROBLEM - Google Docs

Workaround 1 – first attempt 

I’ve found that the problem exists when we have different returned rows number and Iterator’s RangeSize

2015-12-09 18_33_07-BLOG 2015-11-27 Iterator and VO over pipelined PROBLEM - Google Docs

2015-12-09 17_11_08-BLOG 2015-11-27 Iterator and VO over pipelined PROBLEM - Google Docs

This worked very slowly.

Workaround 2 – the better solution

  1. You can add Tuning in the View Object’s Behavior – fetch rows in batches of X rows:

2015-12-09 17_59_56-BLOG 2015-11-27 Iterator and VO over pipelined PROBLEM - Google Docs

2. Add RabgeSize = -1 for the Iterator:

2015-12-09 18_17_12-BLOG 2015-11-27 Iterator and VO over pipelined PROBLEM - Google Docs

2015-12-09 18_17_59-BLOG 2015-11-27 Iterator and VO over pipelined PROBLEM - Google Docs

 

Have you ever had a similar problem? I’ll be glad to read about your approach in the comments below?

Teodor Ognianov

Qualified IT professional focused on software development having rich background with Oracle technologies. Deep knowledge in Business Intelligence, It project management. Familiar with broad set of Java EE frameworks, including Oracle ADF, database servers as Oracle Database (9i, 10g, 11g), Database Replications, Heterogeneous Service. Teodor is a team player with good coaching skills, providing assistance with patience and deep understanding of knowledge sharing. Responsible and highly motivated.

More Posts - Website

Follow Me:
LinkedInGoogle PlusReddit

Do you want more great blogs like this?

Subscribe for Dreamix Blog now!