Reset window / form position inside SAP Screen
Hi,
I have an odd question, I accidentally dragged by Sales Order Form/Window up too high - now I cannot see the top bar of it as it is under the SAP menu - so I cannot grab the top to drag it down.
This is very frustrating as the I cannot see the BP field chooser or move the position of this form.
Can someone please tell me how to either move it with keyboard actions or reset its position ?
Thanks
Hi
Please try to cascade the windows
(Main Menu-windows-cascade)
Helen Sun
Similar Messages
-
Problem with Windows Form called from SAP
I have a simple VB.NET windows form that I'm calling from a new menu click event from within SAP.
The form loads, as expected, when the menu item is clicked, but the form will always load outside of the SAP window and thus cannot be seen by the user unless they see it in their toolbar.
Has anyone run into this in the past? I would normally use the UI-API, but this is a form from another program that can't use the UI-API.
I've also tested this with simple test forms with another test project and get the same results.
Any ideas?
Thanks!This isn't merely a matter of viewing <i>new</i> windows.
When the SBO window is active and in full screen mode and one switches, using the task bar, to another application, more often than not the other application's window won't be displayed, or will be displayed but partially. One has to deactivate and re-activate the second window to see it correctly.
It's the whole bloody SBO graphical engine that's bogus, if you ask me. Talk about reforging <i>that</i> to a profit-oriented company...
@Marc Roussel:
BTW, System.Windows.Forms.Form#ShowDialog() is a blocking method, AFAIK. So the following statements won't be executed ere the "dialog"'s closed.
But this doesn't change the problem. The Activate() and BringToFront() don't help resolve the matter, in my experience. Sometimes the new form will appear on Z-top, sometimes it won't. Or maybe the true problem is that the window <i>is</i> on top, but doesn't get painted.
ADDENDUM:
Come to think of it, it might be worth a try to programmatically iconify/deiconify the new window. Something along the lines of:
Dim f as Form = ...
f.Show()
Application.DoEvents()
f.WindowState = FormWindowState.Minimized
Application.DoEvents()
f.WindowState = FormWindowState.Normal
Application.DoEvents()
(all in System.Windows.Forms Namespace) -
Problem windows form modal in SAP BO
Dear all.
I have a problem.
I developed an Add-on to show a windows form. The windwos form call the
Cyristal Report's viewer. The form is call in a separeted Tread:
Dim mySC As New Class1
designThread = New System.Threading.Thread(New System.Threading.ThreadStart(AddressOf mySC.Disegna))
designThread.Name = CR_REPORT_NAME_SCAD_COD_CLI
designThread.ApartmentState = System.Threading.ApartmentState.STA
designThread.Priority = Threading.ThreadPriority.Highest
designThread.Start()
Now it happens that :
the first time I run the form that's OK, but if i try to run it again without stopping the application there is an error not clearly specified.
Additionally the first time , when all seems Ok,
the form is not bring to front
(i used the property topmost=true and the method showdiagol).
CAN YOU HELP ME??? THANKSAntonio,
In the SAP Business One forum for the SDK, ie. this forum, in the forum "Search" on the main page, type in "crystal". You will see many posts that may help assist with you question that you can read through.
Hope this helps,
Eddy -
Flexibility problem with ( window / form ) Position in forms 10g
Hi ,
I hope you are all Fine & Happy with oracle ;)
I' using Oracle Developer Suite - 10g
I SUCCEFULLY PUT THE FORM IN THE CENTER :D
but i have a proplem to make the position of a form flexible ?:|
First : I wanted to put the window in the center So that what i did
-===== Environment =====-
System : Windows XP
resolution : 1280 X 800
Browsers : IE , FIREFOX
JVM : sun java , Jinit
-===== Scenario =====-
MODULE name : MOD1
WINDOW name : WIN1
bq. bq. bq. |--> width 200 \\ |--> height 100
BLOCK name : BLK1
bq. bq. bq. |-->TEXT_ITEM : TXT1 \\ |-->PUSH_BUTTON : BTN1
-====== Action =====-
i add trigger " WHEN-WINDOW-ACTIVATED " form level
bq. bq. Declare \\ windows_name VARCHAR2(30) ; \\ screen_height NUMBER; \\ screen_width NUMBER; \\ window_height NUMBER; \\ window_width NUMBER; \\ x NUMBER := 0; \\ y NUMBER := 0; \\ BEGIN \\ screen_height := GET_APPLICATION_PROPERTY(DISPLAY_HEIGHT); \\ screen_width := GET_APPLICATION_PROPERTY(DISPLAY_WIDTH); \\ window_name := 'WIN1'; \\ window_height := GET_WINDOW_PROPERTY(windows_name , HEIGHT); \\ window_width := GET_WINDOW_PROPERTY(windows_name , WIDTH); \\ x := ( screen_width - window_width ) /2 ; \\ y := (screen_height - window_height ) / 2 - window_height; \\ Move_Window( windows_name, x , y ); \\ END;
-=== results ===-
when the browser is maxmized
screen_height = 600
screen_width = 960
window_height = 100
window_width = 200
x NUMBER = 380
y NUMBER = 150
this results are very nice to me BUT
--==== the problem ===-
when i resize the browser & reald the form it also detect that the display size still 960 , 600
so the form is shefted far from the targeted postion " center of the browser or to be specific - center of the java applet
While I noticed that any alert i create it position itself to the very center what ever i change the size of the browser or the java applet
-==== the Question ===-
how to detect the real size of the java applet
or
how the alert detect it's position to emulate it's code ?
or
is there any what to solve this problem :_| ?
Thanks
Edited by: user643438 on 17-Oct-2008 00:09Hi Frank,
Where do I explicitly provide the tnsnames entry to Graphics?
We are using SSO when running Form, the db connect string are store in each user resource of OID, where resource type = OracleDB. Also Neither the existing form (calls the
*.ogd) nor *.ogd has tnsnames/db connect code.
As for the actual TNSNAME setup, we have local env var -TNS_ADMIN w/value of "D:\Oracle\MidTiers\network\admin".
That we want all three oracle homes: Infra10g, MidTier10g, Dev6i use the D:\Oracle\MidTiers\network\admin\tnsnames.ora, sqlnet.ora.
Apparently, Graphics in D:\Oracle\Dev6i doesn't pickup
the TNSNAME setting @ Midtiers
Can you give us some pointers on this? thank you in advance!!!
-Kan -
How do I enter a data to B1 form via windows form?
I'm trying to add the data from a windows form, to the SAP B1 form (e.g. Sales order), now i'm just trying 1 component only which is the CustCode.
I've been thinking about this but i can't figure it out like how's the structure of the class I should create...
In my VBproj (VS_2005), i have a simple form (just "TextBox1" and "Button1"), then I have a class "appending.vb":
Option Strict Off
Option Explicit On
Public Class appending
Public oItem As SAPbouiCOM.Item
Public oTextbox As SAPbouiCOM.EditText
Private WithEvents SBO_Application As SAPbouiCOM.Application
Private Sub SetApplication()
Dim SboGuiApi As New SAPbouiCOM.SboGuiApi
Dim sConnectionString As String
sConnectionString = Environment.GetCommandLineArgs.GetValue(1)
SboGuiApi.Connect(sConnectionString)
SBO_Application = SboGuiApi.GetApplication()
End Sub
Public Sub New()
MyBase.New()
SetApplication()
End Sub
End Class
and also Form1.vb class:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim oappend As New appending
If oappend.oitem.UniqueID = 4 Then
oappend.oitem.String = TextBox1.Text
End If
End Sub
End Class
Note that unique ID 4 is because i searched in the system information (CtrlSfihtD) that the customerID in the sales order form has the Item = 4, which is the unique ID, but this property is readonly prop, so that I can't directly instruct to append the data from textbox1 to the item where unique ID is 4 (..UniqueID = 4..)
I know my code just wont work at all, but i'm really have no more idea about this....
critics, comment and idea please...
Thanks,
MartinDear Martin,
I think String property is on EditText object not Item object.
Please use Item.Specific to get the coresponding EditText and then set String.
Regards,
Jay. -
Problems with the System.Windows.Forms.Timer
Hi All,
Could some one help me please? I'm having a problem using the System.Windows.Forms.Timer inside an ItemEvent, the timer event just doesn't works...give a look in my code:
private System.Windows.Forms.Timer myTimer = new System.Windows.Forms.Timer();
if (pVal.FormUID.Equals("FrmTimer") && pVal.ItemUID.Equals("btnStartTimer") && (pVal.Before_Action.Equals(true)) && (pVal.EventType.Equals(SAPbouiCOM.BoEventTypes.et_CLICK)))
myTimer .Interval = 1000;
myTimer .Enabled = true;
myTimer .Tick += new EventHandler(myTimer _Tick);
void myTimer _Tick(object sender, EventArgs e)
SBO_Application.MessageBox("Timer: " + DateTime.Now, 1, "OK", "", "");
does someone have already tried to use the timer inside an itemevent, or could suggest another solution?
thanks a lot...Hi Bruno,
Unfortunately you cannot use a Forms.Timer without using a windows form (ie not a SBO form). Have you looked at the other 2 timer objects in .Net, the System.Timer.Timer and System.Threading.Timer? Here's a link to a web page that goes through the differences between each one:
http://msdn.microsoft.com/msdnmag/issues/04/02/TimersinNET/
Kind Regards,
Owen -
Windows Form with SAP B1 Problem
Dear all,
I'm building an add-on that use some windows form.
In Menu Event i placed the code for open my windows form:
MyForm xxx = new MyForm();
xxx.WindowState = System.Windows.Forms.FormWindowState.Normal;
xxx.Visible = true;
xxx.ShowInTaskbar = true;
xxx.TopMost = true;
xxx.Text = string.Empty;
xxx.ControlBox = false;
System.Windows.Forms.Application.Run(xxx);
All works fine, but, when my form is open i can't operate on SAP.
It's like my form is modal, and until I have it open I can't do anything outside the form.
Can someone help me?
Regards
DiegoHi Diego
There's actually two ways to build an add-on, one that runs inside SAP Business One and one that runs along SB1 side but built on windows forms. You can see this clearly if you try some of the add-on samples that come along with B1. Overall, when I did the analysis I ended up with the conclusion that I was going to spend twice the work to achieve windows forms.
First, you would have develop classes and objects that keep in communication with Business One. Second, you have to keep in mind that you cannot create, update, or delete data directly to the database unless you use the SDK provided objects and methods. Which brings you back to the SAP data sources.
Furthermore, you can run into a bit of complexity do to the fact that to illustrate data in your form, you might have to "convert" your data. For instance, say a SAP recordset into a dataset or ADO recordset. In other words, you can end up with a bit more complex architecture the way I see it.
Using the Screen Painter and SAP Business One tools such as the BIDE you can construct bound form (UDOs) which can even require very little coding from your part (if forms are not to be too complex). Once you get use to SAP's way handling data objects you see is a lot easier than trying the alternative. -
Is there a way to retrieve all outputed graphic(jpg,bmp,icon) rect position in a window form?
ThxNo. I don't think there will be such API to do so. Hooks may help do something related stuff.
https://msdn.microsoft.com/en-us/library/windows/desktop/ms644959(v=vs.85).aspx -
Adobe interactive form inside SAP GUI
Friends,
We all know that Adobe interactive forms can be called from portals and updated by the users. Is there any possibility that the Adone interactive form can be called inside SAP GUI and updated in the same manner?
Regards,
SamYes you can generate adobe intetractive forms as ABAP report programme outputs. There ares some standards forms available. Please search by FP*.
Hope i understood yourr question.
Thanks and Regards,
Antony John Isacc. -
SAP screen frozen once in a while after sending email from adobe form
Hi Experts,
I am facing weird problems.
I am using ABAP program to generate a adobe form.
While testing, once in a while, after we clicked on the email icon on the adobe form, and then email sent out, we got frozen SAP screen. Sometimes, we need to hit keyboard: "ESC"/ "F3" to go back to SAP selection screen.
Did you have this problem before? Please kindly advise.
I am using Adobe Reader X 10, SAP GUI 710 patch 18.
Thanks.
TeeHi Experts,
I am facing weird problems.
I am using ABAP program to generate a adobe form.
While testing, once in a while, after we clicked on the email icon on the adobe form, and then email sent out, we got frozen SAP screen. Sometimes, we need to hit keyboard: "ESC"/ "F3" to go back to SAP selection screen.
Did you have this problem before? Please kindly advise.
I am using Adobe Reader X 10, SAP GUI 710 patch 18.
Thanks.
Tee -
Hi, is there an easy and quick way to use my Forms I made, which look like SAP forms as an AddOn in SBO?
Maybe you know Mari-Projekt. The functionality should be the same. I have a stand-alone software but I also want to use it as an AddOn.
Thanks PhilippHi
You can Open your windows forms in SAP Business One with a little bit work around.But event handlers for the form will be of .Net(like Button Clicks).But the problem is that you have to use showdialog property of form to show the form,Which will not allow you to access Sap Business One untill you close the windows form.
If you want to handle your form events form with SDK,i am not sure whether that is feasible or not.
Hope this helps you
Regards
Vishnu -
How to show windows form in SAP B1
Hi
I would like to create interface UI form using C# , windows form and add to SAP B1. I would like to know process and send me if you have any sample code please.
Thanks
rlHi ragno liver.
This are the step to create your addon. :
1- On the menu bar access projects then properties and on Debug you will find the Command line add the following:
0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056
2- Add References SAPbouiCOM and SAPbobsCOM
3- Add a module call SubMain to your project
4- Go to project properties then to the application and then uncheck Enable Application framework. And select SubMain on the starud object.
5- On the SubMain module add this code:
using System;
using System.Windows.Forms;
class SubMain {
static void Main() {
// Creating an object
MyClase oMyClase = null;
oMyClase = new MyClase();
// Start Message Loop
System.Windows.Forms.Application.Run();
Where MyClase are located the code to create your menu and the call to your form.
Regards,
Jose -
Opening Sap Form(cfl) on top of windows form added in an adddon
Hi
On a click of sapForm button,I have opened a windows form containing a buton on it .
Now on a click of this button I have opened the Cfl created on Sap form.but its opening at the back of the Windows form .I need to minimize my Windows form to view the Cfl opened .I want this cfl to be open on top of windows form on whose button click i have opened it.
your suggestions are urgently required.
Regards
MandeepHi Mandeep,
This thread may be a useful reference for you: Why the open file dialog form goes to SAP background.
Regards
Aravind -
Is it possible to display a cmd window inside the windows form? Visual Basic
If so Can u show me how?
Because i have a .exe i'm trying to open in the Form
the exe open up a command line but i what it to look like this
01
02
|------------------------------------------------|
03
|
this is your main form |
04
|
|
05
|
/--------------------------------------\ |
06
|
|######################################| |
07
|
|#####the cmd screen is shown here#####| |
08
|
|######################################| |
09
|
\--------------------------------------/ |
10
|
|
11
|
[ a button ] |
12
|
the button run/open the cmd/exe
|
13
i do not what it to open up another window
Please help!!!
please and thank youHi,
Here is a simple example you can try. I don`t know when or how you are opening the cmd windows or anything else so it probably is not exactly what you want. You can test it in a new form project with 1 Button and 3 Panels added to it. each time you
press the button it opens another cmd window until the 3 panels are full. Being i am only using 1 timer it will only allow you to open each cmd window after the timer tick code finds the previously opened cmd window and sets its parent as one of the
panels.
Imports System.Runtime.InteropServices
Public Class Form1
Private WithEvents Tmr As New Timer With {.Interval = 200}
Private Const HWND_BOTTOM As Integer = &H1
Private ProcCnt As Integer = 0
Private CmdWindows(2) As Process
<DllImport("user32.dll", EntryPoint:="SetParent")> _
Private Shared Function SetParent(ByVal hWndChild As IntPtr, ByVal hWndNewParent As IntPtr) As IntPtr
End Function
<DllImport("user32.dll", EntryPoint:="SetWindowPos")> _
Private Shared Function SetWindowPos(ByVal hWnd As IntPtr, ByVal hWndInsertAfter As IntPtr, ByVal X As Integer, ByVal Y As Integer, ByVal cx As Integer, ByVal cy As Integer, ByVal uFlags As UInteger) As <MarshalAs(UnmanagedType.Bool)> Boolean
End Function
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If Not Tmr.Enabled And ProcCnt < 3 Then
CmdWindows(ProcCnt) = Process.Start("cmd.exe")
ProcCnt += 1
Tmr.Start()
End If
End Sub
Private Sub Tmr_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Tmr.Tick
Dim pnl As Panel = CType(Me.Controls("Panel" & ProcCnt.ToString), Panel)
If SetParent(CmdWindows(ProcCnt - 1).MainWindowHandle, pnl.Handle) <> IntPtr.Zero Then
Tmr.Stop()
SetWindowPos(CmdWindows(ProcCnt - 1).MainWindowHandle, New IntPtr(HWND_BOTTOM), 0, 0, pnl.ClientSize.Width, pnl.ClientSize.Height, 0)
End If
End Sub
Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
For i As Integer = 0 To CmdWindows.Length - 1
Try
If CmdWindows(i) IsNot Nothing AndAlso Not CmdWindows(i).HasExited Then CmdWindows(i).CloseMainWindow()
Catch ex As Exception
End Try
Next
End Sub
End Class
If you say it can`t be done then i`ll try it -
Messages are incorrectly positioned inside IM chat window (after Office 2013 SP1 update)
Hi,
After installing Office 2013 SP1 today (Lync desktop 2013 client version updated to 15.0.4569.1506), messages inside Lync's chat windows are positioned in a wrong way when using DPI of 125% in Winodws 8.1.
Can anyone else confirm this and/or suggest a solution? We cannot unistall SP1 since we're using Click-to-Run version from O365.Can you try re-sizing the Lync IM window's width as small as possible? I have the issue due to long name, haven't tried playing with DPI.
Please mark posts as answers/helpful if it answers your question.
Blog
Lync Validator - Used to assist in the validation and documentation of Lync Server 2013.
Maybe you are looking for
-
How do I delete ALL my photos on my iPod?
How do I delete ALL my photos on my iPod. -I use Windows.
-
How do I use a jpeg as a document background template
How do I use a jpeg as the background for a Business Letterhead. Can I save that letterhead document as a template?
-
What drive to choose, MacBook Pro Retina 15"
Hi, I'm considering buying a new MacBook Pro (15" 2,7 GHz quad-core, NVIDIA GeForce GT 650M / 1GB). But could you give me advice on the following. Since this MacBook has flashmemory, I wonder if it's still necessary to work with a external harddrive
-
Audio from a captured clip over still graphics
I capture the on-camera portion of my presentation and then place graphics and titles over the captured video. How can I allow the audio from the clip to continue when a graphic appears, other than using the non-transition effects? To see what I'm do
-
Send street address as a link in email
I am trying to send an email with a street address in it so that when the recipient receives the email they can click a link that will load the map application to the specific address. The problem I am having is the "link" is not picking up the city,