Form Mode Change
Dear everyone,
I followed the SDK sample code "SystemFormManipulation" and add a tab in sale order form. I found that the form mode will change when the newly added tab is clicked. Why this happen?? How could i solve it??
Thanks!!
Regards,
Kit
Hi Kit,
Try this in the tabs items:
oItem.AffectsFormMode = False
What is happening is that when you select a tab, you're changing the datasource (user or db), so that the form mode is affected. This way you will solve it.
Hope this helps,
Ian
Similar Messages
-
How to control item between Form mode change
Hi Experts
I am using B1DE to do something like some item's enable status will be changed following the Form mode change.
For instance, add a new matrix into system form, if changing the Form mode to Find, I want to disable this matrix, if changing to Add mode, the matrix should be enable.
Do you how how to do this?
Thanks
TimHi,
You need to capture Menu Event in your code and can make matrix either editable or non editable.
Sub MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean)
Try
Dim oForm As SAPbouiCOM.Form = objMain.objApplication.Forms.ActiveForm
If pVal.BeforeAction = False Then
If pVal.MenuUID = "1281" Then // For Find Mode
//make matrix editable or non editable
End If
End If
Catch ex As Exception
objMain.objApplication.StatusBar.SetText(ex.Message)
End Try
End Sub
regards:
Sandy -
Form mode changes in update mode while clicking on folders
On user defined form
While navigate last record form mode is "Ok"
when i click on further folders form mode going to change in update mode
How to resolve this problm?Hello,
I experienced this yesterday as I was creating new form with ScreenPainter.
I solved it by directly editing the resulting srf file (xml syntax).
The folders can easily be identified from their type (type="99") and I changed the AffectsFormMode attribute from 1 to 0 in both the "item" element and the included "specific".
Regards,
Eric -
Hi,
Is there any way to capture form's mode change? (eg: from OK to UPDATE...)
ThanksAs far as I've tested (I'm developing it by now) you must coordinate some pieces:
1) First, your form must set AutoManaged="1" attribute
2) Second, every item which you decide changes your form status must set AffectsFormMode="1" attribute (for example, set to "1" for edittext, but "0" to folders because if you click a folder item it doesn't affect your data)
3) capture the itemevent and menuevent of this form, and check then form's mode property
I hope it helps, greetings
Jose Manuel -
Detect form mode change?
can anybody please tell if and how is possible to detect (i.e., an event is generated only for this) when user changed form mode ? meaning something like not having to check pVal.FormMode in another event.. just if there a special way to detect that? because I want to do some custom actions when this happens. thanks in advance.
try it in menu event - Find is 1281, new is 1282. For the rest form modes you should check it in item event - maybe is easier solution.
-
How can we track the entire event in which the form mode gets changed?
If the form is in OK Mode and if the user edits any field(Including UDF Window Fields). form mode changes to Update...So at that time, how can we track the entire event in which the form mode gets changed?
Thanks
HariDear hari angamaly,
You could get the form mode by FormMode Property in ItemEvent Object in UI API.
Best Regards
Jane Jing
SAP Business One Forums team -
WF_EXTSRV: use PDF Form in Change mode in Portal:
Hai,
I'am trying to use transaction WF_EXTSRV to generate a task which can be used within the UWL from the portal. The main purpose of this task is to show an exsisting PDF form in change mode. I allready found some nice information from SDN, but not enough to make it all work. I still have still these questions:
1) How must I setup the required fields within transaction WF_EXTSRV when I want to generate for example this url:
http://abc.abc.nl:51800/webdynpro/dispatcher/sap.com/pcui_gp~isr/IsrForm?SCENARIO=SPEG&MODE=CHANGE&NOTIF_NO=000600000003
2) How must a then setup transaction SWFVISU? Which apllication and package name.
I hope some can help me.
Greetings,
RemcoHi,
When do you get this error ... "No scenario specified". ???
I mean did you try creating an iview for IsrForm Java WD application sending the Scenario name as parameter?
Betn us,
Why dont you try the parameter IFV='P' for IsrFormApprove Java WD application itself. Get to know more about this parameter in these threads...
Re: Buttons for ISR_APPROVE & ISR_PROCESS appearing in Workflow
https://forums.sdn.sap.com/click.jspa?searchID=165819&messageID=1268222
Regards,
<i><b>Raja Sekhar</b></i> -
Change form Mode as Add for master data while Loading
Hi,All
I have a master data form(user form). By default it will load and shows Find mode but i dont want find mode i want add mode after loading
plz suggest me a good idea..
By
Firos.CHi,
After the form is loaded in the load event, change the form mode.
objForm.Mode = SAPbouiCOM.BoFormMode.fm_ADD_MODE
Or
objSBOAPI.SBO_Appln.ActivateMenuItem("1282")
Hope it helps,
Vasu Natari. -
XML Forms: save form in "Show Form" Mode
Hi All,
Is there a way to have 2 edit screens in XML Forms?
My scenario:
1) user creates form
2) admin reads form and changes the property "status" to "form read" (a field that the user does not see) and saves.
Is this possible?
I can add the controls for the "status" input and save button.
But when in Display mode I click on the save button and it errors.
Cheers,
Vic
Message was edited by: Victor YeohIn the URL Generator Service, XML forms CSS file path changed. I've reset the XML forms CSS file path to /irj/go/km//etc/xmlforms.
This resolved our issue. -
Hi, I have a little problem, i was reading in the forum, but nobody has the same problem, so, i have a form, with 2 dbdatasources, one to OITM, and the other to OITW, in the form load i use the query method over the oitm dbdatasource and oitw dbdatasource and works fine, but by default the form opens in Find Mode and it's fine, when I change to Add Mode, all the dbdatasources disappers, and the update method doesn't work, does anybody has the solution of that?
i change the form mode to open in Add Mode but when I change to Find mode and the form works in the same way, dropping all the dbdatasources.
Message was edited by: Rodmmy OrtizHey Rodmmy,
By default Business one resets the dbdatasources when changing to add mode as it assumes a new record is being added.
can you change the forms mode to add or OK mode first instead of find? and then populate the dbdatasource -
In my user defined form, i start the form in FIND mode. After i entered values into the edittext and change the form mode to OK mode via SDK, the edittext value is all refresh to empty
WHy is this happening? Is this normal? Is there any solution to this?
Thanksseems to be normal..I don't know..
First try to add a TextBox to your Form and before you change it to "Ok" Mode, set the Textbox's Text with your Edittext..
or declare a global string variable and before changing the Form Mode, give your value to this string
have a try..
greetz
Matthias -
Hi ,
created Add-on Form using screen painter. in form update mode i want to make my document no fleld(user defined) to be non-editable(enabled=fasle) like normal SAP screens.i used the following code for that.
Select Case pVal.FormUID
case "FormId"
Select Case pVal.Before_Action
case "true"
If pVal.FormMode = "2" Then
OForm = sbo_application.Forms.Item("Frmuid")
OForm.Items.Item("Doc_No").Enabled = False
End If
End Select
End Select
its working fine. but the event will trigger again and again until change in form mode.
i want to eliminate execution of statement once the docnumber field is set to Enabled = False in update mode.where i can add my code exactly?
regards,
Ganesh klhi
in the screen painter it self use editable=false for item which u want.
in the menu event for add menuUID and while form loading make item editable=true
and for the menus find,first record,last record,next record,previous record use editable=false
1.while opening the form if u r opening in add mode then make item editable=true
2. If (pVal.MenuUID = "1282") And (pVal.BeforeAction = False) Then 'Add mode
'make item editable=true
endif
3. If (pVal.MenuUID = "1281") And (pVal.BeforeAction = False) Then 'Find mode
'make item editable=false
endif
4.If ((pVal.MenuUID = "1288") Or (pVal.MenuUID = "1289") Or (pVal.MenuUID = "1290") Or (pVal.MenuUID = "1291")) And (pVal.BeforeAction = False) Then 'navigation mode
'make item editable=false
endif
hope this helps u
regards,
varma -
Hi.
I have the following problem:
My button is id 1.
If my form mode is Update and I do click on my button. this change to Ok.
I have a event that when a field is nothing this show a message and I need that it is on update mode.
Thank for your help
Regards,
JoseDear Jose Villarreal
You could implement the function as following code:
Private Sub SBO_Application_ItemEvent
Case et_ITEM_PRESSED:
If pVal.ItemUID = "1" Then
Set oEdit = oForm.Items.Item("test").Specific()
If oEdit.String = "" Then
oForm.Mode = fm_UPDATE_MODE
End If
End If
End Sub
Best Regards
Jane Jing
SAP Business One Forums team -
Gnu readline with vi mode change visualization
After a lot of searching how to get some kind of vi mode indicator working with GNU readline I've decided to hack readline myself. It's working fine for me and because I'm happy archlinux user I've decided to share my findings here, so maybe somebody will find it useful too.
there is a patch to readline needed - I've created AUR package readline-vi-mode-changed-hook
additional logic / configuration to provide your visualization
To not double post what I've already wrote in more detailed way, here is the link to my personal blog where I've documented the whole thing.
There are however few things still bugging me and maybe somebody will be able to help me with that. The particular thing which I would like to solve is to get escape sequence for changing cursor color working inside screen and tmux. I've found trick for screen but what is expectable is that when switching windows the cursor color is not reset by screen to last color set in particular window. Because cursor color sequence is not really a standard nor part of termcap / terminfo I feel it will not be so easy / possible ?
Last edited by mirci (2010-10-11 19:26:06)Sara wrote:Am using this with GNU screen, and it works great (no change in cursor color, of course, but I think I actually prefer that, as it isn't inconvenient to look at the window title in DWM). Thanks for sharing the patch--I don't know how I ever lived without it
Well I started with the window title as I use Xmonad, then I realized that looking up or down on screen isn't very convenient for me (mainly because of a big screen I have) but it's still fine, so I was thinking about visualization which would be closest to the prompt location, cursor color was natural choice however it is not very reliable in terminal multiplexers and in general. The latest and my favorite now is the change of prompt itself (eg. bold version).
Anyway thanks for feedback, firstly when published this I thought nobody is using VI mode with readline judging based on almost no feedback at all. It's cool that at least somebody found this patch useful .
lavandero wrote:
Would you be interested in porting this to NetBSD editline (libedit)?
Open/FreeBSD also use it, just in case that qualifies as incentive.
I don't use any application which uses editline. I know it just in the meaning that it is implementing similar functionality as readline do. I guess then some applications usually can be compiled with readline or editline (if author thinks it can be useful based on different licenses and so on) ... does the *BSD systems do it that way ? Anyway I have editline in my mind if I would maybe implement some application where I would need readline functionality. Readline is fine but to be honest I found the source code of it not very nice. So to your question ... as I'm not user of the editline so far I am not planing to port this patch there anytime soon.
Just out of my curiosity which let's say well known applications can be compiled against readline and editline, is it out of box provided by upstream or usually patches are done for it. How it works in *BSD then ? In my archlinux box I frequently use mainly 2 readline applications (bash, i/python). -
Logs for 'Operating mode' change in mirroring
Logs for 'Operating mode' change in mirroring
Hi Everyone,
Is there any log,that shows when the Operating mode of a database involved in mirroring(SQL SERVER 2008 R2) has been changed from asynchronous to synchrous(or vise versa).
Regards,
Aspet
A.GTry looking into trace log files
DECLARE @filename VARCHAR(100), @filenum int
SELECT @filename = CAST(value AS VARCHAR(100))
FROM fn_trace_getinfo(DEFAULT)
WHERE property = 2
AND traceid = 1
AND value IS NOT NULL
SELECT @filename
SELECT @filename = substring(@filename, 0, charindex('_', @filename)+1) + convert(varchar, (convert(int, substring(left(@filename, len(@filename)-4), charindex('_', @filename)+1, len(@filename)))-4)) + '.trc'
SELECT @filename
SELECT gt.EventClass,
te.Name AS EventName,
gt.TEXTData,
gt.NTUserName,
gt.NTDomainName,
gt.HostName,
gt.ApplicationName,
gt.LoginName,
gt.SPID,
gt.StartTime,
gt.EndTime,
gt.ObjectName,
gt.DatabaseName,
gt.FileName
FROM [fn_trace_gettable](@fileName, DEFAULT) gt
JOIN sys.trace_events te ON gt.EventClass = te.trace_event_id
WHERE EventClass = 116
AND TEXTData LIKE '%Alter
database%'
ORDER BY StartTime;
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Blog:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
Maybe you are looking for
-
Need to show some values from Lookup in Text Area of Request Dataset
Hi, I have a requirement where I need to display values(which are roles) coming from a lookup in text area. The reason behind is to show to end users list of roles. They should not be able to select these roles.They will just refer the list and enter
-
i am wondering if anyone can tell me how to go about getting a refund on my account with itunes for apps i have been billed twice for. this has happened befor and u used to be able to gointo purchases and report a problem and they would take care of
-
I have a 2012 MacBook Pro and lately I've noticed my computer is running very hot while using Safari, and only Safari. My battery says normal, but since my comp is running hot the battery is draining very quickly while Safari is open. I cleared all c
-
Are ServerSocketFactory backlog settings ignored on Fedora 8
Hi all, Is there someone out there who met problems on setting backlog size of a server socket? In an application of mine I use the instructions ServerSocketFactory myServerSocketFactory = (ServerSocketFactory)ServerSocketFactory.getDefault(); myList
-
I can't cancel my photoshop membership.
I can't cancel my photoshop membership. I've tried everything has been sad on the webpage. There is no cancel button or something like that. How will I cancel my photoshop membership?