System form resizing problem

Hi,
I expanded the width of the Sales Quotation system form and move fields to the right to allow space for new fields in the centre.
I used the oForm.Width to adjust this.
If I load the form, expand to full screen, everyhting is in the right place and looks good. However, if i adjust the form dimensions slightly and then expand to full screen the form items, system and user defined, overlap or get lost under the central tab area etc etc. To recover I have to resize the form so both X and Y scroll bars appear, close the form, and then load the form so that it appears with its system minimum dimensions.
Has anyone else experienced this? I also notice that another parameter for forms is oForm.Clientwidth, what is the difference as I can't make this work either???
I can release my addon if someone wishes to try this and see what I am experiencing or I can upload photos.
I think it just that the addon need to take care of dynamic form sizing - cater for resizing events?
Any Ideas???

Right, Iam in the middle of my new version but this is the snippet of code that causes the problem, if not clear from this then I'll email code out later.
Private Sub oApp_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles oApp.ItemEvent
        If pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD And pVal.FormType = 149 And pVal.Before_Action = True Then
            Try
                Dim oItem As SAPbouiCOM.Item
                Dim oForm As SAPbouiCOM.Form
                Dim oCombo As SAPbouiCOM.ComboBox
                Dim oEdit As SAPbouiCOM.EditText
                Dim oLabel As SAPbouiCOM.StaticText
                Dim oXplaneItem As SAPbouiCOM.Item
                Dim oYplaneItem As SAPbouiCOM.Item
                Dim iUnitMove As Integer
                Dim iCentralLocation As Integer
                Dim iBottomCentralLoc As Integer
                oForm = oApp.Forms.Item(FormUID)
                'Constants
                iCentralLocation = 75
                iBottomCentralLoc = 40
                iUnitMove = 350
                'Add fields to Table for new Editbox fields
                oForm.DataSources.DBDataSources.Add("OQUT")
                'Rename "Owner" static text to "FSE"
                oItem = oForm.Items.Item("230")
                oLabel = oItem.Specific
                oLabel.Caption = "FSE"
                'Move Top RIght Fields to create space in middle for new date fields
                oForm.Width = oForm.Width + iUnitMove
                oForm.Items.Item("9").Left = oForm.Items.Item("9").Left + iUnitMove
                oForm.Items.Item("88").Left = oForm.Items.Item("88").Left + iUnitMove
                oForm.Items.Item("8").Left = oForm.Items.Item("8").Left + iUnitMove
                oForm.Items.Item("60").Left = oForm.Items.Item("60").Left + iUnitMove
                oForm.Items.Item("81").Left = oForm.Items.Item("81").Left + iUnitMove
                oForm.Items.Item("11").Left = oForm.Items.Item("11").Left + iUnitMove
                oForm.Items.Item("10").Left = oForm.Items.Item("10").Left + iUnitMove
                oForm.Items.Item("86").Left = oForm.Items.Item("86").Left + iUnitMove
                oForm.Items.Item("46").Left = oForm.Items.Item("46").Left + iUnitMove
                'Move bottom right fields to create space in middle for new fields
                oForm.Items.Item("23").Left = oForm.Items.Item("23").Left + iUnitMove
                oForm.Items.Item("22").Left = oForm.Items.Item("22").Left + iUnitMove
                oForm.Items.Item("25").Left = oForm.Items.Item("25").Left + iUnitMove
                oForm.Items.Item("24").Left = oForm.Items.Item("24").Left + iUnitMove
                oForm.Items.Item("283").Left = oForm.Items.Item("283").Left + iUnitMove
                oForm.Items.Item("42").Left = oForm.Items.Item("42").Left + iUnitMove
                oForm.Items.Item("90").Left = oForm.Items.Item("90").Left + iUnitMove
                oForm.Items.Item("91").Left = oForm.Items.Item("91").Left + iUnitMove
                oForm.Items.Item("89").Left = oForm.Items.Item("89").Left + iUnitMove
                oForm.Items.Item("99").Left = oForm.Items.Item("99").Left + iUnitMove
                oForm.Items.Item("27").Left = oForm.Items.Item("27").Left + iUnitMove
                oForm.Items.Item("30").Left = oForm.Items.Item("30").Left + iUnitMove
                oForm.Items.Item("29").Left = oForm.Items.Item("29").Left + iUnitMove
                'Move "Copy From" & "Copy To" buttons
                oForm.Items.Item("10000330").Left = oForm.Items.Item("10000330").Left + iUnitMove
                oForm.Items.Item("10000329").Left = oForm.Items.Item("10000329").Left + iUnitMove
                'Expand Grid in Contents Tab to fit form again
                oForm.Items.Item("115").Width = oForm.Items.Item("115").Width + iUnitMove
                oForm.Items.Item("116").Width = oForm.Items.Item("116").Width + iUnitMove
                oForm.Items.Item("38").Width = oForm.Items.Item("38").Width + iUnitMove
                oForm.Items.Item("118").Left = oForm.Items.Item("118").Left + iUnitMove
                oForm.Items.Item("65").Left = oForm.Items.Item("65").Left + iUnitMove
                oForm.Items.Item("75").Left = oForm.Items.Item("75").Left + iUnitMove
                'Move Items in Logisitcs Tab
                oForm.Items.Item("233").Left = oForm.Items.Item("233").Left + iUnitMove
                oForm.Items.Item("223").Left = oForm.Items.Item("223").Left + iUnitMove
                oForm.Items.Item("238").Left = oForm.Items.Item("238").Left + iUnitMove
                oForm.Items.Item("224").Left = oForm.Items.Item("224").Left + iUnitMove
                oForm.Items.Item("234").Left = oForm.Items.Item("234").Left + iUnitMove
                oForm.Items.Item("234").LinkTo = "224"
                'Move Items in accounting tab
                oForm.Items.Item("156").Left = oForm.Items.Item("156").Left + iUnitMove
                oForm.Items.Item("157").Left = oForm.Items.Item("157").Left + iUnitMove
                oForm.Items.Item("119").Left = oForm.Items.Item("119").Left + iUnitMove
                oForm.Items.Item("120").Left = oForm.Items.Item("120").Left + iUnitMove
                oForm.Items.Item("124").Left = oForm.Items.Item("124").Left + iUnitMove
                oForm.Items.Item("123").Left = oForm.Items.Item("123").Left + iUnitMove
                oForm.Items.Item("135").Left = oForm.Items.Item("135").Left + iUnitMove
                oForm.Items.Item("134").Left = oForm.Items.Item("134").Left + iUnitMove
                'Hide system predicted closing date as picks 1 month later if not completed
                oForm.Items.Item("12").Visible = False
                oForm.Items.Item("13").Visible = False
           Catch ex As Exception
                MsgBox(ex.Message)
            End Try
        End If
    End Sub
If you try this in debug mode, you will still see the system forms items affected in the way I have described.
Edited by: David Alexander on Oct 14, 2008 1:32 PM

Similar Messages

  • Resizing problems - system form

    Hi everyone,
    I am new at SBO SDK but 'm using the 2004 release.
    I've added five buttons and a Matrix to a System Form and thought everything was great, but later I realised I need to specify how much a matrix can resize in order to not get some part of it behind my buttons.
    I wish I could make these buttons move to the right as I resize the form.
    I've seen the SDK example called "UseMatrix" where there is a Text Edit item which can move as I resize but don't know how to do it. I also tried using the item property "Right justified" but didnt work.
    I hope anyone can help me.
    Thanks in advance,
    Percy.

    SBO does do some automatic placement/resizing of items when a form is resized.  Most items like buttons and edit texts automatically move and stay a fixed distance from the nearest corner.  Matrices normally stretch with the form.
    Its hard to tell exactly what you need to do without seeing your form, but there are a couple of things that might be of use to you:-
    - The columns themselves have a 'left' property.  You could use this to force the first column to stay at a certain size eg. sboMatrix.Columns(0).Width = 20
    - A matrix has an 'autoresizecolumns' method that can be called.  This should automatically make each column wide enough to view its contents, and introduce a scroll bar if the overall column widths are too big to view.
    John.

  • Problem with AddRow() in custom matrix on System Form

    Hello all,
    I'm trying to add 1 row to a custom matrix on a system form (Sales Quotation).
    However I always get a RPC_E_SERVERFAULT exception when calling pMatrix.AddRow() and SBO crashes...
    My code is simple:
            [B1Listener(BoEventTypes.et_CLICK, false)]
            public virtual void OnAfterClick(ItemEvent pVal)
                Form pForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
                // Add matrix line
                Matrix pMatrix = (Matrix) pForm.Items.Item("MATRIX").Specific;
                pMatrix.AddRow();
                // Set matrix line data
    The matrix shows ok in the system form, inside a new folder.
    What is the problem with my code?
    Is there any way to add rows to a custom matrix in a system form?
    This code runs ok if executed in a custom form...
    Thanks!
    Manuel Dias

    hi.
    R u facing any problem ...
    actually add row and del row both are same.
    in normal customization form and system form matrx...
    Any problem are u facing...

  • Simple problem with popup message before adding document on system form

    Hi all,
    We have an AddOn that validates price lines on system Sales Order form matrix, so that if prices fall below a certain value, a popup is show to ask to continue or not, when user presses ADD button.
    The problem is that if he chooses yes (to continue), the Sales Order is not added since the button ADD keeps being selected ....
    Here is my code:
            [B1Listener(BoEventTypes.et_CLICK, true)]
            public virtual bool OnBeforeClick(ItemEvent pVal)
                int iResult = B1Connections.theAppl.MessageBox("Price lines fall bellow minimum! Continue?", 1, "NO", "YES", "");
                if (iResult == 1) // NO
                    // Show error
                    B1Connections.theAppl.StatusBar.SetText("OK", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error);
                    return false;
                // YES: Continue to add Sales Order
                return true;
    The problem is somehow related with the popup message being shown: if user says YES to continue, the system form does not continue with the standard process of adding the Sales Order (when I move the cursor above the ADD button is shows it already pressed...).
    Do I have to do anything more to force the process to continue, when the user says YES?
    Regards,
    Manuel Dias

    Thtas known problem. The solution for this is declare global variable as boolean, when user selects Yes, then set this variable to true and emulate click to add button again where before the message box check if its varaible sets to true - in this case dont show message box, only set variable to false.
    The concept of code will be
    dim continue as boolean = false
    in item event
    if continue = false then
        x = messagebox...
      if x = 1 then
        continue = true
         items.item("1").click
    end if
    else
    continue = false
    end if

  • Problem catching events after opening system form

    Hi
    In my addon i open a system form from a user form. after closing the system form , my user form does not cause any event to be handled by my addon. in other words pressing on the forms button items does not cause any event to accure. in order for the form to work i need to close the form and reopen it from the menu. question is how can i know what is causing the form to stop responding and how can i fix it?
    appreciate the help
    Yoav

    Hi Yoav,
    It looks like when the system, form closes you remove a filter for your user form or your remove the listener for your user form.
    Regards
    Ad

  • Hiding items in system form by changing record

    Hi,
    I have on system form textbox binded to UDF. If user change the record, the textbox is not showing. I know about possibility to catch events like form_load, resize and data_load where I can set visible to true to this textbox, but my question is, if exists some better method how to say to SBO that this field will be always visible.
    thx
    Petr

    I found the problem, in some forms in diferent modes is set diferent panelevel...

  • Preview Application Resizing Problem

    Preview Application Resizing Problem
    Microsoft platforms have two significant advantages. The first is the concept of an operating system that can function with hardware that ranges from cellular phones to desktop computers. The second is that Microsoft has excellent software development tools
    for creating and testing computer programs.
    Software compatibility across hardware platforms requires not only meeting CPU and memory requirements. Application programs must be able to automatically adjust Window and control sizes to meet the needs of available window sizes, video display unit sizes
    and screen resolutions, switching between vertical and horizontal viewing, vertical and horizontal scrolling, changes in font sizes , and variations in the available screen space due to usage of vertical and horizontal toolbars.
     Software developers must be careful that resizing doesn’t squeeze controls too close together or make them so small that they cannot be finger or stylus selected when used with touch screens.
    Some of the required automatic resizing options are provided by the Microsoft software compilers and the Windows operating system.  Softgroup Component’s “.NET  Forms Resize” is an example of one of the third party applications that provide advanced
    resizing functionality.
    Many of the resizing functions are programmer options and, if not properly enabled, an application may not have the required resizing functionality. At the current state of the art, application programs are highly variable in their capability to do the “intelligent
    resizing” that is required to handle different display environments.
    A case in point is the Microsoft Preview Application for Windows 10. When entering lengthy comments, the send button becomes positioned off the end of the program window. It is possible to scroll to the button, but the display automatically resets when scroll
    is released. The result is that the text cannot be sent. You can try a "blind" TAB to the SEND button. This appeared to work after several tries, but the comment was apparently not received,
    RERThird

    Hi,
    What do you see when you open the same PDF file in Acrobat Reader? Are the words still squeezed than?
    Dimaxum

  • How to create add-on of a system form in sap b1 9.0?

    Hi all,
    I have a problem related to the creation of a system form add-on of sap b1 9.0.
    I can develop some projects in visual basic, but about sap b1 add-on, I know how to package files of to install (.ard and .exe files) and I also know how to register .ard file in sap b1 9.0, So I tried to register all projects found in SDK sample folder that was correct.
    I tried to do an example of project found in SDK Help Center.
    But the problem I have to day related to the creation of system form add-on.
    The steps I tried to do are:
    1. I opened SAP B1 Studio for Microsoft Visual Studio
    2. Right click my project and add the system form (Employee Master Data)
    3 Connection string I used in Command line arguments   0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056
    4. I added one field (CFL of BPCode) to Employee Master Data.  I did n't add any reference because when I add UI API Vission 9.0 to system form or user form of sap b1 it gives errors in Menu.vb. I do know why.
    5. I converted in 32 bit and build my project
    6. I re_opened new visual studio 2010 for creating new project with SAP B1 AddOnInstaller.NET Wizard
    7. From here I did every thing according to the video of Bryan Gomez
    Creating and Registering SAP Add-on - YouTube
    8. I registered my .ard file
    9. But when I start my add-on it gives error (Add-on connection timed out)
    The questions I want to ask,
    1. If you are creating the add-on of system form Is there any other thing needed to do more than the above  I explained?.
    2. Is it necessary to go in SDK code when you are using the system form like that?.
    3. If it is necessary to add reference of UI API  in project, how to handle error occurs when we add that the reference to the project which is using a system form?.
    Please anyone who has an idea he/she can help me.

    Hi pallavi p,
    That's good but as I said above when I add the reference of UI API Version 9.0 in the project which has the system form or user form of sap b1 it exactly gives errors in menu.vb of the project.
    So let me give you the way you can try.
    1. Open new project/ visual basic/ sap business one/ sap business one add-on project. and save it any where
    2. Right click on your project
    3. Add new item
    4. Sap Business One
    5. System form (Employee master data) or user form
    6. Add
    And then if your form is opened
    7. Go to add the reference of UI API Version 9.0
    8. Check errors found in menu.vb (or in OutPut)
    So if it's possible try to solve that problem.
    Please anyone can help me.

  • How to register add-on of edited system form in sap b1 9.0?.

    Hi all,
    I have a problem in SAP b1 9.0.
    Actually I added one field of BPCode to Employee master data, so I want to register an add-on of that system form in SAP b1 9.0.
    When I create file of .ard as we watch it in video of 
    Bryan Gomez
    Creating and Registering SAP Add-on - YouTube     it will be created correctly, But the problem is when I register that the file of .ard it gives error (Cannot create a file when that file already exists). Again when I create a file of .ard of any other User form it gives the same error (Cannot create a file when that file already exists).
    But when I create and register the add-on of Hello World in Sample folder of SDK it will be registered correctly.
    How can I solve that problem.
    Anyone can help me please.

    Hi pallavi p,
    That's good but as I said above when I add the reference of UI API Version 9.0 in the project which has the system form or user form of sap b1 it exactly gives errors in menu.vb of the project.
    So let me give you the way you can try.
    1. Open new project/ visual basic/ sap business one/ sap business one add-on project. and save it any where
    2. Right click on your project
    3. Add new item
    4. Sap Business One
    5. System form (Employee master data) or user form
    6. Add
    And then if your form is opened
    7. Go to add the reference of UI API Version 9.0
    8. Check errors found in menu.vb (or in OutPut)
    So if it's possible try to solve that problem.
    Please anyone can help me.

  • [SOLVED] GNOME 3.8 annoying window resize problem

    Hello all fellow early-adopters :-)
    A very annoying quirk I've noticed, moving from GNOME 3.6 to 3.8, is that it no longer remembers, nor retains, the size/positions I set for many of my application windows. For example, my mail client (Evolution) is sized to fill most of my screen (centrally), with Empathy and Skype as long narrow windows on both sides - giving me a nice, broad "communications" overview on that particular desktop (with dev tools etc open on others).
    On 3.6, this layout was retained during my session, as well as next time I started these apps up.
    In GNOME 3.8, not only does it insist that these windows are always started as small little bunched-up windows that I need to resize, but every time a window displays a notification/warning (message in internal yellow bar inside the window - such as loss of internet connection, mail retrieval failure etc) it resizes the windows spontaneously to a stupid, small size that overlays the other windows. This is driving me crazy!
    Where can I learn a bit more about how window sizing / positioning works in GNOME 3.8, or is it finally time to switch to awesome wm? I want to love GNOME 3.8, I really do. It's so slick, but so... unpolished.
    I want to dig in an assist with problems like these, but I need some pointers to some background material first to understand the problem. Is it the window manager? Is it the app?
    ** UPDATE: Doing a full system upgrade, as of May 18, 2013, has resolved this annoying problem. My windows now stay where they belong, and start with the same size they were closed with. GNOME is now pleasant to use again :-)
    Last edited by dawid.loubser (2013-05-21 13:37:25)

    dawid.loubser wrote:Thanks for the suggestion drtebi - I'll give it a try.
    I really like GNOME 3.x though (and would like to understand the windowing behaviour), but if the annoying quirks are insurmountable, I will happily switch.
    Man I love GNOME 3.x. I admire the courage they had to change, basically, everything, and I find myself more productive with my GNOME 3 Arch box than with my good ol' Slackware KDE 4 box. I just hate those bugs - for example I filed a task in their bugtracker for this window resize problem I have with gedit. If it's a love/hate relationship, I think it's marriage ^_^
    With the 3.8 upgrade, deadbeef was having a similar problem with window size/position. I just recompiled it against the latest GTK+3 package upgrade (that came after the 'big upgrade' here on Arch) and it was fixed. But not with gedit
    bwat47 wrote:
    Man I really hope this gets fixed soon, because aside from this one incredibly annoying issue I am loving gnome 3.8.
    I get the feeling gnome badly needs more beta testers, sizable regressions like this in "stable" releases happen way too often sad.
    I get the exact same feeling. Well bugs exist everywhere, there's no denying. But I think it would be wiser to 'alternate' the nature of each major stable release - one focusing on new features and one focusing on fixing bugs. For example if the only new features in GNOME 3.10 were the AppsFolder full implementation and the introduction of gnome-calendar, and the rest of the development cicle being devoted to fix bugs, I'd be more than happy.
    Like Fedora and Ubuntu, the fixed 6-month release cycle colaborates with the bugs. They don't do like Debian or Slackware which are released 'when they are ready'.
    EDIT: fout (yet) another bug. At least with facebook chat (haven't tested with other telepathy plugins) the buddy tray icon appear duplicate. Anybody with the same issue?
    Last edited by lmello (2013-05-02 14:06:06)

  • User Defined Fields on System Form

    Dear All,
                   I want to know that how much User Defined Fields can be added on a system form. My problem is that I am developing an add-on for the Item Master Data. And I have used a lot of User Defined Fields on Item Master Data Forms which contains table 'OITM'. Now if I am trying to add any extra User Defined fields in OITM Table, I am not able to do so. I am getting an error as  'Internal Error Occurred'. What can i do regarding this problem.?  Help me. It is something very important.
    Thanks and Regards

    Hi,
    There is theoretically no limit on the number of UDF for a table. there is however a maximum number of characters for a record in SQL Sever.
    As far as I know this is 4000 in SQL Server 2005 and older and 8000 in SQL Server 2008.
    pls check Microsoft for the exact numbers
    Regards
    Ad

  • Update a system form using XML

    Hi all,
    I'm trying to update a system form by adding a tab (folder). The form is Customer Equipment Card (nb 60150), in the service menu.
    I just want to add a folder called Counter.
    When I load the XML file below, I get the following error :
    System.Runtime.InteropServices.COMException (0xFFFFFFFE): Function not supported on current SBO Version - upgrade is required
    If I want to add a button, it's working, but not a folder.
    Something's false in this XML file (I add the good uid before I load it) ?
    Thanks for your help
    Sébastien

    > - Drop the datasource section
    > The error is gone, but I don't see the folder in
    > in the form
    You could try and check wether it's there but invisible (access it in your code and wait for an exception).
    > - Linkto Objet
    > If you look at the XML code of the form, you can
    > can see that all the folder are links to this item.
    > Moreover, when I add the form using VB (it's working
    > that way), the XML result will show linkto = "54"
    I believe. I analyzed another system form and my own forms: None of the tabs are linked to anything. Is this documented? What does it mean?
    > - the data source is SYS_71 for all the folder of the
    > form. I don't understand what you mean when you want
    > me to set the val_on to this datasource
    I looked at the XML source of another system form and the tabs had val_on="SYS_whatever". With my own forms I set val_off="N" and val_on="Y". I remember having had some problems there, but I can't put my finger on it now.
    > - item group
    > I'm using SBO 6.5, I can't find help on that, maybe
    > it's only on 2004.
    No, it's 6.5. It's not in the documentation but you will find it somewhere inside the guts of this forum. As I said, I once had trouble adding tabs cleanly to a custom form using XML.
    Of course, all this is just blindly stabbing into the dark. What else can we do?

  • How to add a Tab in Company Detail System Form

    Hi Experts
    I am making a new Tab in Company Detail System form In Accounting Tab after Excise tab. This is tree of Tabs. Accounting Tab has two Sub-Tabs General and Excise. Now this New Tab 'Export' will also be the sub-Tab of Accounting Tab. My code for inserting tab is given below
    If pVal.FormType = "136" Then
                        Dim sysItem As Item
                        Dim SysEdit As Item
                        Dim lbl As StaticText
                        Dim editText As EditText
                        Dim oFolder As Folder
                        sysItem = form.Items.Item("140002039")
                        oItem = form.Items.Add("ExportFD", BoFormItemTypes.it_FOLDER)
                        oItem.Left = sysItem.Left + sysItem.Width
                        oItem.Top = sysItem.Top
                        oItem.Width = sysItem.Width + 20
                        oItem.FromPane = 5
                        oItem.ToPane = 6
                        oFolder = oItem.Specific
                        oFolder.Caption = "Import/Export"
                        oFolder.GroupWith("140002039")
                        sysItem = form.Items.Item("140002040")
                        SysEdit = form.Items.Item("140002041")
                        oItem = form.Items.Add("LDrMfNo", BoFormItemTypes.it_STATIC)
                        oItem.Left = sysItem.Left
                        oItem.Top = sysItem.Top + 65
                        oItem.Width = 120
                        oItem.FromPane = 6
                        oItem.ToPane = 6
                        lbl = oItem.Specific
                        lbl.Caption = "Drug Manufacture Licence No."
                        oItem = form.Items.Add("EDrMfNo", BoFormItemTypes.it_EDIT)
                        oItem.Left = SysEdit.Left
                        oItem.Top = sysItem.Top + 65
                        oItem.Width = SysEdit.Width
                        oItem.FromPane = 6
                        oItem.ToPane = 6
                        editText = oItem.Specific
                        editText.DataBind.SetBound(True, "OADM", "U_DrMfcLNo")
    The tab is added properly It also show labels and  Edit boxes but when I select this tab General and Excise tab is disappeared.
    Plz suggest me what can be the problem
    Thanks
    Best Regards
    Jitender
    Edited by: Jitender Garhwal on Apr 5, 2010 6:28 AM

    Hello,
    Change the ToPane Property of  General and Excise  until your last panelevel (6?)
    The ToPane property of these items is less than your folders panelevel ! This is the problem.
    Regards,
    J

  • Form bad value when opening CFL in system forms

    Hi,
    I have a UDF control on the Stock Transfer Form which opens a CFL. Now at the CFL event, when i try to set the value from the CFL to the Parent Form (Stock Transfer). It opens the CFL again with "Form - Bad Value" error.
    This case i had faced but the problem was solved using
    dbdatasource.setValue = "string value returnd frm CFL datatable"
    but my problem comes with system form where i cannot use Setvalue method of DBDataSource.
    Please Help!
    Manu.

    Hi Trinidad,
    thanx for replying.
    my code is
    Select pVal.BeforeAction
    Case False
           Select Case pVal.EventType
                      Case SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST:
                                 ''' sCFL_Value1 is a string'''
                                 sCFL_Value1 = oCFLEvent.SelectedObjects.GetValue(1, 0).ToString()
                             If oCFLEvent.ItemUID = "47" Or oCFLEvent.ItemUID = "3" Then
                                     oEditText = oForm.Items.Item("etTest").Specific
                                     <b>oEditText.Value = sCFL_Value1</b>
    '''''' ******This is where i get the error i have tried using oEditText.String as well. I faced the same issue on a user form but when i used oDataSrc_Header.SetValue("U_Price", oDataSrc_Header.Offset, sCFL_Value1), my problem was solved.*********''''''''
                              End If
    i tried a workaround by saving the sCFL_Value into some other textbox which is not bound with a CFL control (e.g. the remarks field in stock transfer), there it does not throw any error but still as soon as i copy that value from remarks field to the actual control it throws "bad value error".
    Any help would be very grateful.
    Manu.

  • UI: Save system form as xml

    Hi,
    I tried to export a system form like the delivery note form to a XML document, but it doesn't work.
    For the forms I created with the Screen Painter it works without problems. I can run an import or export and I always receive an XML document.
    For the system forms I didn't get a XML file at all.
    Are there any code examples or help files that could help me with this export?
    I already searched the forum for this topic but I can't find one that answers my question.
    Perhaps someone can help me solving this problem.
    Regards,
    Dennis

    > Are there any code examples or help files that could
    > help me with this export?
    Use the GetAsXML method to get every form you want as XML. This example copies the Sales Order form as XML to the clipboard.
    If pVal.EventType = et_FORM_LOAD And pVal.FormType = 139 Then
    .... Clipboard.SetText SBO_Application.Forms(pVal.FormUID).GetAsXML
        End If

Maybe you are looking for

  • Accounts Receivable and collections report project-wise

    Dear all, My client wants accounts receivable and collections reports project wise. are there any reports in PS which satify this requirements. If no, pls suggest me how to cater to this requirement. Pls help me on this issue. Thank you very much in

  • Oracle cleint and tnsnames.ora

    We have a duty to do some data analysis on one of our oracle databases. We have a copy of the tnsnames.ora file with the DB server and SID etc. If you use something like toad or golden to query the DB, do you also need to install the oracle client on

  • Airport Extreme not showing up after switching to extend the network

    I have an older Airport Extreme that I am trying to setup to extend the network from my uverse gateway. When I restore the AE to factory settings and set it up to extend the network, it goes through the process and then flashes amber. Also, it takes

  • Webi report taking time while opening

    Hello, I am facing the issue while opening the webi report . Below is the description. End user created the report based on the standard report and kept that report in his favorites. while opening the report, it is just saing "Please wait while the d

  • How can I reinstall Photoshop CC and Lightroom 5?

    I have installed a new hard drive and now need to reinstall my Photoshop and Lightroom which I subscribe to, can anyone help Thank You Fred