JClient Find Mode question
I have an application where I want to give the user the option of which columns to search for a user-given key. Everything works except that the find mode ANDs the results from the selected columns, so if I'm searching for a number string that appears in the Card ID column, no results are displayed, since that number doesn't appear in the Last Name column as well. Is there a way of setting Find Mode to OR the results?
Scott,
if i remember well just from looking at the table when going in find mode, then all entries in one lines are AND'ed together, while different lines are OR'ed together.
Frank
Similar Messages
-
JClient JComboBox issue on Find mode
Hello! I am using JComboBox LOV mode on my JClient form. It works fine with a small glitch.
On a first time query, I pick a value and execute, it works great.
On a second time (find mode), if I choose another value in the comboBox it trys to remember the old value only, ignore the second time query criteria.
could anybody please shed some light on this how to overcome this.
Thanks in advance
KathirJdeveloper version (10.1.2.1.0)
Scenario:
Step 0: Create BC for dept and emp as read only view object.
Step 1: Create Empty runnable panel
Step 2: Select empno, ename, job and navigation bar(empIterator) from the data control palette on the panel
Step 3: Choose deptno of emp view from data control palette has Jcombobox (turn the deptno JcomboBox property editable to true)
Step 4: From the structure window, choose deptno data source (selected as Jcombobox) and assign Source target as deptIterator
and target as EmpIterator.
Step 5: map deptno from deptIterator and deptno from empIterator
Step 6: Lov Attribute tab choose only deptno.
Step 7: Run the panel, put the form in the find mode.
Step 8: Choose any deptno and execute query (this will work fine)
Step 9: Again put the form in the find mode, and clear deptno
Step 10: and execute you will still get the old query result.
Please let me know if I need any clarification.
I appreciate your time and help!
Thanks -
How to escape a single quote in a find mode view
Hello,
I'm working with JDeveloper 10g.
I've defined a view that is used in "find mode" in a JSP.
When a value with a single quote is inserted in a field of the search form, an exception is thrown:
JBO-27122: SQL error during statement preparation.
ORA-00907: missing right parenthesis.
The problem is that the "single quote" is not being escaped:
WHERE STREET LIKE 'ABAT ESCARRE, DE L'A'
How could I force the view to escape the "single quote"?
ThanksArrest the single quote by calling a javascript method.
This might help you
Re: af:clientListener javascript function call question
http://download.oracle.com/docs/cd/E12839_01/apirefs.1111/e12419/tagdoc/af_clientListener.html
Edited by: Srinidhi on Mar 23, 2011 3:46 PM -
I have a JClient application with a data panel and JUNavigation bar. Find mode lets me use the data panel to enter search criteria but I don't know how to programatically determine if the "Find Mode" is enabled?
All thoughts and suggestions are welcome.
ElderHi Frank, thanx for the reply.
I didn't think of checking the methods of the panel binding (was looking at the JUNavigation bar)...but upon doing so I found a "setFindMode(boolean)" but no "getFindMode". I didn't see anything in the VO.
There must be a way of "getting" the current mode and I'm probably overlooking something really simple.
Again, I appreciate your help.
Regards,
Elder -
Problem with "find" mode in adf/swing application
Hi all,
I'm working on ADF Swing application which uses MS SQL Server 2005 (JDeveloper 10g 10.1.3)
I think that my issue might be well-known…sorry if it has been already discussed somewhere else…
I have a problem with the “find” mode for a detail panel in a master-detail form…(To make it clear the “find” mode is switched on when clicking on the special button on a navigation panel).
So this mode works well in a master panel, but it demonstrates strange behavior on a detail panel, i.e. it takes me two attempts to find the necessary child object and it doesn’t switch back in a simple way from this mode to the normal mode….say if we are in the department 10 (Dept is a master form) we can’t simply find KING employee (Emp is a detail form)…is there any workaround for this?
Thanks in advance. Alex.Hi Frank, please look this issue
-
Open Purchase Order Form in Find Mode
Hi,
I have to open the Purchase Order Form in Find Mode.How to open in Find mode?.
I Used the Following Code in Form_Load && Action_Success=true
if(oForm.Mode = SAPbouiCOM.BoFormMode.fm_ADD_MODE)
oForm.Mode = SAPbouiCOM.BoFormMode.fm_FIND_MODE
But it is not working.Please help me to solve this.
Regards,
M.Dhivyacall
ActivateMenuItem( "1281")
in application object. -
How to disable a Entire row in a Matrix in Find Mode (User Form)
Hi,
How to disable a Entire row in a Matrix in Find Mode (User Form)
Regards
JambuHi,
Iam using Bubble event = false in click event but the matrix row
is allow to edit but we cant save the document in Find Mode That is fine.
What is my actual requirement is In find mode matrix Row not allow to enter the data .
For examble In ADD mode i enter the data in Three rows (Item Section - Matrix) and
save the document. Whwn i open the document in find mode the three row is not allow
to editable like the same functionality of PO, sales Order, etc ..
Regards
Jambu -
How to look at a query string from Nav Bar Find Mode
I would like to view the resultant query string from the Navigavtion Bar's Find Mode. I am using a Master/Detail and am querying with the selection criteria from the detail only.
I am getting unexpected results, and would just like to SEE what the query string IS.
ThanksI am getting unexpected results, and would just like to SEE what the query string IS.Run your app with diagnostic output turned on. Here's the instructions for that.
To turn on diagnostic, go to the IDE,
1. Select the project.
2. Do right mouse click and select "Project Settings..."
3. On the Settings dialog, select Configurations/Runner.
4. In the righthand side pane, you should see a textbox for "Java
Options". Please add the following JVM switch:
-Djbo.debugoutput=console
Then, rerun. The run command should include
-Djbo.debugoutput=console as in
"D:\JDev9i\jdk\bin\javaw.exe" -Djbo.debugoutput=console -classpath ...
You should now see a lot more output on the IDE's message window.
This should also include the findmode query that gets built after you hit the execute button from a findmode panel. -
Using JDev 10.1.3.0.4.
I have a page that shows a single record. The user can toggle between regular and Find mode to enter query by example criteria.
One of the fields has been bound to a dynamic list. The "No Selection" Item in the List Binding Editor is set to "Selection Required".
When editing a record, this list does not have an empty item. When the user enters find mode, the list has an empty item in the list - which makes sense since the user might not want to search on a value in that particular field.
However, if the user enters find mode, selects an item from the list, executes the query (Execute action), and enters find mode again then the empty item no longer shows up in the list. Is this a bug?
(Note - there is an easy workaround - if you delete and create in find mode, then the new critieria record has the list fixed with an empty item in it.)Using JDev 10.1.3.0.4.
I have a page that shows a single record. The user can toggle between regular and Find mode to enter query by example criteria.
One of the fields has been bound to a dynamic list. The "No Selection" Item in the List Binding Editor is set to "Selection Required".
When editing a record, this list does not have an empty item. When the user enters find mode, the list has an empty item in the list - which makes sense since the user might not want to search on a value in that particular field.
However, if the user enters find mode, selects an item from the list, executes the query (Execute action), and enters find mode again then the empty item no longer shows up in the list. Is this a bug?
(Note - there is an easy workaround - if you delete and create in find mode, then the new critieria record has the list fixed with an empty item in it.) -
How to use CFL in Business Partners Master in Find Mode
Hi,
I have a problem in Business Partners Master Form. I need add conditions in Choose From List in Find Mode when I set an asterisk in the CardCode TextField for filtering the businnes partners list.
When I capture the et_CHOOSE_FROM_LIST itemEvent in BeforeAction, I can't get the ChooseFromList ID for adding the conditions in the ChooseFromList Object.
Sample Code:
Public Sub ItemEvent(ByVal FormUID As String, pVal As SAPbouiCOM.IItemEvent, BubbleEvent As Boolean)
Select Case pVal.EventType
Case et_CHOOSE_FROM_LIST:
Dim lcflE As SAPbouiCOM.ChooseFromListEvent
Dim id As String
Set lcflE = pVal
id = lcflE.ChooseFromListUID -> The ID is "-1"
End If
End Sub
Thank's in advance
Best RegardsHello Rafea,
if you can't get it via lcflE.ChooseFromListUID -> The ID is "-1",I guess you need to know choosefromlist UID by test one by one with oForm.ChooseFromLists.Item(i). Or you can save the fom as xml then chech the CFL UID.
If pVal.FormType = 139 And pVal.EventType = SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST Then
If pVal.ItemUID = "4" Then
If pVal.InnerEvent And pVal.Before_Action Then
BubbleEvent = False
Dim oForm As SAPbouiCOM.Form
oForm = SBO_Application.Forms.Item(FormUID)
Dim oCons As SAPbouiCOM.Conditions
Dim oCFL As SAPbouiCOM.ChooseFromList
'oCFL = oCFLs.Add(oCFLCreationParams)
oCFL = oForm.ChooseFromLists.Item("2")
oCons = oCFL.GetConditions()
'Note: Add the condition only once.
If 0 = oCons.Count Then
Dim oCon As SAPbouiCOM.Condition
oCon = oCons.Add()
oCon.Alias = "Cardcode"
oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
oCon.CondVal = "C0001"
'Set your own condition here instead of the system conditions
oCFL.SetConditions(oCons)
End If
BubbleEvent = True
End If
End If
End If
Kind Regards
-Yatsea -
Form should not be in find mode
Hello Experts,
I have created one form but I am not putting Add button on form. When I load this form and did control + F then CFL is not working. This form going in find mode. I dont want this form in find mode. What sould I do? Please help me sir.
Thank You
Regards,
PrashantHi,
Try this
if pVal.MenuUID = "mnu_MD" and pVal.BeforeAction = False
LoadFromXML("CustomForm.xml")
Soft_Form = Soft_Application.Forms.Item("formID")
Soft_Form.EnableMenu("1281", false)
end if
Reply Me -
Updating a user text field in sap system form in Find Mode
Dear All,
I created a Edit text field in Sap System form [FormType :149] -Sales Quotation. I want to update a value to the text while clicking OK button in Find Mode. the code is given below.
If pVal.ItemUID = "1" And pVal.FormMode = SAPbouiCOM.BoFormMode.fm_FIND_MODE And (Not pVal.Before_Action) And pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK Then
oForm = SBO_App.Forms.Item(FormUID)
oForm.Freeze(True)
oItem = oForm.Items.Item("txtUID")
oEdit = oItem.Specific
oRS = ConSBOdb.Execute("Select * from BG_CAMPAIGNSHDR where CMIDENT ='" & Trim(oEdit.Value) & "'")
oItem = oForm.Items.Item("txtCampgn") ' // User created field
oItem.Enabled = False
oEdit = oItem.Specific
If oRS.EOF = False Then
oEdit.Value = oRS.Fields("CMNAME").Value
Else
oEdit.Value = ""
End If
end if
while clicking the OK button, Based on the value fetched on the screen, I have to open a recordset and get the value. But, the screen loads the value to the system textboxes. I could not get those value to run the Sql in the event. it returns empty. Could any one help please how to solve this ?
Thanks in advance.
Manikandan.Hi,
Try This..
If pVal.FormType = 149 And pVal.ItemUID = "1" Then
If pVal.FormMode = SAPbouiCOM.BoFormMode.fm_FIND_MODE Then
If pVal.Before_Action = False Then
If pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED Then
Try
oForm = SBO_App.Forms.Item(FormUID)
oForm.Freeze(True)
oItem = oForm.Items.Item("txtUID")
oEdit = oItem.Specific
oRS = ConSBOdb.Execute("Select * from BG_CAMPAIGNSHDR where CMIDENT ='" & Trim(oEdit.Value) & "'")
oItem = oForm.Items.Item("txtCampgn") ' // User created field
oItem.Enabled = False
oEdit = oItem.Specific
If oRS.EOF = False Then
oEdit.Value = oRS.Fields("CMNAME").Value
Else
oEdit.Value = ""
End If
Catch ex As Exception
SBO_application.MessageBox(ex.Message)
End Try
End If
End If
End If
End If
Best Regards,
Mahendra -
Hai,
After matrix is loaded the "Add" button changes to Find mode. I need "Add" button to be in "Add" mode after the data gets loaded into the matrix.
when i click any row in the matrix button should change to update mode automaticall as SAP Businees one scree does.
In the screen painter i have used AutoManaged = "True" and below given to load the matrix.
Public Sub Getdata()
Dim oDBDataSource As SAPbouiCOM.DBDataSource
Dim oUserDataSource As SAPbouiCOM.UserDataSource
Dim oMatrix As SAPbouiCOM.Matrix
Dim i As Integer '// to be used as counter
'// getting the data sources from the form
oDBDataSource = oForm.DataSources.DBDataSources.Item("@PSSIT_COUNT")
'// getting the matrix from the form
oMatrix = oForm.Items.Item("3").Specific
oMatrix.Clear()
'// Querying the DB Data source
oDBDataSource.Query()
For i = 0 To oDBDataSource.Size - 1
oDBDataSource.Offset = i
oMatrix.AddRow()
Next i
oMatrix.AutoResizeColumns()
End SubHai,
Please let me know where i can define the "Support modes" of the form.
I have designed the screen in screen painter and save as "srf" format. I have loading the form in the same format.
regards
Suresh S -
Open Users Setup form in Find mode
Hello,
When I open the users form
Administration
---Setup
General
Users
this form is in Add mode. Is there a way to have it in find mode directly ?
Thank you
SébastienHi,
It is not possible to have the User - setup in the Find mode default.
The form opens in the Add Mode and you have to go to the Memo and click on Find or do a Ctrl + F.
Regards,
Jitin
SAP Business One Forum Team -
JButton in table cell in Find Mode
Hello!
I have JButton in JTable cell for calling LOV.
When form goes to Find Mode all JButtons become disabled.
Accordingly, I want that buttons active. Any help will be appreciated %)If the button is bound with an LOV Button binding, then I believe the framework checks the queryable property of the "target" attribute. Make sure that attribute has the "queryable" property checked in the View/Entity.
Hope this helps.
Erik
Maybe you are looking for
-
I have been using my iPad 2 to do job searches. Many websites ask me to upload my resume and/or a cover letter. I create these in Pages, and also save them as PDF files. When I click on the button to upload a file, the only choices I have are phot
-
Win 7 doesn't recognize hp 3545
Hello. I am running Win7 Ultimate 64 bit. I cannot get it to recognize my printer. Over wireless setup, it displays my printer, but when i try to install it, it says "Unsuccesfull printer instalation" "The printer was unable to be installed over the
-
How do I add an offline translation to the Bible app to use it when not connected to a network?
-
Dear all experts, I have created two trans. table. 1. ZSD_CC 2. ZSD_CC_DEPT. Now while declaring this tables in my TOP include with TABLES: statement ZSD_CC_DEPT is not showing any error. but while declaring ZSD_CC table system shows me some error ""
-
IMovie freezes (movie too big)
Hello, I was making a movie in imovie and I spent a lot of time on it. It went to about 32 minutes and then it froze. Now, when I open imovie it freezes. I already tried the deleting com.apple.imovieapp.plist trick and it didn't work. What can I do?