Query on button

hi expert
  i create three text box and one button on form.now i want to add all edit text  box text in database when i clicked the button how i write  sql query on butoon

Hi Vmaskey,
in Item Event
If pval.formuid = "FormID" And pVal.ItemUID = "ItemID" And pVal.Before_Action = False And pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED Then
      Dim oRS As SAPbobsCOM.Recordset
      oRS = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
      oRS.DoQuery("Select DocEntry, DocNum, CardCode From ORDR WHERE DocEntry =1")
      Dim oEdit As SAPbouiCOM.EditText = oForm.Items.Item("Edit1").Specific
      oEdit.String = oRS.Fields.Item(0).Value
      oEdit = oForm.Items.Item("Edit2").Specific
      oEdit.String = oRS.Fields.Item(1).Value
      oEdit = oForm.Items.Item("Edit3").Specific
      oEdit.String = oRS.Fields.Item(2).Value
      System.Runtime.InteropServices.Marshal.ReleaseComObject(oRS)
      oRS = Nothing
End If
Under your \Program Files\SAP\SAP Business One SDK\Samples folder, there are a lot of sample codes that are very useful.
I recommend that you look into it... The sample starts from the simplest code, to intermediate code.
but It is enough to get you off.
Best Regards
Edy

Similar Messages

  • Start SAP BW Query Designer button in Crystall Report is not find

    Hi all
    I installed Crystal Report 2008 SP1 and Integration Kit for SAP 3.1
    After Integration Kit installed, I see in SAP Menu have Start SAP BW Query Designer button
    But, when I update to Crystal Report SP2, I dont find Start SAP BW Query Designer button in SAP Menu
    Can I help me enable Start SAP BW Query Designer button
    Thanks

    Hi,
    the query designer can be started from the SAP BusinessExplorer menu items. the button has been removed from Crystal Reports
    Ingo

  • 'Submit Query', 'Reset' button on report PForm position can be changed ?

    All
    A custom 6i Report developed under Oracle 11i environment. This report is in Oracle Applications and this is being launched from web. (Using report launcher/report server
    for ex: http://my.server.com:80/dev60cgi/rwcgi60? Rep60_Apps&report=PO_Lines.rdf¶mform=YES)
    When report runs on the web using this url, first page displayed is parameter screen and 'Submit Query' and 'Reset' button is displayed on the top the page and after that all the text/fields that are on report parameter form displayed.
    ex:
    |Submit Query | |Reset|
    PO Report
    Report Parameters
    PO Number :
    PO Date :
    Question is that can I move 'Submit Query' and 'Reset' buttons to end of page and after the parameters lists?
    Appreciate if you can let me know whether is is possible and if so, please send the required code, notes.
    settings I have used:-
    :DESTYPE := 'CACHE';
    :DESFORMAT := 'HTMLCSS';
    :MODE := 'BITMAP';
    Thanks in advance
    Rathan.

    looks like this is the default parameter from that is generated by reports and this is fixed and the position of the control can not be controlled.
    thanks,
    ph.

  • Af:query search button partial trigger

    Experts,
    Having an af:query with table in Jdev 11.1.1.5 page, how can we make the table visible/invisible if the table is empty. I can put
    #{bindings.Details.estimatedRowCount > 0 }  in my table visible property, but how to put a partial trigger from the default search button in the af:query to the table
    thnks

    I donot think you will need to add a partialTrigger separately. The resultComponentId attribute of the af:Query (which should reference the results table) should take care of this .
    From the documentation http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_query.html >
    resultComponentId : ....Product teams should ensure that this value is set correctly so that the search operation triggers a partial page refresh of the componenEdited by: Sudipto Desmukh on May 8, 2012 6:48 PM

  • Query regarding Button in a BSP Page

    Hi All,
    I want to add a button to a BSP Page which on clicking will open a Page Fragment.
    Please guide me how to do this.
    Thanks in advance.

    Hello Arnab,
    I assume you are thinking about something like assigment blocks in CRM. fragments of which you switch on or off:
    Here's a simple test app how to go there:
    - create a page with flow logic as main page:
    - on this page place a form with a button triggering an event. e.g toggle_fragment:
    <form method="post">
      <input  type="submit" name="onInputProcessing(toggle_fragment)" value="toggle fragment on/off"/>
    </form>
    - create an attribute for your main page named fragment_status and type it as string. And activate the "Auto" Option.
    - create the following sample code in your main page's onInputProcessing event:
    case  event_id.
      when 'toggle_fragment'.
        if fragment_status is initial.
          fragment_status = 'ON'.
        else.
          if fragment_status = 'ON'.
            fragment_status = 'OFF'.
          else.
            fragment_status = 'ON'.
          endif.
        endif.
    endcase.
    runtime->keep_context = 1.
    - in your main page's layout code add some code for displaying the page fragment like this:
    <%if fragment_status = 'ON'.%>
      <%@include file="fragment1.htm" %>
    <%endif.%>
    - now create a page fragment containing any content and name it fragment1.htm for this sample.
    - test and enjoy switching it on and off
    regards

  • Query documentation button on  Portal

    Hello,
    I want to put the documentation for the report in the 'Documentation Button' available on Portal. Where should I maintain this documentation so that it appears on portal?
    Also, is there a way to add scroll overs on the fields? As in, if I move the mouse on the character/keyfigure in the report - a box appears which has some details about that field.
    Helpful answers will be generously rewarded.
    Thanks,
    Jinal

    I have the same problem.
    Any ideas ?

  • Query on Buttons

    Hi,
    On my Web UI page, I can see that we have two buttons - "Clear Interaction" and End" at the top.
    I know that they are part of standard and we can add them using the customizing.
    However, can we see the code that gets executed on click on these buttons?? If yes, where/how?
    Regards,
    Mohit

    Press F2 and you get a Pop Up giving you details about the UI component and View name. Go to transaction BSP_WD_CMPWB, check for the UI component and navigate to the View.
    There will various event handlers for different events. You can then check for the event you are specifically looking for.
    Rg,
    Harshit

  • Display New, Save, Query buttons on the screen/applet in siebel application

    Hi,
    I have created one application screen using siebel tools. I want to display 'New', Save', 'Query' etc. buttons to be displayed on that screen in siebel application. How can i do that?
    Thanks & regards,
    Bhushan

    Hi,
    You should have used the wizard to create your applet. That way you can pick the controls you want on your applet.
    You can also add them manually.
    You should be reading Siebel bookshelf and finding the answers for yourself. Don’t be lazy!
    R
    Robert Ponder
    Lead Architect and Director
    Ponder Pro Serve
    cell: 770.490.2767
    fax: 770.412.8259
    email: [email protected]
    web: www.ponderproserve.com

  • Bc4j- do query tied to button

    How do I tie a " do Query" push button to cause the query to run and fill the detail table.

    Depends upon what you are trying to do.
    1. Button Event actionPerformed ( on the IDE )
    2a. For an existing, defined rowset:
    myRowset.setQueryCondition( val);
    myRowset.executeQuery();
    where val is your "WHERE clause", minus the WHERE.
    2b. For a JDBC call ( example stored proc call, more complicated but this gives the gist ):
    CallableStatement call= OpenDBConnections.myJdbcConnection.prepareCall("{? = call CRR_GET_PART_LIST(?)}");
    call.registerOutParameter(1,OracleTypes.CURSOR);
    call.setString(2,p_partNumber);
    call.execute();
    OracleResultSet rset=(OracleResultSet)call.getObject(1);
    /* use caching result set cuz it is non scrollable stored proc result */
    model = new CachingResultSetTableModel(rset);
    partList_tbl = new JTable(model);
    Hope that helps.
    null

  • CM14 BI Publisher - modifying an existing Data Model, the Graphic View in Query Builder does not display

    I am trying to edit the default forms/reports that come with CM14, trying to edit the data model, data set, (to get to the old Infomaker style graphic view) , the Query model does not display (error the list of tables is too long..) Oracle tell me the limit is 60,  there are not 60 tables referenced in any CM report.
    Does this Query builder view work at all on any report?
    (bigger question, we are moving from CM12, should we move to CM13 which works with infomaker?)
    Thanks,
    Paul L

    Kurt, thanks for your replies.
    A couple of notes/clarifications.
    1.     You are correct that BI works better in Firefox--I have observed issues with the BI display when using IE.  I would recommend using Firefox too.
    2.     You are correct about the way to get to the Query Builder to see a graphical view of data tables.  There are basically two issues with this that I mentioned, but will re-iterate:
    a.  If you have an EXISTING query in the data set, then click the "Query Builder" button, this will remove the existing query that's there, it will NOT display the existing query in the query builder.  Query Builder works only to create a NEW query from scratch.
    b.  Query builder is limited to selecting 60 fields max in your query.  If you are creating a large report with many tables, you may find that 60 fields is not enough.  For that you will have to work in the SQL edit screen rather than using the query builder.
    I would impress on anyone developing CM14 reports that they become familiar with the database schema and relationships to avoid problems when developing your BI reports.  You should be able to find the tables and joins documentation in the knowledgebase.

  • How to call function behind the button and update only specific record

    Greetings,
    1 - i wnat to ask few things as i m new to apex, i am using apex 4.1, and created 3 select list and a button in seleting of parameter,
    1 select list : select area
    2 select list: select product
    3- select list - size of the product
    i want to generate Ids for the follwing. for that i created query for INSERTING RECORD FROM ONE TABLE TO ANOTHER , generation the ids when button pressed "Generate" after selecting parameters,
    Now where i call that QUERY on button ? because when i create button its gives me option to submit, defined dynamic action, etc, pls gudie me where i call the function name id_generation when button pressed?.
    2- second thing i creared tabular " select user_id, product_name, product_type from product".
    by defualt check box list are create delete submit button are created, first when i insert record it saves that was fine, e.g i entered 50 records and afterward i want to update only one record, e.g there is a record product name = box, if i change it to box small and click submit then it saves all the page means all 50 records,
    i want to submit only that record that i changed, for that i use the logic that only those records should be updated which are checked but the user. how will i do this ? where to use the preocess , please guide
    Edited by: Omzz on Oct 2, 2012 11:28 PM

    If I understand what you are trying to do is correct you could possibly do this by:
    Creating and AFTER INSERT trigger on the table based on the tabular form which inserts the record into a seperate table after the record is inserted something like:
    CREATE OR REPLACE TRIGGER copy_records
    AFTER INSERT ON table a
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    DECLARE
    BEGIN
    INSERT INTO table b
    VALUES :NEW.col1, :NEW.col2 etc......
    END;
    There is also a way that you could do it within the form using a cursor on the tabular form with APEX_APPLICATION.G_ ......
    Chris

  • Export in Query mode settings

    Hi All,
    Can anyone tell me where can we get Export in Query mode(Used to export grids to Excel sheet) settings?
    One more problem with this is that the Excel that is exported on clicking on "Export on Query mode" button overwrites the current Excel working file that we are working upon. How can this be solved?

    It is the behavior, Query ready mode will only pulls the members which are in Essbase (no FR calculated fields)
    Regards
    Celvin
    http://www.orahyplabs.com

  • Visual Query Builder Doesn't Work

    I'm using the ColdFusion extensions to Flex Builder 3
    (3.0.1.205647), and I can't use the Visual Query Builder. This is a
    fresh ColdFusion8 install. I have RDS configured, I even test the
    connection successfully.
    I can use the RDS DataView and see the databases, click on
    cfartgallery, for example, and show the 'art' table contents. No
    problem. Then I click the 'Visual Query Builder' button, and
    nothing happens. The query builder does not show.
    It's not a big deal until I try and run the CF/Ajax app
    wizard, and editing the master page is supposed to open up the
    query builder...same problem. Even here it won't open. So, I can't
    edit anything or use the wizards at all. I don't get any error
    message, it just doesn't do anything when I click the button.
    Anyone else have this problem? Is there some setting I am
    missing or have to configure after a fresh install in the CF
    administrator?

    Using vista?
    Right-click on Flex and click Run As Administrator
    Ken Ford
    Adobe Community Expert Dreamweaver/ColdFusion
    Fordwebs, LLC
    http://www.fordwebs.com
    "adimauro" <[email protected]> wrote in
    message
    news:g8pt2n$jh1$[email protected]..
    > I'm using the ColdFusion extensions to Flex Builder 3
    (3.0.1.205647), and
    > I
    > can't use the Visual Query Builder. This is a fresh
    ColdFusion8 install. I
    > have
    > RDS configured, I even test the connection successfully.
    >
    > I can use the RDS DataView and see the databases, click
    on cfartgallery,
    > for
    > example, and show the 'art' table contents. No problem.
    Then I click the
    > 'Visual Query Builder' button, and nothing happens. The
    query builder does
    > not
    > show.
    >
    > It's not a big deal until I try and run the CF/Ajax app
    wizard, and
    > editing
    > the master page is supposed to open up the query
    builder...same problem.
    > Even
    > here it won't open. So, I can't edit anything or use the
    wizards at all. I
    > don't get any error message, it just doesn't do anything
    when I click the
    > button.
    >
    > Anyone else have this problem? Is there some setting I
    am missing or have
    > to
    > configure after a fresh install in the CF administrator?
    >

  • Variant for a query in Web

    HI,
    In my query I had a User entry Variable (Multiple Single Values) on 0DEPARTMENT.
    I had give a list of 2000 departments in a excel file.
    When I execute a query in WEB (7X Template) my requirement is to create a Variant so that if selected all the 2000 departments are included
    How can I paste all the 2000 values in the variable screen and save it as a variant
    Thanks

    Hi,
    For this you will need to create variant for the query in RSRT transaction. Just goto RSRT transaction. Provide the query name and click on Query Variants button. You will get a n option to create variant for the query. paste all the 2000 values for that particular variable of the query and save it as variant.
    Now when you will execute the query in the web you will get an option to select that variant from the query.
    Navesh

  • Report designer - Check Data Provider button missing

    Hi,
    We are in Bi 7.0 Sp 17. I found out that reports designer with hierarchies don't offer the 'check data provider' button- In field catalog, over the query, right button. If report has a fixed structure button appears...
    I need it to refresh the dataprovider with new filter values set in the query
    Have you noticed this? Do you think it's a bug in report designer or can it be my sapgui version?
    Regards,
    Ruben

    Hi Ruben,
    I think I am correct in the following, it is my understanding that the Check Data Provider button only works on fixed (Static) structures not dynamic characteristics.  Therefore if you add in additional characteristics (dynamic) after you have inserted the dataprovider into the report designer then you will not be able to use the Check Data Provider button.
    Please see the following link for explanation.
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/8a95791b1f22a8e10000000a1553f6/content.htm
    If you find additional help on this please share, as RD has caused lots of "challenges" and is still in development as far as I am concerned.  Be glad when its superceded.
    Regards
    Nick

Maybe you are looking for

  • Purchase Price for the Material

    Hello World of SAP, Hallo Welt von SAP, Is there any report in standard SAP for Material Purchasing Price? Basically I'm using table EINA and EINE to check that purchase price, if the MAP price i check in MBEW.

  • Allow a user to create/change records in 2008 R2 DNS

    Hi, We currently have a 2008 R2 domain with two AD servers running DNS. I want to grant permission to a regular user to be able to create/modify records on the DNS server for the primary domain (company.com). I have done some reading but everything k

  • Problem with Unit of measurement

    Hi, I am having problem with Unit of measurement with different languages. Eg: In SPRO, I am able to see the unit of measure T3 Description: (Trading unit).  in SAP 200 client .the logon language is EN(english). But if I logon into same client(200) w

  • Unable to find start updisk

    Hi there , Can anybody help? i have done a restore on my new macbook pro from time machine which was from my white macbook. when i select the start up disk on my pro it goes to restart but doesn't seem to find anything then restarts again. I have loo

  • Automatic commit

    Hi We have implemented an application with jheadstart. Now, we have a new user requeriment for implement "automatic commit". It means that the modificacions on a page must be saved without the user press the button "save".We are trying to implement i