Form in Find Mode

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 Sub

Hai,
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

Similar Messages

  • 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.Dhivya

    call
    ActivateMenuItem( "1281")
    in application object.

  • 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

  • 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ébastien

    Hi,
    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

  • 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,
    Prashant

    Hi,
    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

  • 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
    Jambu

    Hi,
       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

  • 11G: Search form always in Find Mode?

    Hi,
    We are trying to re-do a search form that is always in Find mode. Shoud we follow what we do for 10.1.3 or there is new document we should follow?
    Thanks,
    Annie

    Neelmani,
    Thank you for pointing out the PDF file. I was wondering if you know oracle has any sample application talks about how to create a "Search Form" using named view criteria. I've read the PDF file chapter 25 and chapter 5.10. They only talk about it in general - meaning no detailed steps on how to do it. This 11G is a brand new product. I am no stranger to Jdev since I've been working with Jdeveloper for a couple of years. But still this version is a complete different version. A detailed step by step instruction would be really helpful at this point.
    Best regards,
    Annie

  • Using ChooseFromList when form is in Find mode

    Hello,
    I'm trying to use a ChooseFromList to select a Sales Person (there is also an Udo in the form). It works fine when the form is in add mode or in update mode, but when I change to find mode, the form to select doesn't appear.
    How could I show the form to select when the main form is in find mode??
    Thanks in advance.

    Hi Dulce,
    That is a standard behaviour of SBO. Try for example in the A/R invoice form to use the choosefromlist for BP. It won't work.
    The way to use the find mode is just to fill all the data where you can filter your info and press the button Find.
    e.g. in the A/R invoice put * in Customer and when you press find the choosefromlist pops up.
    Hope this helps,
    Ian

  • 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"?
    Thanks

    Arrest 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

  • 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

  • How to put the form in Query mode

    Hello
    Please let me know how to put the form or block in Query mode , so that when i run the form it should be in Query mode . I have seen properties of SET_FORM_PROPERTY and SET_BLOCK_PROPERTY but cannot find one
    Thanks

    QUERY mode? Did you mean, that you can only QUERY without changing data.
    This is the QUERY-ONLY-mode, which can be started e.g. call_form
    this is the help for that topic:
    PROCEDURE CALL_FORM
    (formmodule_name VARCHAR2,
    display NUMBER,
    switch_menu NUMBER,
    query_mode NUMBER,
    data_mode NUMBER,
    paramlist_name VARCHAR2);
    query_mode     
    NO_QUERY_ONLY (The default.) Form Builder will run the indicated form in normal mode, allowing the end user to perform inserts, updates, and deletes from within the called form.
    QUERY_ONLY Form Builder will run the indicated form in query-only mode, allowing the end user to query, but not to insert, update, or delete records.

  • 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 Regards

    Hello 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

  • How to open a MD form in insert mode when calling from URL ?

    I have a MD form and I want to open it in 'insert' mode when I click on the URL.
    How can I do that ?
    thanks,
    Mainak

    I think somebody has asked the same questions earlier but I cannot find the link to that message. Please can anyone help me ?
    How to open a form in Insert mode from url link ?
    Mainak

  • Link Parameters from Report to Form in Insert Mode

    It seems like it should be possible to use the Report wizard to add a link to a form, select some link parameters using the Edit Link function, and then when one clicks on the link it would open the form in insert mode with the link parameters filled in as defaults. Instead what happens is it tries to open the form in update mode with a row that matches the link parameters, and if it can't find a match it opens in insert mode with no parameters filled in. I want it to always open in insert mode and with the passed parameters filled in.
    I've looked through all the documentation I have access to and have been through all the Portal FAQ's on OTN and can find nothing on this. There were a few questions in the FAQ's that told how to do it in PL/SQL, but I don't know how to get access to which instance of the link was selected by the user through PL/SQL, and it seems like there should be a way to do this from within the report wizard.
    Any help you can give me would be greatly appreciated.
    Best Regards,
    Jim Bladen

    If your report is created using ‘Reports From SQL Query’ then you can modify it using the following to achieve this:
    1. Remove the link from ‘Column Formatting’ section of the report object.
    2. In the SQL of the report , use custom link to the column where you want to provide link using the syntax
    select a.empno,’‘||a.ename||’‘ ename_link,a.deptno
    from scott.emp a
    Order by a.empno
    and the form will always open in ‘INSERT’ mode with passed values filled in.
    Thanks
    Krishnamurthy

  • 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

  • NoSuchAlgorithmException under win server 2003, but not 2008

    I have a strange error, I can reproduce but which I can't quite figure out the cause or solution to. vitals: javamail 1.4.4, Windows Server 2003, JBoss. So, I have a pretty large stack trace I won't include (yet), but it starts with a NoSuchAlgorithm

  • Upgrade Content Server and Site Studio

    Hello Everyone, We are trying to upgrade both Content Server and Site Studio from 7.1 / 7.2.1 to 10gR3 1) Instead of updating existing instance we Installed new 10gR3 instance Exported folder structure archive, layout files and data files from old in

  • Explaination of Component palette in BPEL

    Hi , i am new to BPEL and have been asked to work on BPEL without any prior training :(. When i open Jdeveloper i find a component palette which has foll options 1. Code Snippets 2. Preferred Components 3. Proces activities 4. Services 5. XML Can som

  • Can metadata like keywords captions etc be saved in 5.04

    I dont think i photo allows this. (an old toad question) so if i go to work with iphoto and type in 8000 keywords and other meta data like commonalities amongst photos after i save my iphoto information to photo library or whatever this data is not b

  • Premiere disappears after loading

    I'm trying to help someone who can't get Premiere Pro 5.5 to run.  He launches the program and it starts to load, then instead of coming to the recent project window, the program simply disappears.  This only happens for his user.  Other users on the