My Oracle Support Banner

81865: Unexpected Behavior For NewView Initialization (Doc ID 2895457.1)

Last updated on NOVEMBER 10, 2022

Applies to:

Visual Builder Studio - Version 22.01.0 and later
Information in this document applies to any platform.

Symptoms

 

Passing Object to the business Object (OB's) function behaving differently than when we initialise object inside function.

Unable to sort data by Descending order when we using passing object via object function.

If we initialise object inside function as below its working fine.

oracle.jbo.ViewObject jvo = new ViewObject("OBjectName");
jvo.setSortBY('name desc');
jvo.setMaxFetchSize(1);
jvo.executeQuery();

Not working

function test(Object bo){

oracle.jbo.ViewObject jvo = BO;
jvo.setSortBY('name desc');
jvo.setMaxFetchSize(1);
jvo.executeQuery();

}

ACTUAL BEHAVIOR
---------------
When a newView was passed on a parameter, setSortBy is not working.

EXPECTED BEHAVIOR
-----------------------
The function SHOULD sort the data by DESC order.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.