Regarding search screen
Hi,
I am using ADFBC.
I am developing search screen.when page loading all the recored are displayed initially as table.I want to hide this table when page loading.when submit button clicked then show the table.How can i do this?
Thanks,
Hi
Go through the link given below :
How to create a search help for my own fields in selection screen
F4 search help on report selection screen
also try :
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = 'VKORG'
PVALKEY = ' '
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'P_VKORG'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'C'
TABLES
VALUE_TAB = T_TABLE1
FIELD_TAB = field_tab
RETURN_TAB = RET_TAB
DYNPFLD_MAPPING = DYN_TAB
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
With Regards
Nikunj shah
Similar Messages
-
Required values should be displayed in forst search screen for Variable
HI Gurus
I have a Variable CUSTOMER which has 20000 values. In the first search screen we are getting 1 to 1000 values by default ( I have selected 1000 in properties). But I want the Values between 6000 to 7000. Is it possible?
Thanks in advance.
Best Regards
RajHi
I want to give single value in between 6000 to 7000. The single values which appear in first search should not be 1 to 1000. It must be 6000 to 7000
Thanks
Raju -
How to change the default operators in sap web ui Search screen?
How to change the default operators in sap web ui Search screen?
For eg. Using advance search option , I have some fields with default operators like equals, contains,is between, is less than and is greater than. I don't need all these operators for this field.
I need only "equals" operator. How do i remove the rest of the operators?There is a view cluster crmvc_dq where all the standard setting is present related to you r issue. Please try if you can modify that, that way you will avoid the code.
Incase you are not able to make any changes there then in that case you have to redefine the method GET_DQUERY_DEFINITION () of the IMPL class to delete the operators for a particular serach field.
Regards,
Harshit -
Setting parameters on search screen
Hello friends,
We have implemented a SAP note to provide the Z attributes on the product search screen. Now when these attributes were created some of the attributes had the value range.
let say attribute A has low value 10 and high value 15 . Now the customer wants that on the search screen we should display the drop down list on the attribute(A) with desription (10-15) .
If the user selects it then we should search products on the basis of the range of z attribute from 10 to 15.
Is there any way we can pass the value as low eq 10 and high 15 on the search screen?
Regards
Sohit GulatiEnhance GET_DQUERY_DEFINITION and EH_ONSEARCH method of IMPL class. Build your query in GET_DQUERY_DEFINITION, this will solve the issue.
Rg,
Harshit -
Dropdown Event in Search Screen (BT111S_OPPT)
Hi Gurus,
I have a requirement in which I have to code 3 dropdowns in Oppt Search Screen. When the user selects some value in first dropdown, the related entries are filled in the next dropdown. I am able to code dropdown (not in.htm page) in V_get method and I able to see that dropdown on my view. But I am not able to generate event (server request) when the user selects some value in the dropdown. Kindly let me know how I can generate a server request when a user selects some value in the dropdown.
Also let me know how to catch that event in do_handle_event.
Thanks & Regards,
Suresh Narrahi,
in get_P method of your field write following code.
CASE iv_property.
WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
rv_value = cl_bsp_dlc_view_descriptor=>field_type_picklist.
WHEN if_bsp_wd_model_setter_getter=>fp_server_event.
rv_value = 'YOUR_EVENT_NAME'.
ENDCASE.
when user will select any field in any dropdown, debugger will go to method eh_onYOUR_EVENT_NAME.
Best Regards
Pankaj Kumar -
Fill Find edit box of Formatted search screen
Hi,
I have an edit box and a choose button.
when I click on that choose button I get a formatted search screen.
I want the value typed in the edit box to be defaulted in the
Find Edit box of the foratted search screen.
Say I type "1" in my edit box, My formatted search screen should pop up having "1"
in the Find edit box and results pertaining to value "1"(like wild card search)
should be displayed in the formatteed search screen.
Can anyone tell me as how to implement this?The reference to $[x.0.0] was simply meant to point you towards using the formatted search syntax for selecting fields from the current screen for use in your query.
The two techniques I mentioned were not meant to be used together, you could either use the sendkeys, or the $[x.0.0] syntax depending on which result you wanted.
The $[x.0.0] syntax actually goes in the query that is saved for the formatted search, you don't need to do anything with it programatically at runtime, business one does it for you. You can get a formatted search to pick values up from the current screen by using syntax such as $[$4.0.0] or $[$OINV.CARDCODE]. This particular example will pick up the cardcode from a document screen. Look in the standard help file under Formatted Searches for more details.
I have attached a sample query showing how it can be used with fields based on userdatasources in custom screens. This one can be used to show product lookups out when the user has already keyed in a partial product code. At runtime the $[#018.UItem] reference automatically gets replaced with the value currently in the item field.
DECLARE @Item Varchar(20)
SET @Item = RTRIM($[#018.UItem]) + '%'
SELECT T0.ItemCode, T0.ItemName FROM OITM T0 WHERE T0.ItemCode LIKE @Item FOR BROWSE
If you haven't seen this type of formatted search processing before, I would recommend you try to spend a little time learning it - it sometimes eliminates the need for writing SDK code at all.
Regards,
John. -
Formatted Search screen - populate multiple fields
I have an Employee Id field in my screen.
On clicking Choose button,I use a Formatted Search screen to populate value to that field.
I also have other fields like employee Name,department which should be populated, once an employee Id is chosen from Formatted Search screen.
The functionality is like that of "Purchase Order screen".
Once a vendor Id is chosen Name,Contact Person etc get populated in "Purchase Order screen".
How do I do that?
Should I trap the Choose button event of Formatted Search screen?
Please help.I think all you are missing is a check to make sure you don't try and re-run the lookup when you are validating the return value from a previous lookup.
I made a minor change to my code and achieved the behaviour you described. I have extracted the relevant code from the application . Unfortunately it looses its indentation when I post it, so it might be quite hard to read. It uses recordsets for the validation as in practice most of the real validation is more complex than this cut-down sample.
This particular example is from a screen with a Customer Code prompt, and displays the customers name below it.
Regards,
John.
<b>Constant holding menu uid of Formatted Search</b>
Public Const AZU_MNU_SEARCH As Long = 7425
<b>Declare a variable at module level</b>
Dim mblnCardLookup as Boolean
<b>Create validation routine (cut down sample included)</b>
Sub ValidateCustomer(sboApp As SAPbouiCOM.Application, sboCompany As SAbobsCOM.Company, BubbleEvent As Boolean)
On Error GoTo ErrorHandler
Const AZU_PROCEDURENAME As String = "ValidateCustomer"
Dim sboRecordset As SAPbobsCOM.Recordset
Dim sboForm As SAPbouiCOM.Form
Dim sboDSCard As SAPbouiCOM.UserDataSource
Dim sboDSName As SAPbouiCOM.UserDataSource
Set sboForm = sboApp.Forms(strUID)
Set sboDSCard = sboForm.DataSources.UserDataSources("UCARD")
Set sboDSName = sboForm.DataSources.UserDataSources("UNAME")
If sboDSCard.value <> "" Then
Set sboRecordset = sboCompany.GetBusinessObject(BoRecordset)
sboRecordset.DoQuery "Select CardCode, CardName, Currency From OCRD where CardCode Like '" & sboDSCard.value & "%'"
If sboRecordset.RecordCount < 1 Then
If sboDSName.value <> "" Then
sboDSName.value = ""
sboForm.Items("edtName").Update
End If
If Not mblnCardLookup Then
LookupCustomer sboApp
End If
BubbleEvent = False
Exit Sub
End If
sboRecordset.MoveFirst
sboDSCard.value = sboRecordset.Fields(0).value
sboDSName.value = sboRecordset.Fields(1).value
mstrCurrency = sboRecordset.Fields(2).value
sboForm.Items("edtName").Update
Else
sboDSName.value = ""
sboForm.Items("edtName").Update
BubbleEvent = False
End If
Set sboDSName = Nothing
Set sboDSCard = Nothing
Set sboForm = Nothing
Set sboRecordset = Nothing
Exit Sub
ErrorHandler:
Call AZU_STD_ERROR_MSGBOX(AZU_MODULENAME, AZU_PROCEDURENAME)
End Sub
<b>Create lookup routine (cut down sample included)</b>
Private Sub LookupCustomer(sboApp As SAPbouiCOM.Application)
On Error GoTo ErrorHandler
Const AZU_PROCEDURENAME As String = "LookupCustomer"
Dim sboForm As SAPbouiCOM.Form
Set sboForm = sboApp.Forms(strUID)
mblnCardLookup = True
sboApp.ActivateMenuItem AZU_MNU_SEARCH
Set sboForm = Nothing
Exit Sub
ErrorHandler:
Call AZU_STD_ERROR_MSGBOX(AZU_MODULENAME, AZU_PROCEDURENAME)
End Sub
<b>Add the following code to the ITEMEVENT handler</b>
'Validate Customer Code
If pVal.EventType = et_VALIDATE And pVal.ItemUID = "edtCard" And pVal.Before_Action = False Then
Call ValidateCustomer(sboApp, sboCompany, BubbleEvent)
End If
'Customer Code Lookup on TAB Key
If pVal.EventType = et_KEY_DOWN And pVal.ItemUID = "edtCard" And pVal.Before_Action = True And pVal.CharPressed = 9 Then
Set sboDSCard = sboApp.Forms(strUID).DataSources.UserDataSources("UCARD")
If sboDSCard.value = "" Then
LookupCustomer sboApp
BubbleEvent = False
End If
End If
'Force Validation on Return from Lookup
If pVal.EventType = et_FORM_ACTIVATE And mblnCardLookup = True Then
sboApp.Forms(strUID).Items("edtRef").Click
mblnCardLookup = False
End If -
Search Screen with session id as a parameter
Hi All,
I have a search screen which will have 3 parameters as 2 input text field and 1 session value (login id).
When user login into the application, i store the login id in session for further transaction in the application.
Now in my search screen I designed the page with 2 input field as a parameter.
When i click the search button, i am invoking the search method from session EJB through backing bean action method.
i.e. searchRecord (param1, param2, loginid) --- method in EJB
In Backing bean,
searchRecord_Action() {
login id -- from session
param 1 -- input text
param 2 -- input text
calling searchRecord (param1, param2, loginid);
Result is not coming because of the below reason.
When i check the log file, the method is calling twice. First time with 3 parameters
Select * from Table where param1 = 1 and param2 = 2 and login id = 3
values and second time 3 parameter is null. Because of that no search record is found.
Select * from Table where param1 = 1 and param2 = 2 and login id is null.
How to pass login id as a conditional parameter to the query.
Thanks & Regards
Vimalan BalanDear Friend,
I am new to ADF. I am not sure i am using ADF as a binding layer. But i am binding the parameter into my backing bean.
More over when i click the search button, it directly invokes the method in the EJB and after that only the backing bean method is calling. How to stop the initial call when click the search button.
The below code in the pagedef file.
<methodIterator id="searchPaymentOrderIter"
Binds="searchPaymentOrder.result"
DataControl="POMasterDetailSessionEJBLocal" RangeSize="10"
BeanClass="mof.egov.portal.model.EgovPaymentorderMaster"/>
<invokeAction id="tableRefresh" Binds="searchPaymentOrder"
RefreshCondition="${(valueHolder.refresh) and (!adfFacesContext.postback)}"/>
<methodAction id="searchPaymentOrder" MethodName="searchPaymentOrder"
RequiresUpdateModel="true" Action="999"
IsViewObjectMethod="false"
DataControl="POMasterDetailSessionEJBLocal"
InstanceName="POMasterDetailSessionEJBLocal.dataProvider"
ReturnName="POMasterDetailSessionEJBLocal.methodResults.POMasterDetailSessionEJBLocal_dataProvider_searchPaymentOrder_result">
<NamedData NDName="poNumberFrom" NDType="java.lang.String"
NDValue="${bindings.searchPaymentOrder_poNumberFrom}"/>
<NamedData NDName="poNumberTo" NDType="java.lang.String"
NDValue="${bindings.searchPaymentOrder_poNumberTo}"/>
</methodAction>
Thanks & Regards
Vimalan Balan -
Changes in search screen..
Hi gurus...
Now a days some search screens looks different then earlier...think some modification had done, was it due to changes done in configuration level or anyother reason? if so Where can we see the changes in configuration level?Hi Shrikant,
I have never worked with Substitution an rules etc.
As far as ur first question is concerned I am almost sure that u can not change a .ear file( A WD appln).
Only .pars can be changed. i would suggest u not to waste ur time trying this. Its better to find another way around.
Regards,
Sumit -
Not able to display and search on CLOB attribute in default search screen
Hi,
My requirement:
I have three VARCHAR attributes and 1 CLOB attribute. i need to search the values on these 4 attributes.
Created View crieteria on these 4 attributes and created default ADF search screen. but not able to add the CLOB attribute as search attribute.
is there any solution for this or we can't search on CLOB attribute.
FYI: i have created Converter using ClobDomain and and using this converted for editing the CLOB data.
If i try adding the CLOB attribute in view criteria with ClobDomain and not able to see that attribute on search panel.
Please help on this.
Thanks in advance!!
Thanks & Reagrds,
MadhuMadhu, please tell us your jdev version!
The search is done on the DB (query) so the converter is not used. To search clob columns you can use special SQL statements called contains or catsearch. These are using special index to find the data in blob or clob columns.
Check my blog on how to integrate this into VC: http://tompeez.wordpress.com/2011/08/21/extending-viewcriteria-to-use-sql-contains-4/
Timo -
Why is it that when I go to the search screen and type in a particular message I want to view, my iPhone finds it but when I click on it it only takes me to the conversation at the most recently thing texted and not the particular message I clicked on?
Never occurred to me you can search messages that way, thanks.
Another way to do it is to scroll from the most recent message to the top of the screen and tap load more messages, repeatedly till you reach the one you want.
I like your method better, but with both methods it refreshes to the most recent message. -
Issue with programmatically created LOV on Advanced Search Screen in OCO.
Hi All,
I am trying to create a LOV programmatically on Advanced search screen of Oracle Customer's Online module for the country field present there, i have extended a controller and
in it i am carrying out the creation for this.
i am using the below code to do this.
i am able to access the particular rowlayout bean and code below is starting after that.
OARowLayoutBean CountryRowLayoutBean =
(OARowLayoutBean)RgtColTableLayoutBean.getIndexedChild(8);
if (pageContext.isLoggingEnabled(PROCEDURE))
pageContext.writeDiagnostics(this,
"CountryRowLayoutBean: " +
CountryRowLayoutBean,
PROCEDURE);
int CountryRowLytChldCount =
CountryRowLayoutBean.getIndexedChildCount();
if (pageContext.isLoggingEnabled(PROCEDURE))
pageContext.writeDiagnostics(this,
"CountryRowLytChldCount : " +
CountryRowLytChldCount,
PROCEDURE);
OAMessageTextInputBean CountryMsgTxt =
(OAMessageTextInputBean)CountryRowLayoutBean.getIndexedChild(2);
if (pageContext.isLoggingEnabled(PROCEDURE))
pageContext.writeDiagnostics(this,
"CountryMsgTxt : " +
CountryMsgTxt,
PROCEDURE);
CountryMsgTxt.setRendered(false);
OAMessageLovInputBean CountryLOV =
(OAMessageLovInputBean)createWebBean(pageContext,
LOV_TEXT, null,
MatchRuleAttrId); //MatchRuleAttrId - the fields are rendered through DQM so, this is the Id for the text input , same is taken as id for LOV, to enable search later.
if (pageContext.isLoggingEnabled(PROCEDURE))
pageContext.writeDiagnostics(this,
"CountryLOV : " + CountryLOV,
PROCEDURE);
CountryRowLayoutBean.addIndexedChild(CountryLOV);
Integer webBeanRegionAppId =
(Integer)webBean.getAttributeValue(REGION_APPLICATION_ID);
CountryLOV.setAttributeValue(REGION_APPLICATION_ID,
webBeanRegionAppId);
// Specify the path to the base page.
CountryLOV.setAttributeValue(REGION_CODE,
"/oracle/apps/imc/ocong/search/webui/ImcSearchPage");
CountryLOV.setAttributeValue(LOV_REGION_APPLICATION_ID,
webBeanRegionAppId);
// Specify the LOV region definition.
CountryLOV.setLovRegion("/oracle/apps/ar/hz/address/webui/HzCountryLOV",
webBeanRegionAppId.intValue()); //Standard LOV region used
// Validation should be enabled for LOVs unless it's essential for the field to allow a partial value (in a "Search" region, for example).
CountryLOV.setUnvalidated(false);
CountryLOV.setAttributeValue(SELECTIVE_SEARCH_CRITERIA,
true);
CountryLOV.setAttributeValue(SEARCH, true);
// Configure the LOV mappings.
// Note that you must call this method after you add the messageLovInput item
// to the web bean hierarchy.
// base page item
// lov item
// direction
if (pageContext.isLoggingEnabled(PROCEDURE))
pageContext.writeDiagnostics(this,
"webBeanRegionAppId : " +
webBeanRegionAppId,
PROCEDURE);
if (pageContext.isLoggingEnabled(PROCEDURE))
pageContext.writeDiagnostics(this,
"MatchRuleAttrId : " +
MatchRuleAttrId,
PROCEDURE);
CountryLOV.addLovRelations(pageContext,
MatchRuleAttrId,
"TerritoryShortName",
LOV_RESULT,
LOV_REQUIRED_NO); // base page item
// lov item
// direction
CountryLOV.addLovRelations(pageContext,
MatchRuleAttrId,
"TerritoryShortName",
LOV_CRITERIA,
LOV_REQUIRED_NO);
I am facing the issue that the torch icon is visble on the screen but when i click on it, it does not display the LOV region and a blank page saying website declined to show the page is displayed.
Please suggest what needs to be added that i am missing right now.
Thanks,
Mayankon the first option I mean you can add new region programaticaly like this on Processrequest
OAStackLayoutBean newLocationLovs=
(OAStackLayoutBean)createWebBean(pageContext
,"/yandex/oracle/apps/csi/instance/location/webui/YaLocationLovsRN"
, "xxnewLocationLovs"
,true);
webBean.addIndexedChild(newLocationLovs); -
I have a search screen where the user can enter multiple search criteria fields and click 'FIND' button.
Below is the code behind the find button. As you can see if the use doesn't enter any of the search criteria
then it is supposed to get all the records in the block BLI_DATA (this is a db block built on a view of a table).
At the bottom of the BLI_DATA screen, there are two buttons 'OPEN' and 'CANCEL' (these belong to a diff. block called
BLI_DATA_ACTION). Open opens up the record selected in BLI_DATA. Cancel cancels out of this and takes back
to the search screen. That scenario works ok. Else if the user enters any of the criteria, then the dynamic where
gets the required records. That works too.
What is not working is, if I enter say state = 'LA' in the first pass and click find, it gets
me the records for LA. Then if I click'CANCEL'and come back to the search screen, remove all the search criteria
and now click 'FIND' in the 2nd pass, it still gets me the LA information.
Code behind the FIND button
DECLARE
v_where varchar2(1000):=null;
v_orderby varchar2(1000):='BLI_ID';
al_id ALERT;
al_button NUMBER;
BEGIN
IF :BLI_SEARCH.BLI_STATE IS NULL AND :BLI_SEARCH.BLI_STORE_TYPE IS NULL
AND :BLI_SEARCH.BLI_COUNTY IS NULL AND :BLI_SEARCH.BLI_COUNTY_NAME IS NULL
AND :BLI_SEARCH.CITY IS NULL AND :BLI_SEARCH.GEO_IND IS NULL
AND :BLI_SEARCH.BLI_PLAT_LEASE IS NULL AND :BLI_SEARCH.FORM_DATE_FROM IS NULL
AND :BLI_SEARCH.BLI_LEASE_DATE_FROM IS NULL AND :BLI_SEARCH.FORM_DATE_TO IS NULL
AND :BLI_SEARCH.BLI_LEASE_DATE_TO IS NULL THEN
--app_find.find('BLI_DATA');
-- P_GET_BLI_DATA;
-- v_orderby:=':BLI_ID ASC';
--SET_BLOCK_PROPERTY('BLI_DATA',ORDER_BY,v_orderby);
message('i am here' ||'-'|| :BLI_SEARCH.BLI_STATE);
GO_BLOCK('BLI_DATA');
Execute_Query(all_records);
GO_BLOCK('BLI_DATA_ACTION');
GO_ITEM('BLI_DATA_ACTION.OPEN');
ELSE
v_where := 'WHERE state = nvl( ''' || :BLI_SEARCH.BLI_STATE ||''',state)
and concept = nvl( ''' || :BLI_SEARCH.BLI_STORE_TYPE ||''',concept)
and county_type = nvl( ''' ||:BLI_SEARCH.BLI_COUNTY ||''' , county_type)
and county_name = nvl( ''' || :BLI_SEARCH.BLI_COUNTY_NAME || ''', county_name)
and city = nvl( ''' || :BLI_SEARCH.CITY || ''', city)
and platform_lease = nvl( ''' || :BLI_SEARCH.BLI_PLAT_LEASE || ''', platform_lease)
and geo_ind = nvl ( ''' || :BLI_SEARCH.GEO_IND || ''', geo_ind)
and form_date >= nvl(to_date(''' || to_char(:BLI_SEARCH.FORM_DATE_FROM,'DD-MON-RR') || ''',''DD-MON-RR''),form_date)
and form_date <= nvl(to_date(''' || to_char(:BLI_SEARCH.FORM_DATE_TO,'DD-MON-RR') || ''',''DD-MON-RR''),form_date)
and lease_date >= nvl(to_date(''' || to_char(:BLI_SEARCH.BLI_LEASE_DATE_FROM,'DD-MON-RR') || ''',''DD-MON-RR''),lease_date)
and lease_date <= nvl(to_date(''' || to_char(:BLI_SEARCH.BLI_LEASE_DATE_TO,'DD-MON-RR') || ''',''DD-MON-RR''),lease_date)';
SET_BLOCK_PROPERTY('BLI_DATA',DEFAULT_WHERE,v_where);
GO_BLOCK('BLI_DATA');
DO_KEY('execute_query');
message('i am here1 ' ||'-'|| :BLI_SEARCH.BLI_STATE);
IF :BLI_DATA.STATE IS NULL THEN
al_id := Find_Alert('AOK');
Set_Alert_Property(al_id, alert_message_text, 'No Records were found');
al_button := Show_Alert(al_id);
GO_BLOCK('BLI_SEARCH');
GO_ITEM('BLI_SEARCH.BLI_STATE');
RAISE FORM_TRIGGER_FAILURE;
ELSE
GO_BLOCK('BLI_DATA_ACTION');
GO_ITEM('BLI_DATA_ACTION.OPEN');
END IF;
END IF;
END;Code behind the CANCEL button:
GO_BLOCK('BLI_DATA');
CLEAR_BLOCK(NO_VALIDATE);
GO_BLOCK('BLI_SEARCH');
CLEAR_BLOCK(NO_VALIDATE);
:BLI_SEARCH.BLI_STATE :=NULL;
:BLI_SEARCH.BLI_STORE_TYPE:=NULL;
:BLI_SEARCH.BLI_COUNTY:=NULL;
:BLI_SEARCH.BLI_COUNTY_NAME:=NULL;
:BLI_SEARCH.CITY:=NULL;
:BLI_SEARCH.GEO_IND:=NULL;
:BLI_SEARCH.BLI_PLAT_LEASE:=NULL;
:BLI_SEARCH.FORM_DATE_FROM:=NULL;
:BLI_SEARCH.FORM_DATE_TO:=NULL;
:BLI_SEARCH.BLI_LEASE_DATE_FROM:=NULL;
:BLI_SEARCH.BLI_LEASE_DATE_TO:=NULL;
:BLI_SEARCH.BLI_LL_REF_CODE:=NULL;
:BLI_SEARCH.BLI_LOC_TYPE:=NULL;
:BLI_SEARCH.BLI_CLASSIFICATION:=NULL;
show_view('BLI_SEARCH');
GO_ITEM('BLI_SEARCH.BLI_STATE');
hide_view('BLI_DATA');When I remove all the search criteria in the 2nd pass, why does it still get the LA information?
Thanks,
Chiru
Edited by: Megastar_Chiru on Sep 21, 2010 9:44 AMI had a similar requirement and I put it in a procedure like this.
PROCEDURE BUILD_WHERE_CLAUSE IS
hold_clause varchar2(2000);
BEGIN
-- check location code and add condition if it is not null
IF :key_block.locn_code IS NOT NULL THEN
hold_clause := hold_clause ||
' and (cwvcatr_locn_code = :key_block.locn_code)';
END IF;
-- check case type and add condition if it is not null
IF :key_block.case_type IS NOT NULL THEN
hold_clause := hold_clause ||
' and (cwvcatr_ctyp_code = :key_block.case_type)';
END IF;
-- check action code and add condition if it is not null
IF :key_block.cwvatyp_code IS NOT NULL THEN
hold_clause := hold_clause ||
' and (cwvcatr_cwvatyp_code = :key_block.cwvatyp_code)';
END IF;
-- check case assign day and add condition if it is not null
IF :key_block.case_assn_day IS NOT NULL THEN
hold_clause := hold_clause ||
' and (upper(cwvcatr_case_assn_day) = upper(:key_block.case_assn_day))';
END IF;
-- strip off initial 5 characters ' and '
IF hold_clause IS NOT NULL THEN
hold_clause := SUBSTR(hold_clause,6);
END IF;
-- Set the DEFAULT_WHERE to newly built WHERE clause
SET_BLOCK_PROPERTY('CWVCATR_1_BLOCK',DEFAULT_WHERE,hold_clause);
-- Set the ORDER_BY clause
IF :key_block.sort_by = 'C' THEN
SET_BLOCK_PROPERTY('CWVCATR_1_BLOCK',ORDER_BY,'cwvcatr_case_id');
ELSE
SET_BLOCK_PROPERTY('CWVCATR_1_BLOCK',ORDER_BY,'cwvcatr_assn_date');
END IF;
END;So regardless of what user puts in parameters, the default where is set accordingly. If there is no parameter entered, it does not set anything. And if only one parameter is entered, only one condition is set and so on. This might be helpful in your case too.
Edited by: Zaafran Ahmed on Sep 21, 2010 10:49 AM -
Performance Issue with Search screen
I am not sure to post on JSF or Hibernate forums. This one is for Performance Gurus
I have a "Advance Search" screen built with JSF/Facelets/Ajax4JSF
When i click on the link Advance Search it will take more than a minute to load the form.
The screen has 21 form fields out of which 8 are dropdowns out of which 6 are populated while loading the form. They are like LookUp tables. The other two form fields dropdowns launch popups
Now when i hit Search button it will go on for more than minute and most of the times it results in
java.lang.OutOfMemoryError: Java heap space
I am using Myeclipse and Tomcat.
Here is the memory parameters from right clik eclipse properties
"C:\Program Files\MyEclipse 6.0\eclipse\eclipse.exe" -vm "C:\Program Files\MyEclipse 6.0\jre\bin\javaw.exe" -vmargs -Xms128m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=164m
In addition i have also set Tomcat properties in Myeclipse under "Optional JVM Arguments" as
-Xmx1024m
I am thinking of doing Hibernate Query Caching for populating dropdowns while loading the form
Any other pointers/suggestions will be greatly appreciatedRun a Profiler.
-
I have crawled the UCM through SES, but when I try to search on the Search screen nothing is searched.
followed the following document - http://www.oracle.com/technetwork/search/oses/stellent-white-paper-178229.pdf
But at the end I need to configure the identity management for OID not for Content Server. I have activated the OID plug-in in SES, but nothing is searched in both the foloowing cases:
1) When I login with a OID user
2) When i do not login, even the public data is not displayed.
What could be the problem??Thanks for the reply. Authorization was use source ACL, and I tried logging in as every user that had access to the content and could not bring up anything.
However, this is no longer an issue as we are not going to be using this content database. We are going to be using the new Beehive collaboration instead. I don't know if there will be a different plugin for SES or what, but it should be interesting.
Jennifer
Maybe you are looking for
-
Adobe Premiere Elements 10 unable to import *.mt2
When I attempt to import a file with the .mt2 extension into Adobe Premiere Elements 10 I recieve a message that says "Online Services encountered an error. The service will now be terminated or paused if possible." Then I am unable to generate the
-
Indesign Script Opening Flex App / Tab Handling
Hi, I am working on a FlashBuilder 4 application that is opened from, and interacts with, an Indesign CS4 .jsx script. I have added a TitleWindow that provides for login processing (there is a backend database) to the Flex application. The login
-
How can I get my ethernet port to work on Macbook Pro.
My ethernet port does not work on my Macbook pro (2010 model) running Yosemite. Please help me.
-
Radiobutton in table fields.
HI all, I am trying to put radiobutton for one of the column in the table and textview for the rest...while doing context binding for the table.But that radiobutton is not coming ...rather the default textview is showing for that column while i run t
-
Saving panoramic with photomerge Elements 9
after saving my panoramic the file format is not compatible with Lightroom or any other photosoftware, please help!!!