This discussion is archived
2 Replies Latest reply: Oct 1, 2013 6:59 AM by DeHuaste RSS

Access to QBE Value from Popup

DeHuaste Newbie
Currently Being Moderated

Hi All,

 

JDev 11.1.1.6 with JHeadStart 11.1.1.4.  I've posed a similar question on the JHS forum, and am hoping to gain even more wisdom here.  Our requirement is to start every instance of an Input Text w/ LoV without values in the QBE (even if there were values entered from a previous use).  In our current environment the QBE retain value between uses.  What I'd like to do is check if the popup QBE has value, and if so, clear the value(s) before the popup is disclosed.

 

I've implemented this behavior successfully in a plain old af:table like so...

 

public static void clearTableFilters(RichTable myTable) {
  FilterableQueryDescriptor fqd =  
  (FilterableQueryDescriptor) myTable .getFilterModel();  
  if (fqd != null && fqd.getFilterCriteria() != null) {  
  fqd.getFilterCriteria().clear();  
  myTable.queueEvent(new QueryEvent(myTable , fqd));
  }
  }

 

...but when I attempt to pass a RichPopup rather than a RichTable, I loose access to the getFilterModel method.  How would one access the FilterModel of a popup rather than a table?

 

Many thanks,

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points