Going in loop when i leave the cell of matrix

hi all,
i am doing following code. but when i leave that cell its going in loop and hang the system
If (pVal.ColUID = ("V_10") Or pVal.ColUID = ("V_3")) And pVal.EventType = SAPbouiCOM.BoEventTypes.et_VALIDATE And pVal.Before_Action = True Then
                    Dim oMat As SAPbouiCOM.Matrix
                    Dim oPkgsize, oPks As SAPbouiCOM.EditText
                    Dim test As SAPbouiCOM.EditText
                    'Dim oEditSample, EditUpperVal, EditLowerVal As SAPbouiCOM.EditText
                    'Dim k As Integer
                    'Dim EntryExit As Boolean = False
                    'Dim val, SelectStr, splt1, splt2, splt, splt3, splt4 As String
                    'Dim FinalVal As Integer
                    'Dim oRecordset6 As SAPbobsCOM.Recordset
                    Try
                        oForm = SBO_Application.Forms.ActiveForm()
                        oMat = oForm.Items.Item("28").Specific
                        oPkgsize = oMat.Columns.Item("V_10").Cells.Item(pVal.Row).Specific
                        oPks = oMat.Columns.Item("V_3").Cells.Item(pVal.Row).Specific
                        TotalPks = Convert.ToDouble(oPkgsize.Value.ToString) * Convert.ToDouble(oPks.Value.ToString)
                        'test.Value = TotalPks
here is going in loop>>>  oMat.Columns.Item("V_14").Cells.Item(pVal.Row).Specific.value = TotalPks.ToString
                        'oForm.DataSources.DBDataSources.Item("@SCHCON1").SetValue("U_PKGQTY", pVal.Row, "0.0")
                        'oForm.DataSources.DBDataSources.Item("@SCHCONT").SetValue("U_REMARKS", 0, TotalPks.ToString)
                        'oForm.DataSources.DBDataSources.Item("@SCHCON1").SetValue("U_BoxNo1", pVal.Row, TotalPks.ToString)
                    Catch ex As Exception
                    End Try
                End If
plz help me..
thanks in advance

Hi
If it is not a system form then use datasource for setting values , try the following code
If (pVal.ColUID = ("V_10") Or pVal.ColUID = ("V_3")) And pVal.EventType = SAPbouiCOM.BoEventTypes.et_VALIDATE And pVal.Before_Action = False Then
                    Dim oMat As SAPbouiCOM.Matrix
                    Dim oPkgsize, oPks As SAPbouiCOM.EditText
                    Dim test As SAPbouiCOM.EditText
                    'Dim oEditSample, EditUpperVal, EditLowerVal As SAPbouiCOM.EditText
                    'Dim k As Integer
                    'Dim EntryExit As Boolean = False
                    'Dim val, SelectStr, splt1, splt2, splt, splt3, splt4 As String
                    'Dim FinalVal As Integer
                    'Dim oRecordset6 As SAPbobsCOM.Recordset
                    Try
                        oForm = SBO_Application.Forms.ActiveForm()
                        oMat = oForm.Items.Item("28").Specific
                        oPkgsize = oMat.Columns.Item("V_10").Cells.Item(pVal.Row).Specific
                        oPks = oMat.Columns.Item("V_3").Cells.Item(pVal.Row).Specific
                        TotalPks = Convert.ToDouble(oPkgsize.Value.ToString) * Convert.ToDouble(oPks.Value.ToString)
                        oForm.DataSources.DBDataSources.Item("@SCHCON1").Clear()
                          oMat .FlushToDatasource()
                        oForm.DataSources.DBDataSources.Item("@SCHCONT").SetValue("U_REMARKS", pVal.Row -1 , TotalPks.ToString)
                       oMat .LoadFromDatasource()
                    Catch ex As Exception
                    End Try
                End If
Hope this helps
Regards
Arun

Similar Messages

  • How can i extend the battery life of my iphone 4s? when i left it in standby mode when i saw in 5hours it drains to 5%, i thought when i leave the phone the percent is still the same. whant am i goin to do?

    How can i extend the battery life of my iphone 4s? when i left 50% it in standby mode when i saw in 5hours it drains to 5% i saw 45%, i thought when i leave the phone the percent is still the same. whant am i goin to do?

    I was not aware of the fact one could use ringtones as alarms, this will suffice! Although I foresee some very awkward times as the sound does not stop once I respond to the reminder (it keeps going for good five - ten seconds after I "stop" the reminder), but it's better than missing it altogether!
    Thank you very much!
    Regarding the Alarmed app, doesn't it have to be running to actually remind you?
    -Modular747: I don't know anyone who actually reads the terms of service agreement, those things are usually up to thirty, small print pages full of legal jargon. Rules, I do read - not the legal documents (also they often contradict the laws in my country, but that's a whole different story).
    I agree with you - the average customer support consultant mostly cares about keeping his job and earning his salary (don't we all?) and thus racking up completted tasks (i.e. getting rid of customers as fast as possible - in a good mood). The "threat" none the less is real, if a cell phone causes me more trouble than it is worth, I will indeed throw it away (I have done so before) - and recommend a different brand to anyone willing to listen.
    Don't get me wrong, I love Apple and I've been faithfully using and recommending their producs for twenty years now, not because of fanboyism, but because they earned it. This calendar issue, however, is like a toaster that doesn't automatically eject the toast at the set time. I see it as a major flaw and after googling around a bit I see that it's been around since at least 2007 (THAT'S SEVEN YEARS!!) so I strongly believe they are aware of this problem by now, but are choosing to ignore it for some mysterious reason and it really ****** me off.
    I will send the feedback but based on my observations I suspect the Send button is merely a cleverly disguised Delete button.

  • Hello, I have a Toshiba netbook with i-tunes loaded, when I go into import settings and choose MP3,instead of AAC, it defaults back to AAC when I leave the diaglogue box.

    Hello, I have a Toshiba Netbook that I just put i-tunes on and when I go into import settings, I want to change it to MP3, but when I leave the dialogue box, it defaults back to AAC. What am I missing?   Thanks.

    I wonder if I'm missing that OK because the screen on this netbook is smaller  than a laptop and only supports 1024 X 600. I can't scroll that box up any, and can't grab the top and move it up. So when I exit that box I have to click the x in the top right corner.
    Acck. Yes, that'll be the issue. There's an OK and a Cancel down at the bottom of the screen.
    This is going to seem a weird suggestion, but it's the only thing that is springing to mind at the moment ... Do you know someone with an external monitor, or a TV that supports PC input? If so, try temporarily attaching the netbook to that. Can you do the preference change on the larger monitor?

  • How can you keep your iPhone 4 (using it as my car's iPod) staying on the Audible app?  When I leave the car and return to continue hearing a book, it has switched to iTunes.

    How can you keep your iPhone 4 (using it as my car's iPod) staying on the Audible app?  When I leave the car and return to continue hearing a book, it has switched to iTunes.

    The first time an iPhone is connected to iTunes that is used to sync with another iPhone or iOS device, you are prompted to transfer the backup for the other iPhone or iOS device or to set up the iPhone as a new iPhone.
    The former does as provided - it transfers the backup for the other iPhone or iOS device to the iPhone replacing all data on the iPhone that is included with the backup being transferred. The latter does nothing allowing you to make your various selections for the iPhone sync preferences with iTunes.
    This is designed to be done right away with a new iPhone.
    If you don't have a backup for the iPhone with iTunes on your computer and don't have an iCloud backup that hasn't been updated since choosing to transfer the backup for your iPod Touch to the iPhone, the data that was on the iPhone is gone.

  • Rules applied to multiple cells trigger color changes when any of the cells

    "Rules applied to multiple cells trigger color changes when any of the cells meet the rule’s condition." That's what Help says, but when I follow the directions, it doesn't work. This is in Numbers 08.
    I have a table where the contents of one column are either "YES" or "NO", depending on formulas using variables from other cells. If YES, I want the fill of that cell and that of two adjacent cells to change from white to green. I select all three cells and use conditional format rules for "text contains:" YES, then choose my fill color. When I return to the table and introduce values for the variables that trigger the rule, only the cell in the YES/NO column changes to green; the other two remain white.
    While I am spreadsheet challenged, I usually can follow directions as plain as those in Help, but it's not working. I couldn't find anything in the discussions after an hour of searching. Is this a known problem or am I just stupid?

    For what it's worth, that's the way I read that line in the User Guide as well. What it actually appears to mean, though is 'Rules applied to multiple cells apply independently to each of the cells."
    Here's a workaround for your three adjacent columns. Long, but fairly simple steps.
    Add a second table to the sheet (Table 2).
    Resize the second table to one column wide and as many rows as you want to apply the conditional format to.
    Set the width of the column to the same width as the three columns you want to highlight, and the row height(s) to match the rows.
    Format to table to have NO Header or Footer row or column.
    Use the Wrap Inspector to uncheck "Object causes wrap"
    In the first top cell of Table 2, enter an = sign, then Click on Table 1 in the sidebar, Click on the first cell that will hold YES or NO.
    Fill the formula down the rest of Table 2.
    With all cells in Table 2 selected, use the Cell Format inspector to set the 'text contains yes' rule and the conditional fill colour for these cells.
    Test the conditional formating by introducing values into Table 1.
    Click on Table 1 in the sidebar, then use the Table inspector to set Cell Fill to 'none'.
    Click on Table 2 in the sidebar, then drag that table onto table 1 aligning it to cover the cells in which the conditional formating is to appear.
    When positioned (and still selected), go to the Arrange menu and Send Backward to move Table 2 behind the (transparent) cells in Table 1.
    With Table 2 still selected, click on the Cell Borders color well and set the Opacity of the borders to 0%.
    Click the Text inspector and set the Text colour Opacity for Table 2 to 0%.
    Regards,
    Barry

  • Why my screen is keeping black screen when i leave the mac book with few hr

    when i leave the mac book pro on a few hours, it kept black screen. i try to press any key and open button, it kept no response. after 3 mins, i press open button again. the mac book appear off. so i press the open button again , it open.
    do i need to change a new mac book pro in this situation? because this is my new computer, i can change a new one within 10 days.
    plz give me some suggestion, thank you!!!

    In actual fact this seems a bigger problem than I thought. Linking the two computers via the Thundernolt cable and selecting cmd F2 no longer shares the screen at all and Apple say it may not be able too in Mointain Lion - What are they playing at, hundreds of customers link computers together and share the screens - Lets hope they are wrong and tell us what we need to do other than move back to Windows.

  • I can not open firefox when I leave the program is tells me that firefox is still running and will not open

    #
    I can not open firefox when I leave the program is tells me that firefox is still running and will not open
    # Details
    BoldItalicInsert a link...

    Because Firefox sucks that way. I have the same problem. Royal pain in the @$$. I have to use the task manager to duck out of it, or you have to w8 & count to 10...lol. Stupid program.

  • Why does my iphone loss WIFI connection when I leave the room? When other mobile devices stay connected?

    Why does my IPhone loss WIFI connection when I leave the room? When other mobile devices stay connected?
    I can not send text messages to other IPhones if I do not have wifi or 3G on, the texts are sent as emails.

    Hey Linders1987,
    Welcome to the Apple Support Communities! I understand that you are experiencing issues with Wi-Fi on your iPhone 5. The following resource may provide a solution:
    iOS: Troubleshooting Wi-Fi networks and connections - Apple Support
    http://support.apple.com/en-us/TS1398
    Wi-Fi disconnects or signal strength is less than expected
    Move closer to the Wi-Fi router (access point).
    Check for sources of potential interference.
    Remove any case, stand, or other accessories from your iOS device and see if signal strength improves.
    Reset network settings by tapping Settings > General > Reset > Reset Network Settings.
    Note: This will reset all network settings including
    - previously connected Wi-Fi networks and passwords
    - recently used Bluetooth accessories
    - VPN and APN settings
    Thanks,
    Matt M.

  • Skype bugs out when someone leaves the call in gro...

    Hi all,
    Lately everybody in our groupchat has been having issues when someone leaves the call.
    When they leave, it looks like the whole call has been disbanded, but the people that didn't leave can't see the call. 
    Which concludes to: Nobody can leave the call, we have to exit skype completely and relog.
    Does anyone else have this issue and does someone know how to fix this?
    Thanks
    - Marvin
    EDIT: When this happends, we can go into another call while being in the groupschat call.

    It is a bug and there is no fix as of yet, other than loading another OS (downgrading.)
    1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
    2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you!

  • Why do I get the 'critical stop' sound when I leave the firefox browser - doesn't happen with explorer?

    Why do I get the 'critical stop' sound when I leave the firefox browser. This doesn't happen when using internet explorer?

    Do you mean that there is a problem with closing Firefox?
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Try to use "Firefox > Exit" (Windows: Firefox/File > Exit; Mac: Firefox > Quit Firefox; Linux: Firefox/File > Quit) to close Firefox if you are currently doing that by clicking the close X on the Firefox title bar.

  • Dealing with Person column when someone leaves the organization?

    We have a list which has a person (people picker) column.  This column pulls from (is validated against) several possible sources including Active Directory.  If a name cannot be found when adding/updating a record then the following error message
    appears in red just below that field:
    > No exact match was found. Click the item(s) that did not resolve for more options.
    We have a particular record we are trying to update.  Per security policy former employees *must* be deleted from AD.  Now, however, that the person in the person column of this record has left it is impossible to update his record due to the mentioned
    error message.  His name won't validate even though he still exists in the User Information List.
    How can this be overcome?  Is it a configuration issue?  It must be possible to update the record of a person who has been deleted from AD; otherwise, this would present major issues to organizations.  We are considering using text for person
    names instead of system-validated person columns and clearly that would not be Microsoft's intent.
    Question originally posted on: 
    http://sharepoint.stackexchange.com/questions/103803/dealing-with-person-column-when-someone-leaves-the-organization/103949#103949
    The given answer indicates an issue with our security policy, but I'm told our policy of deleting (not disabling) AD accounts is fairly standard in the industry.  Is Sharepoint not properly equipped to deal with deleted AD accounts?  If so, it
    would seem to render the people picker useless.

    I would agree, this is an issue with the security policy (simply disabling users is also quite common, e.g. in case they return to the organization you can simply reactivate their account). But are you also removing the person from the User Information
    List within SharePoint?
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • My Macbook Pro goes to sleep when I connect the magsafe adapter.

    Hi, if I am using my MBP on battery and then 1) close the lid to put it to sleep, 2) later connect it to the magsafe and then 3) try to wake it up (in that order only, and more frequently if in the login screen), it powers up for a second then goes back to sleep. Not always but frequently. It takes about 10 seconds to power down, and then once asleep, it takes about 5 seconds before it will wake up again. After that, everything is fine. My only workaround seems to be to wake the computer first, wait about 10 seconds and then connect the magsafe. Has anyone else experienced this? I never noticed this before I upgraded to Mountain Lion.

    This very well could be the same issue as below.  Please read the full copy of the post and see if the behavior matches.  What's happeing is that if you have this update installed, whenever you plug or unplug the power adapter to the laptop, the system will wake from sleep and then go back to sleep if the lid is closed.  What you're doing is plugging it in which causes it to wake up, then when you finally open it a couple of seconds later, you're catching it as it's going back to sleep and once it does that it then sees that you opened it and wakes back up again.  Either plug it in and wait for that wake/sleep and then open it or open it and then plug it in.
    Post about the problem in detail:
    This is a problem with all 2012 MacBook Pros that have applied the update DL1609 via Software Update.  This update is called MacBook Air and MacBook Pro Update 2.0.  The only fix that exists for this is to reinstall OSX and just not install this update when it shows in the available updates list in the AppStore.  Just hide it until this issue is fixed by Apple.
    If your OSX 10.8.2 version is anything after version (12C60) then you will have this problem.  The problem is as follows.  With the system asleep with clamshell closed, plugging and unplugging the power cable causes the system to wake up and go back to sleep.  Additionally, leaving the system plugged into power for over 4 hours will cause the system to go into hibernation, but only when plugged in.  If it's not connected to AC power while sleeping for that long, it will not enter hibernation.
    Please call Apple and complain about this problem.  I have been working with them for over a month and a half trying to get them to fix this and it's a major hand-holding process because they didn't initially understand the issue.  Add to that the fact that they insisted that this problem doesn't exist and it just made it that much harder to get them to see the issue.
    You need to call them AppleCare and let them know you're having this problem.  Along with that, email the rep you're working with links to every Apple Support Forum thread you can find on this.  Trust me, there are several with this same exact problem.

  • Is there any way to keep streaming the audio portion of a video podcast when I leave the Podcast app?

    If I leave the Podcast app while playing an audio podcast, I can still hear the audio. However, if I leave a video podcast to do something else like answer emails, the audio portion doesn't keep playing. This means that if I have a video podcast going, I can't do anything else with my iPad while it's playing. I multitask all the time while playing my podcasts and then come back to the video if it sounds like there is something interesting to see. This one glitch unfortunately makes the Podcast app unusable for me. I'll keep using the Downcast app for a while longer because of this but if Apple fixes this problem, I'll be back since the rest of the app looks great.

    Thanks Kiwi. It doesn't make sense to me though, as that would seem to be only a simple change in the operating system, not a hardware 'necessity'.

  • Smartview error when submitting/refreshing: "The cell or chart that you are trying to change is protected"

    Hello! Users are trying to submit data within a form, but they get the following error message:
    <<The cell or chart that you are trying to change is protected and therefore read-only. To modify a protected cell or chart, first remove protection using the Unprotectect Sheet command (Review tab, changes group). You may be prompted for a password.>>
    They get the same error when they try to refresh the form.
    The form is part of a task-list, but is not supposed to be protected. Actually they open the form from an empty excel workbook, so I don't understand what's the difference with other forms, where they don't have this message.
    Do you have an idea of what is triggering it?

    Users were in Smartview 11.1.2.1. The issue described above has been identifed as a software defect an it has been logged as bug 16017903 by Oracle. To solve this issue download and install Patch 16238382, or alternatively unistall Smartview and install version 11.1.2.2.310.

  • JTable Cell grays out when I click the cell below (JList editor & renderer)

    Click on any cell, then click on the cell immediately below.. and the first cell u clicked on goes gray... After repaints and stuff, it stills stays gray
    * TimetableCellGui.java
    * Created on April 12, 2007, 7:21 PM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package timetable.gui;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Font;
    import java.util.ArrayList;
    import java.util.EventObject;
    import javax.swing.DefaultListModel;
    import javax.swing.JList;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.event.CellEditorListener;
    import javax.swing.table.TableCellEditor;
    import javax.swing.table.TableCellRenderer;
    * @author jay
    public class TimetableCellGui extends JList implements TableCellRenderer, TableCellEditor {
         * Creates a new instance of TimetableCellGui
        public TimetableCellGui() {
            this.setFont(new Font("Nice",Font.PLAIN,10));
            this.setForeground(new Color(150,150,250));
        private static String courseFilter = "";
        private static String roomFilter = "";
        private static boolean filterCourse = false;
        private static boolean filterRoom = false;
        public static String getCourseFilter() {
            return courseFilter;
        public static String getRoomFilter() {
            return roomFilter;
        public static boolean isFilterCourse() {
            return filterCourse;
        public static boolean isFilterRoom() {
            return filterRoom;
        public static void setCourseFilter(String c) {
            courseFilter = c;
        public static void setFilterCourse(boolean f) {
            filterCourse = f;
        public static void setFilterRoom(boolean filter) {
            filterRoom = filter;
        public static void setRoomFilter(String r) {
            roomFilter = r;
        public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
            if(value == null) {
                return null;
            } else {
                DefaultListModel model = new DefaultListModel();
                String addition = "some addition";
             model.add(addition);          
                model.add(addition);                
                this.setModel(model);
                return new JScrollPane(this);
        public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
            if(value == null) {
                return null;
            } else {
                DefaultListModel model = new DefaultListModel();
                String addition = "some addition";
             model.add(addition);                          
                this.setModel(model);
                return new JScrollPane(this);
        public Object getCellEditorValue() {
            return "helllo";
        public boolean isCellEditable(EventObject anEvent) {
            return true;
        public boolean shouldSelectCell(EventObject anEvent) {
            return true;
        public boolean stopCellEditing() {
            return true;
        public void cancelCellEditing() {
            super.clearSelection();
        public void addCellEditorListener(CellEditorListener l) {
        public void removeCellEditorListener(CellEditorListener l) {
    }

    I'm doing up a timetable. And so far, I've found that is the best way to display it. However if you can think of a better way, I'm willing to listen, but if u havn't gotten a better suggestion... Plz try and help me tweak this one to work... Because I've done quite a bit of work on this one so far

Maybe you are looking for