Free sample code

hello my friends:
I need dome free example code about nested class and inner class .
please help me ,if you can.
thank you for attention.
good bye

Why?
If you write one class per source file there will be nothing that can be done in java that you cannot do. What do you hope to gain by making it more complicated?

Similar Messages

  • Free sample Forms 9i code

    Hi,
    some one plz, tell me the address of website from where I download free sample forms 9i code to make my application better, thanks for all of you help.
    Khawar

    Hello,
    <p>This is an article that contents 15 sample dialogs that explains some of the extended functionalities of Forms 10gR2.<br>Note that you can download Forms 10.1.2 for free on the OTN site.<br>Maybe if you google on the "Oracle Forms" keyword, you could find some more material</p>
    Francois

  • Issue of Free Sampling  to the customewith Excise duty[Paid by the Company]

    Dear All
    For free sample with no commercial value  the user want to raise invoice for plant on which excise duty is to be paid.In this senerio excise duty is to be born by company only  no recovery from the customer.
    I dont think it is possible in normal scenario of sales process,as accounting entry gets effected at billing even for cenvat also.
    Can you plz suggest me?

    You can make an attempt as follows:-
    First create a new tax code in FTXP with the same as that of the existing one which you are using.
    Next get a G/L Account from Finance which may be some dummy account.  Next go to OB40, select the transaction EXD and maintain the G/L Account for that newly created tax code which should flow in billing document.
    thanks
    G. Lakshmipathi

  • How to create the Sap script & Layout Set (wants sample code)

    Hi All ,
    Can you please provide me the step by step procedure
    to create the Sap script & Layout Set .(please provide sample
    code/links /docs for layout & print program).
    Regards
    Rahul

    hi,
    go through the following links  what i found to create sap script.
    http://www.thespot4sap.com/Articles/SAPscript_Introduction.asp
    http://abapliveinfo.blogspot.com/2008/01/free-sapscript-made-easy-46-book.html
    http://www.thespot4sap.com/articles/SAPscript_example_code.asp
    http://idocs.de/www3/cookbooks/sapscript/sapscript_1/docu.htm
    http://idocguru.com/www5/cookbooks/sapscript/sapscript_1/example.htm
    www.geocities.com/wardaguilar25/sapscript-tutorial.html
    http://logosworld.de/www3/cookbooks/sapscript/sapscript_8/docu.htm
    how to create a  scripts?give steps?
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=2969311
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=2902391
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=3205653
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=3111402
    http://www.sap-img.com/sapscripts.htm
    http://sappoint.com/abap/
    http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
    http://help.sap.com/saphelp_crm40/helpdata/en/16/c832857cc111d686e0000086568e5f/content.htm
    http://www.sap-basis-abap.com/sapabap01.htm
    http://www.sap-img.com/sapscripts.htm
    http://searchsap.techtarget.com/tip/1,289483,sid21_gci943419,00.html
    http://sap.ittoolbox.com/topics/t.asp?t=303&p=452&h2=452&h1=303
    http://www.sapgenie.com/phpBB2/viewtopic.php?t=14007&sid=09eec5147a0dbeee1b5edd21af8ebc6a
    Other Links

  • Free Sample items to be captured in separate G/L Account

    Hi all,
    I gone through the thread before posting this because of some confustion still i had in my mind.
    My cleint requirement is Finished products which normally processed in the sales order as TAN, some times given to customer as a "FREE SAMPLE" for a promotion purpose or during new product launch.
    While sending Material to the customer these "FREE SAMPLE", my client not collecting any amount.
    The invoce value is ZERO.
    But for accounting point of view they want to capture this FREE SAMPLE ITEMS. They have to show the government about the value of free sample distributed for a certain period.
    I tried to convince my client use it as a FREE GOODS, TANN item category, for FREE SAMPLE also.
    *But they want to capture both FREE GOODS and FREE SAMPLES in DIFFERENT G/L account.
    Can anyone suggest me.?
    Regards
    Harish

    Hi Harishkumar,
    What is the material code for the sample material? Is it the same as that of the finished goods? If it is different then you can create a separate material account asignment group.
    A.........Separate material code for the sample material.
    IMG - Sales and Distribution - Basic Functions - Account Assignment/Costing - Revenue Account Determination - Check Master Data Relevant For Account Assignment - Materials: Account Assignment Groups
    Execute & create a new one for sample material.
    In the material master of the sample material select the material account assignment group & in VKOA maintained the G/L account as per the material account assignment group.
    Note: In case of sample sale, the order type will not be relevant for billing. If at all you make it relevant for billing the system will create an accounting document when the invoice is saved because for the accounting entries to be hit an invoice should be created.
    B........Same material for the sample sale (finished goods material will be sent as a sample)
    In this case you will be having some entry in the material account assignment group which will be copied in the sales order. But in the sales order the material account assignment group is not changeable at the item level. When you create the invoice make sure the material account assignment group is changed so that when the invoice is saved the system will post the value in the relevant G/L account (specially created for free goods & sample goods).
    Also as it is a sample sale the sales Tax will not be applicable, so in the pricing you will only have the selling price condition type.
    1. Create a Z document type copying from FD document type in transaction code VOV8.
    2. Create a separate item category, copy from KLN & save as ZKLN........in the field billing relevance select option "A" so that system will allow invoice based on the delivery only...........in the field pricing select X - standard pricing.
    3. In transaction code VOV4 do the item category determination for the new document type.
    4. Maintain the copy control settings........sales order to delivery...........delivery to invoice.
    5. Create a new pricing procedure for sample sales & do the pricing procedure determination in OVKK. Check the document pricing procedure assignment.......assign C to the new sales order type.
    6. In transaction code VKOA maintain the relevant G/L account determination as per the sample account assignment group.
    Run a complete cycle & check the accounting entries. But this will be shown as an open item in transaction code FBL5N.
    With best regards,
    Allabaqsh G. Patil.
    Idhasoft Ltd.

  • How can I install the sample code in my pc?

    I have installed Oracle 8.17 on my pc, my operating system is Win2000. But now I cannot install the sample code on OTN. the requirement is winNT, is that the problem? I think Win2000 should be okay. Who can give me some advice, thank you in advance!!!

    Do what Ethmoid mentioned:  publish your site to a folder on your hard drive and open the html file with a text or html editor like the free TextWrangler.   That's the only way to view or edit the code created by iWeb when it publishes the website.
    However, there is a website design application, Flux, that can open a published iWeb site and view the code and webpage simultaneously.
    OT

  • GetXMLData in document viewer sample code

    Hi!
    Chapter 12 of the XML User Guide discusses invoking a method called getXMLData. Since it is not in any of the AMs, does anyone have experience writing this method? I have an xml report to pick up 2 parameters (just free-form text and no VOs) in the page and I need this method to pick up the 2 parameters.
    Any help is appreciated. Thanks

    Hi Steve
    Go to the following link:
    https://www.sdn.sap.com/irj/sdn/businessobjects-samples?rid=/webcontent/uuid/e02e0a54-6471-2b10-c99c-d66e07fab102&startindex=61.
    There you can see different sample codes.
    You need to refer to
    Java_Enterprise_BE115_Set_Multivalue-Parameters.zip
    Hope this helps you.
    Thanks
    Soni

  • Issuing free sample

    Free sample issued with movement type z01 enty is Free sample expenses A/C------Dr 500
                                                                                    To Inventory FG                                   500
    the above entry is for plant 1119 and when we cancel the dekvert entry coming Inventory FG A/C -
    Dr 500
                                                                                    To Free Sample Exp A/C    500
    Movement type is Z02
    when the same thing we are doing for plant 1128 Issuing Free sample through mov type z01 entry coming
    Free sample expenses A/C -
    Dr.500
       To Inventory FG A/c -
    500
    But when we canceling the enty through VL09 enty entry coming Inventory FG A/C -
    Dr 500
                                                                                    To COGS A/C -
    500
    Movement type is Z02
    I have checked OMWB for both the plant with material code and movement type Z01 Free sample expenses A/C code is maintain against ZAX with posting Key 81 & 91. Now what  shell I check.
    Regards
    Abhisekh

    Hi,
    Check the following.
    Whether in Plant 1119 entry was canceled using  VL09 transaction using Z02, If yes check the account modifier assigned to the mov.type - Z02.
    Also check whether you have assigned any valuation modifier to your valuation area in OMWD.
    Also check the GL assigned in OBYC transaction against the corresponding transaction event key and account modifier.
    Thanks & Regards,

  • Seperate GL Account in Delivery For FREE SAMPLE

    Hi All,
    I want to create separate GL account for the Free Sample  in the Delivery Accounting Document
    for the Finished Products
    Already 7920 is assigned in the GBB for COGS Account VAX combination
    But the same Material ie. Finished Products should be given for Free Sample for this scenario the GL should Different.
    Its my Client Requirement
    Thanks in Advance

    Solved
    1,Customized separate Movement type 
    2,Customized separate General Modifier ZAX
    3,Assigned ZAX for the valuation class finished goods 7920 in GBB by OBYC Transaction code 
    4,Customized separate Schedule  Line Categ and assigned tht Movement Type
    So, we got separate GL account in delivery by the different Movement Type.
    All done with integration with MM and FI
    Thanks again for your support Lakshmipathi

  • Help with displaying image using OpenGL ES sample code - image size prb

    I am using some sample code that currently displays an image 256x256 pixels. The code states the image size must be a power of 2. I have tried an image 289x289 (17^2) and it displays a square the same size as the 256x256 with a white background. I want an image 320x320 displayed. Should be obvious for people familiar with OpenGL. Here is the code which displays the image and rotates:
    - (void)setupView
    // Sets up an array of values to use as the sprite vertices.
    const GLfloat spriteVertices[] = {
    -0.5f, -0.5f,
    0.5f, -0.5f,
    -0.5f, 0.5f,
    0.5f, 0.5f,
    // Sets up an array of values for the texture coordinates.
    const GLshort spriteTexcoords[] = {
    0, 0,
    1, 0,
    0, 1,
    1, 1,
    CGImageRef spriteImage;
    CGContextRef spriteContext;
    GLubyte *spriteData;
    size_t width, height;
    // Sets up matrices and transforms for OpenGL ES
    glViewport(0, 0, backingWidth, backingHeight);
    glMatrixMode(GL_PROJECTION);
    glLoadIdentity();
    glOrthof(-1.0f, 1.0f, -1.5f, 1.5f, -1.0f, 1.0f);
    glMatrixMode(GL_MODELVIEW);
    // Clears the view with black
    //glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
    glClearColor(255, 255, 255, 1.0f);
    // Sets up pointers and enables states needed for using vertex arrays and textures
    glVertexPointer(2, GL_FLOAT, 0, spriteVertices);
    glEnableClientState(GLVERTEXARRAY);
    glTexCoordPointer(2, GL_SHORT, 0, spriteTexcoords);
    glEnableClientState(GLTEXTURE_COORDARRAY);
    // Creates a Core Graphics image from an image file
    spriteImage = [UIImage imageNamed:@"bottle.png"].CGImage;
    // Get the width and height of the image
    width = CGImageGetWidth(spriteImage);
    height = CGImageGetHeight(spriteImage);
    // Texture dimensions must be a power of 2. If you write an application that allows users to supply an image,
    // you'll want to add code that checks the dimensions and takes appropriate action if they are not a power of 2.
    if(spriteImage) {
    // Allocated memory needed for the bitmap context
    spriteData = (GLubyte *) malloc(width * height * 4);
    // Uses the bitmatp creation function provided by the Core Graphics framework.
    spriteContext = CGBitmapContextCreate(spriteData, width, height, 8, width * 4, CGImageGetColorSpace(spriteImage), kCGImageAlphaPremultipliedLast);
    // After you create the context, you can draw the sprite image to the context.
    CGContextDrawImage(spriteContext, CGRectMake(0.0, 0.0, (CGFloat)width, (CGFloat)height), spriteImage);
    // You don't need the context at this point, so you need to release it to avoid memory leaks.
    CGContextRelease(spriteContext);
    // Use OpenGL ES to generate a name for the texture.
    glGenTextures(1, &spriteTexture);
    // Bind the texture name.
    glBindTexture(GLTEXTURE2D, spriteTexture);
    // Speidfy a 2D texture image, provideing the a pointer to the image data in memory
    glTexImage2D(GLTEXTURE2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GLUNSIGNEDBYTE, spriteData);
    // Release the image data
    free(spriteData);
    // Set the texture parameters to use a minifying filter and a linear filer (weighted average)
    glTexParameteri(GLTEXTURE2D, GLTEXTURE_MINFILTER, GL_LINEAR);
    // Enable use of the texture
    glEnable(GLTEXTURE2D);
    // Set a blending function to use
    glBlendFunc(GL_ONE, GLONE_MINUS_SRCALPHA);
    // Enable blending
    glEnable(GL_BLEND);
    // Updates the OpenGL view when the timer fires
    - (void)drawView
    // Make sure that you are drawing to the current context
    [EAGLContext setCurrentContext:context];
    glBindFramebufferOES(GLFRAMEBUFFEROES, viewFramebuffer);
    glRotatef(direction * 3.0f, 0.0f, 0.0f, 1.0f);
    glClear(GLCOLOR_BUFFERBIT);
    glDrawArrays(GLTRIANGLESTRIP, 0, 4);
    glBindRenderbufferOES(GLRENDERBUFFEROES, viewRenderbuffer);
    [context presentRenderbuffer:GLRENDERBUFFEROES];
    }

    +I am using some sample code that currently displays an image 256x256 pixels. The code states the image size must be a power of 2. I have tried an image 289x289 (17^2)+
    The phrase "a power of 2" refers to 2^x so your choices above 256 are 512, 1024 etc.
    The texture size has nothing to do with the displayed size - OGL will stretch or shrink your texture to fit the size of the polygon you're displaying it on. I recommend you scale your image to 256x256 and work on make the polygon the size you want and work on your image quality from there.
    You can work on the size or orientation of the poly surface to make it larger but OGL doesn't support setting a model to a screen image size or anything like that. That sounds more like a Quartz or CoreGraphics kind of thing if you want to set an exact screen size to the pixel.
    HTH,
    =Tod
    PS You can display your code correctly by using { code } (without the spaces) on either side of your code block.

  • Any Sample code for recording+playing streaming live video?

    Hi all,
    I'm new to FMS3,
    I wanna create a page for webcam live recording and playing,
    is there any sample code for reference (i can only found the code
    for live recording but do not have live record+play)?
    Many thanks.
    I have installed FMS3.0 and FME2.0 on my machine, so is it
    capable to do so?
    Many thanks.

    Thanks for your reply, but I have another question:
    My live file (test.flv) is recorded under this path:
    C:\xxxx\FMS3\applications\path\streams\_definst_\
    But seems FMS3 can only play video under this path:
    C:\xxxx\FMS3\applications\vod\media\
    My only success is on this source path rtmp://ip/vod/test in
    the component FLVPlayBack.
    So is it happen to all free version of FMS3 or I have to type
    sth more?
    Many thanks.

  • Cannot run OCCI sample code.. cant find Dbmanager.h

    Hi , I am trying to connect to my oracle 10g database and i am getting an error. I downloaded instantclient-sdk-win32-10.2.0.3-20061115.zip from
    [http://www.oracle.com/technetwork/topics/winsoft-085727.html| http://www.oracle.com/technetwork/topics/winsoft-085727.html]
    Then I used the following ever so popular code
    #include <DbManager.h>
    #include <iostream>
    using namespace std;
    using namespace oracle::occi;
    const string sqlString("select empno, ename from employee");
    int main(int argc, char **argv)
    if (argc != 2)
    cerr << "\nUsage: " << argv[0] << " <db-user-name>\n" << endl;
    exit(1);
    // Initialize OracleServices
    DbManager* dbm = NULL;
    OracleServices* oras = NULL;
    Statement *stmt = NULL;
    ResultSet *resultSet = NULL;
    try
    // Obtain OracleServices object with the default args.
    dbm = new DbManager(userName);
    oras = dbm->getOracleServices();
    // Obtain a connection
    Connection * conn = oras->connection();
    // Create a statement
    stmt = conn->createStatement(sqlString);
    int empno;
    string ename;
    // Execute query to get a resultset
    resultSet = stmt->executeQuery();
    while (resultSet->next())
    empno = resultSet->getInt(1); // get the first column returned by the query;
    ename = resultSet->getString(2); // get the second column returned by the query
    if (resultSet->isNull(1))
    cout << "Employee Number is null... " << endl;
    if (resultSet->isNull(2))
    cout << "Employee Name is null..." << endl;
    cout << empno << "\t" << ename <<endl;
    // Close ResultSet and Statement
    stmt->closeResultSet(resultSet);
    conn->terminateStatement(stmt);
    // Close Connection and OCCI Environment
    delete dbm;
    catch (SQLException& ex)
    if (dbm != NULL)
    dbm->rollbackActions(ex, stmt, resultSet); // free resources and rollback transaction
    return 0;
    But the problem is I cannot fint find DBManager.h. I read on a certain post we could use <occi.h> instead of dbmanager but then i get an error with the types
    Dbmanager,OracleService and ResultSet. Can anyone please help me out , The code wont even build i am using Visual studio 2010 and i included all the header files.
    Did the i download the wrong package or what am i doing wrong ????

    This website has some sample codes that I want to run, but I'm getting errors. For the very first sample code, I removed ; in line 1 and it reduced number of errors. I can't post image because MS has to verify my account first.
    Someone told me that this is missing MFC and main method. I googled and MFC is like SKD made by users. So, my guess is that I need to find the MFC this person used and include them as like #include ".h" and have int main(). Is this true? If it is
    true where can I get the MFC? and how do I know which MFC this person used?
    MFC stand for  Microsoft Foundation Class Library is a library that wraps portions of the Windows API in C++ classes, including functionality that enables them to use a default application framework. To work on MFC you have to download Visual
    Studio . As you are new to window So i will suggest you to start with VS2008 onward .And Before you start working with MFC have some fundamental of Win32 As well.
    Thanks
    Rupesh Shukla

  • API or Sample code to monitor the temperature of Intel processors

    Is there any free(no license or trail) API or sample code for temperature monitoring which can able to monitor Intel single Core, dual Core and quad Core processors temperature ? 
    http://tnvbalaji.com
    http://in.linkedin.com/in/tnvbalaji

    Hi,
    Would you mind letting me know the result of the suggestions? If you need further assistance, feel free to let me know. I will be more than happy to be of assistance.
    Best regards,
    Jesse
    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

  • Adding a free sample button to the large product layout?

    hello guys
    im trying to figure out how to add a free sample button to the large product layout
    the site is a tiles shop http://ceramic-planet2.businesscatalyst.com/
    and we want to give the customer the option of ordering a sample from the large layout of the product they are viewing.
    A sample button underneath the add to cart button that is free but still charges a few $ for p&p.
    so I figure the sample button would be a add to cart tag of a seperate product added to the layout of the main product it is based on.
    any ideas how I can link a new different product to a product layout.
    plus not every product will need this button so is there a way of adding it to certain products? im thinking maybe using the custom tag? can I link products to a custom tag?
    if im not being clear I apologise but hopefully its simples
    Dave

    thanks for the help so far Mihai_Tica
    almost there Ive played with the cutom template like you said
    I made a template called samplebutton which has a tag_name_nolink and a add to cart button. Thats it nothing fancy.
    every product is going to have its very own sample button so I couldn't just add this custom template to the large template as it would only work for that one item I linked it to.
    so I added the module code with added custom template to the custom tag field for the large product and added it to the page {tag_custom3)  thus able to add different sample products to different large products.
    and it looks like its going to work.......until I add to cart and the product reverts back to small product template take a look http://ceramic-planet2.businesscatalyst.com/bathroom-tiles/cardiff-marron
    any ideas why when I add to cart the product reverts to small product template and how I can stop this from happening?

  • How to Delete a Specific Cell in a Matrix + plz Give sample code for Lost F

    hello there !!!!
    i m in Great Trouble please help me out..
    i have to search for a specific Column n then i have to validate that portion, similarly after validating i have to add update delete all the fuction apply... so please help me i m very upset.
    Public Sub HandleEventts_Allowance(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef EventEnum As SAPbouiCOM.BoEventTypes, ByRef BubbleEvent As Boolean)
            Try
                Dim Count As Int32
                If FormUID.Equals("Allowance") Then
                    If (pVal.BeforeAction = True) And (pVal.ItemUID = "1") And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK) Then
                        If pVal.Row = 0 Then
                            'BubbleEvent = False
                        End If
                        o_Matrix = SBO_Application1.Forms.Item(FormUID).Items.Item("MatAllow").Specific
                        Count = o_Matrix.RowCount()
                        SBO_Application1.MessageBox("Matrix Count is " & o_Matrix.RowCount)
                        Validate(pVal, EventEnum, FormUID, BubbleEvent)
                    End If
                End If
            Catch ex As Exception
                SBO_Application1.MessageBox(ex.Message)
            End Try
        End Sub
        Public Sub Validate(ByRef pval As SAPbouiCOM.ItemEvent, ByRef EventEnum As SAPbouiCOM.BoEventTypes, ByVal FormUID As String, ByRef BubbleEvent As Boolean)
            Dim Row, ii As Integer
            o_Matrix = SBO_Application1.Forms.Item(FormUID).Items.Item("MatAllow").Specific
            o_Matrix.FlushToDataSource()
            Try
                For Row = 2 To o_Matrix.RowCount
                    StrName = Convert.ToString(DBtable.GetValue("CardCode", Row - 1)).Trim()''' i got Error over there n rest of my code is also not working pls...
                    StrUId = Convert.ToString(DBtable.GetValue("U_AlwID", Row - 1)).Trim()
                    StrEnter = Convert.ToString(DBtable.GetValue("U_SupEnter", Row - 1)).Trim()
                    StrExist = Convert.ToString(DBtable.GetValue("U_SupExist", Row - 1)).Trim()
                    If Row - 1 < DBtable.Rows.Count - 1 Or (Not (StrName.Equals(String.Empty) And StrUId.Equals(String.Empty) And (StrEnter.Equals(String.Empty) Or StrExist.Equals(String.Empty))) And (Row - 1 = DBtable.Rows.Count - 1)) Then
                        If (Not StrName.Equals(String.Empty)) And ((StrUId.Equals(String.Empty) Or StrEnter.Equals(String.Empty)) Or StrExist.Trim.Equals(String.Empty)) Then
                            SBO_Application1.StatusBar.SetText("Invalid values provided!Blank values not vllowed", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
                            BubbleEvent = False
                            Exit Sub
                        End If
                        For ii = Row To DBtable.Rows.Count - 1
                            If Convert.ToString(DBtable.GetValue("ColName", ii)).Trim().Equals(StrName.Trim()) Then
                                SBO_Application1.StatusBar.SetText("Invalid Allowance ID: Duplication Not Allowed", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
                                oForm.Mode = SAPbouiCOM.BoFormMode.fm_UPDATE_MODE
                                BubbleEvent = False
                                Exit Sub
                            End If
                        Next
                        If CDbl(StrName) < 0 Then
                            SBO_Application1.StatusBar.SetText("Invalid values provided!Blank values not vllowed", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
                            BubbleEvent = False
                            Exit Sub
                        End If
                    End If
                Next Row
            Catch ex As Exception
                SBO_Application1.MessageBox(ex.Message)
            End Try
        End Sub

    Hello there
    sir i want to Add Update and delete these three basic operation onto the Matrix, Sir u game me a Sample code of Delete a specific Column...
    Sir can u do me a favour pls leave every thing n just told me how to update a matrix ,like i have to fill the matrix field through the DATABASE table now i want to update the DataBase table from the matrix..
    i just only know thta i have to fill back database table with the help of FLUSHTODATABASE()
    here is my Sample Code...n i have to update in the validate portion...
    Public Sub HandleEventts_Allowance(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef EventEnum As SAPbouiCOM.BoEventTypes, ByRef BubbleEvent As Boolean)
            Try
                Dim oCellValue As SAPbouiCOM.EditText
                If FormUID.Equals("Allowance") Then
                    If (pVal.ItemUID = "MatAllow") Then
                        If pVal.Row = 0 Then Exit Sub
                        o_Matrix = SBO_Application1.Forms.Item(FormUID).Items.Item("MatAllow").Specific
                        If (pVal.Row > o_Matrix.RowCount) Then Exit Sub
                        oForm = SBO_Application1.Forms.Item(FormUID)
                        If (pVal.ItemUID = "1" Or EventEnum = SAPbouiCOM.BoEventTypes.et_CLICK) Then
                            o_Matrix = SBO_Application1.Forms.Item(FormUID).Items.Item("MatAllow").Specific
                            If pVal.ColUID = "ColName" And pVal.BeforeAction = True Then
                                If pVal.Row = 0 Then Exit Sub
                                oCellValue = CType(o_Matrix.Columns.Item(pVal.ColUID).Cells.Item(pVal.Row).Specific(), SAPbouiCOM.EditText)
                                If (oCellValue.Value.Trim().Equals(String.Empty) And o_Matrix.RowCount <> pVal.Row) Then
                                    SBO_Application1.StatusBar.SetText("Invalid Allowance ID: Blank Value Not Allowed", )
                                    oCellValue.Active = True
                                    BubbleEvent = False
                                    Exit Sub
                                End If
                            End If
                        End If
                    End If
                End If
                Validate(pVal, EventEnum, FormUID, BubbleEvent)
            Catch ex As Exception
                SBO_Application1.MessageBox(ex.Message)
            End Try
        End Sub
    Public Sub Validate(ByRef pval As SAPbouiCOM.ItemEvent, ByRef EventEnum As SAPbouiCOM.BoEventTypes, ByVal FormUID As String, ByRef BubbleEvent As Boolean)
            Dim str, str1 As String
            Dim checkbox1, Checkbox2 As SAPbouiCOM.CheckBox
            Dim o_Matrix As SAPbouiCOM.Matrix
            Dim Sum As Integer
            Dim oRecordset As SAPbobsCOM.Recordset
            Dim Container As Integer
            Dim Count As Int32
            o_Matrix = SBO_Application1.Forms.Item(FormUID).Items.Item("MatAllow").Specific
            oRecordset = o_CompanyObj.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
            Try
                For Count = 0 To DBtable.Rows.Count - 1
                    CodeFill = Convert.ToString(DBtable.GetValue("Name", Count).Trme())
                    NameID = Convert.ToString(DBtable.GetValue("ColUID", Count).Trim())
                    Price = Convert.ToString(DBtable.GetValue("ColPrice", Count).Trim())
                    Quantity = Convert.ToString(DBtable.GetValue("ColQuant", Count).Trim())
                    Total = Convert.ToString(DBtable.GetValue("ColTotal", Count).Trim())
                    checkbox1 = o_Matrix.Columns.Item("ColSEnter").Cells.Item(Count).Specific
                    Checkbox2 = o_Matrix.Columns.Item("ColSExist").Cells.Item(Count).Specific
                    If (checkbox1.Checked = True) And (Checkbox2.Checked = True) Then
                        Dim Sql As String
                        Sql = "Update [@Supplier] Set U_Price=' " & Price & " ',U_ID=" & NameID & "Where Name ='" & CodeFill & " '"
                        oRecordset.DoQuery(Sql)
                    End If
                Next Count
                SBO_Application1.MessageBox("Record was Updated")
            Catch ex As Exception
                SBO_Application1.MessageBox(ex.Message)
            End Try
        End Sub

Maybe you are looking for