Repeating of udf form on ncount
Hi,
I have developed one UDF screen with SAP default buttons. I catched the following event filters
form laod, form activate, item pressed , menu click, key down and click event. when I opened my screen it worked fine for the first time. When I open the screen second tinme, the events are firing twice. when I opend for the 3rd time it events are firing thrice and so on.
How to control these events. How to stop multiple repeating of events.
Even I made all objects to nothing before closing the form during cancel button. How to control this ?
Thanks in Advance!
Madhu
Madhu,
Please see this post as it may help you ...
Event Executing Itself Multiple Times
Eddy
Similar Messages
-
Updating UDFs in the UDF form of a sales order
I got the UDF form of a corresponding main sales order form.
I am trying to set a value for one of the UDFs there, but I get a 'General Failure' exception (Simply trying to set the edittext's UDFItem.Value or UDFItem.String properties)
I know I have the right form and item, since I can change the item's BackColor.
The DBDataSource.GetValue works, so I can read the existing values.
The DBDataSource.SetValue doesn't work, but I'm used to it
Any ideas?Avi,
We cant use Setvalue directly in Predefined for u better to use
Frm.items.item("").Specific.Value= ""
Regards,
Anitha -
Hi all
i wish to open the Side form which shows the UDF fields for a given system form. question is how can i open the form through code?
once i've opened the form i wish to set the visibility of the UDF fields appearing in the UDF form.
question is how do i obtain the from's object in order to set the appearance of the UDF items within it?
appreciate the help
Yoav
Message was edited by:
YECHIEL SCHUSSEIMHi Yoav,
If Not SBO_Application.Menus.item("6913").Checked Then
SBO_Application.SendKeys "^+U"
End If
6913 is user defined field menu item id.
you can see user defined form is opened everytime you open a certain form with that code samples in form_load event.
hope this can help you.
Regards,
Hyunil. -
Check Weather UDF Form Exist or Not ?
hi,
I have to work on UDF Fields and problem is that i have to check weather UDF Form (right hand side form which is visible only when we click VIEW>User Defined Field)
is visible or not.
Do any one know such method/varible by which i would be able to know that UDF form is visible / not visible....
Regards ,
GaneshHi Ganesh,
You can check the status of the menu visible and/or checked to see if the UDF form is visible.
Regards
Ad -
How to know if a UDF form is opened else then using a TRY CATCH ?
I'm looking for any way to find out if the UDF form is visible
else then trying to open it in a try catch and if it's not sending a key. This if very ugly, slow and not really my kind.
I tried to iterate through all the forms in SBO_Application.Forms but it's not there. All I see is the main form
I just need to make sure the UDF form is visible when Inventory form is loaded so I can put a value in one of the UDF
If there's a better way I'm buying itHi Marc,
Rather than putting your data in the UDF in the UDF side form, you can add a control to the main form (during the load event of the form) and bind this to the UDF through the DBDataSource that is already available on the main form. This means that you don't need to worry about whether the UDF form is open or not because you can always read or write to your UDF data from the main form.
Alternatively, the UDF form TypeEx property is always the same as the main form but with a minus sign in front. Therefore, if you know the TypeEx and FormTypeCount of the main form then you can use the GetForm method of the Application object to get the UDF form.
oForm = _sboApp.Forms.GetForm("-" + oMainForm.TypeEx, oMainForm.TypeCount);
You'd still need a try/catch around this and if it raises an error then activate the 6913 menu to open the UDF form.
Kind Regards,
Owen -
Handling TackOn form or UDF Form
HI all,
Can we make any single field disable in Tack-On form (UDF form with -ve form id) for system forms. So that users can able to see but can't change.
Is there any way found without using categories.
regards:
sandyHello
On Form You may press CTRLSHIFTB which is the UDF form settings ,then uncheck the editable flag.
You can also you the columnpreferences object to set it visible and disabled. Please note, the column preferences is saved when B1 is exiting.
Regards
János -
To disable close button of the UDF form
Hi,
I need to disable the close button of a UDF form. Can anyone help me pls.
Manu.Hi Manu,
Herewith a code example... This would disable the close button on the Sales Order window (and only the first window)
Dim oform As SAPbouiCOM.Form
<i>'loop through all the forms here if you need</i>
<i>'i am using "-FormType" here as the UDF window has the same UID as the normal form, but with negative sign</i>
oform = oApplication.Forms.GetForm("-139", 0)
Dim oItem As SAPbouiCOM.Item
<i>'Close button is 4</i>
oItem = oform.Items.Item("4")
<i>'Disable button</i>
oItem.Enabled = False
Hope it helps,
Adele -
Hi All,
We have observed a strange behaviour in SAP UDF , ie; whenever the control goes to any of the UDF field the main form and the UDF form are getting refreshed many times. or in more acurate terms, the FORM_ACTIVATE and FORM_DEACTIVATE events are triggerred at least 30 -40 times on both the forms.
The problem is that , the same is very much visible if the UDF is a edit text field and not a combo field and there is a formatted search obn that field . If the user selects the values from the formatted search screen ( from a list of valus) , after the value is selected the field flicker many times...
Is there any way to get aroud this problem . Our clients are not accepting this behaviour of SAP.
Regards,No. Even if no SDK is running also the same problem happens. Is it the normal SAP behavour.? Can this be changed?
Regards, -
Hi all,
Do you know where in the database is the information about whether or not to display the UDF form for a given standard form and a given user?
Thanks in advance,Hi Cyril,
I think it is stored in the OUSR table, in the UserPrefs field. But the field is binary and you can´t get understandable data from there.
Sorry,
Ibai Peñ -
Obtaining UDF form type and ID
Hi all
i want to obtain the ID and Type of a UDF form which opens as a side form for a given SBO form. question is how can i obtain the ID and Type of the UDF form thourgh code?
appreciate the help
YoavHi Yechiel
Trying with the following code:
Get ID of Item : pVal.ItemUID
Get Type of Item: oForm.Items.Item(pVal.ItemUID).Type.ToString
I hope useful for you!!
Regards -
hello everybody
i wanted to get a reference of the used defined field form which is associated with the active system form
can someone suggest me what the best way to do it???I wrap a try block around the attempt to retrieve the udf form & if that
fails I activate the UDF form.
try
Form UFForm = B1Connections.theAppl.Forms.GetForm("-" + form.TypeEx, form.TypeCount);
catch
B1App.ActivateMenuItem("6913") 'display udf screen
Form UFForm = B1Connections.theAppl.Forms.GetForm("-" + form.TypeEx, form.TypeCount);
end try
I think I mixed C# & VB code in there, but I'm sure you get the idea. -
UDF Form et_KEY_DOWN event.
Hi all,
Has anyone had problems with the above event? I cannot seem to trap it on a UDF form, it works fine on a standard form. Using SBO 6.5 SP1 P7. For example:
- This code works fine.
Set oFilter = oFilters.Add(et_CLICK)
oFilter.Add -139 'Sales Order UDF form.
If pVal.FormType = -139 And pVal.EventType = et_CLICK Then
oApp.MessageBox "hello"
End If
- This doesn't work.
Set oFilter = oFilters.Add(et_KEY_DOWN)
oFilter.Add -139 'Sales Order UDF form.
If pVal.FormType = -139 And pVal.EventType = et_KEY_DOWN Then
oApp.MessageBox "hello"
End If
Any suggestions?
Regards,
Andrew.Hi,
SBO catches the KEY_DOWN event only if one of controls of the form has focus
Regards,
Mark
Message was edited by: Mark Gulyansky -
Hi all.
Anybody knows how to get the UDF Form UID corresponding to any form???
UDF Form Type is "-" & FormUID but, is there corresponding between UIDs?
Really, i need it to reference an item in UDF Form by code, and I think this is the unique way
Thnk all
Ñ: Hola a todos¿Alguien sabe como averiguar el UID del UDF Form correspondiente a uno dado?
Es decir, de la misma manera que el tipo es el tipo del formulario con "-" delante, ¿como puedo saber el UID del UDF Form?
Realmente lo quiero para referenciar un Item del UDF Form por codigo, y pienso que esta es la unica manera
GraciasHi
if you want to read some data of a userfield try this
put this on itemevent, this code is only for reading, isn't permitted to use setvalue in a system form
If pVal.FormTypeEx = "nnn" Then
'nnn must be the number of your system form i.e 140 delivery
'SBO_App is your application object
Dim datos As DBDataSource
Set datos = SBO_App.Forms.ActiveForm.DataSources.DBDataSources.Item("XXXX") 'puede ser OINV, ORDR o lo que sea
Dim valor As String
valor = datos.GetValue("U_YourUserField", 0)
End If
Ñ:Hola
si quieres leer de la ventana de campos de usuario pon el codigo que te he puesto arriba en el itemevent y con eso conseguiras acceder al campo de usuario del documento que tengas activo en ese momento, no se puede asignar valor de este modo si el form principal es del sistema , esperemos que en el 2005 si se pueda.
Kind regards
Salvador Biot -
Current page printing problem - while repeating pages : Adobe forms
Hi Experts,
I have a problem in printing current page number of an adobe form.
My requirement is that , my form got 2 pages. On first page i am not printing page numbers and excluded from numbering.
Numbering starts from second page. The second page needs to be repeated twice.
In this case my page printing should look like :
First page - no page number
second page - 1 of 1
Third page - 1of 1 (as it is a copy)
IF second page extends to multiple pages (eg.. 2)
First page - No Page no
First instance of second page - 1of 2 , 2 of 2
Second instance of second page - 1 of 2 , 2 of 2 . Presently it is printing like : 3 of 2 , 4 of 2. I need to initialize current page count. I could able to set the total page count 2 via variable from print program. But while printing the second instance, I am not able to initialize the current page count.
I have seen the following thread which exactly talks about my problem but with out any solution.
Re: Adobe Forms - Page Count
Can any one help me in this regard.
Thank You,
Regards,
Naresh.Hi,
I am not sure how your page design looks like.
Assumption:
During runtime, ONLY 1 page for Page1, multiple pages for Page2 and Page3, same number of pages for Page2 and Page3.
This is what i did:-
I have 3 pages:
Page1: With NO page number: ONLY 1 page
Page2: With page number: Multiple page
Drag the "Insert -> Custom -> Page n of m"
- TextField: "CurrentPage",
-- replace the original script: "this.rawValue = xfa.layout.page(this)" with "this.rawValue = xfa.layout.page(this) - 1"
- TextField: "PageCount",
-- replace the original script: "this.rawValue = xfa.layout.pageCount()" with "this.rawValue = ( xfa.layout.pageCount() - 1 ) / 2"
Page3: With page number: Multiple page
Drag the "Insert -> Custom -> Page n of m"
- TextField: "CurrentPage",
-- replace the original script: "this.rawValue = xfa.layout.page(this)" with "this.rawValue = xfa.layout.page(this) - 1 - ( xfa.layout.pageCount() - 1 ) / 2"
- TextField: "PageCount",
-- replace the original script: "this.rawValue = xfa.layout.pageCount()" with "this.rawValue = ( xfa.layout.pageCount() - 1 ) / 2"
Good luck. -
Safari repeatedly trashing Other Forms data
Any idea what would cause Safari 5.0.4 to repeatedly trash the data in the Form Values file? It seems to affect only the Other Forms data (not the passwords). I can easily restore from yesterday's backup and everything will work normally for a while, but within a few days, the file will be munged again. The corruption seems to occur either during a Safari Quit or the first Safari launch of the day (at least most of the time). (No odd plug-ins.)
I continue to have this problem with Safari 5.0.6 (and can't upgrade to 5.1 because it's Autofill feature is useless). Two days ago, my Other Forms file (in User/Library/Safari) lost most of its data 8 or 9 times in about 5 hours. The file would go from 512KB to 24KB or 72KB. It would still have maybe a dozen or two entries, but all the others (several hundred) would have disappeared.
I would quit Safari, restore the Other Forms file from my backup, and relaunch Safari. All data would be there. A half hour later, it would have disappeared again. Each time, I choose a slightly older backed up file. Eventually, the deletions stopped and, for the past 2 days, I haven't lost anything, but I know from experience that it will happen again.
Apple doesn't have any clues and has nothing to suggest. I've run diagnostics but found nothing. Disk Utility finds no problems. Everything else works fine. Weird.
Maybe you are looking for
-
Hi, I have an iphone 4S and am trying to set up mail so that I can send and receive relating to our home email account which is unfortunately a "btconnect" address and a POP3 account. How do I do it please? BT seem unable to supply IMAP settings. Do
-
I called Sprint yesterday and was treated terribly by tech support because I didn't want to switch devices. They as much as called me outright stupid for wanting to stay with my Palm Pre. Even though they agreed that all four phones were broken out
-
Adobe photoshop cc 2014 stops working
Hi all, Recently got myself signed upto CC for L5 and Photoshop CC, however when I open up CC it immediateley crashes and closes down saying 'adobe photoshop cc 2014 has stopped working' then goes on to say a program disabled it but windows cant find
-
Exchange rate diff amount posted to AUC asset
Hello All, I am stuck with one issue and looking for some help We are creating purchase order with account assignment as projects and then doing MIGO & MIRO and then settling through CJ88 to AUC asset. The issue is related to exchange rate difference
-
Hi all, can anybody suggest me the way to create payment proposal run to post the invoice throgh transaction FB60 with function module or anyway... I want to create a payment proposal in my report program.. Thanks in advance, Gaurang