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
Tim
Hi,
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
Similar Messages
-
Filling up a pdf form which I received as email. I opened it on my adobe reader 11 and filled up the highlighted fields. Yet when I click on the send via mail it says changes will not be included. How do I send the form with changes?
The add annotations field shows as not allowed in the security options. So how do I send this form back with the changes??I think you you need to click 'save' first, then it is saved to acrobat, where it will prompt to send.
-
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 -
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,
KitHi 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 -
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.
-
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 -
How do you switch to forms mode on a officejet pro 8600
I just set up a new officejet pro 8600 and printed a paper from laptop across the middle of page a message printed saying screen reader userslease switch to forms mode for this link can anyone help?
Product Info??
Operating System??
Connection type between TV and the Computer?? HDMI....?
||-Although I am working on behalf of HP, I am speaking for myself and not for HP.-||
//Click on Kudos if my reply was helpful and answered your question//
||-If my answer solved the problem please mark the topic as the accepted solution-|| -
How to control the opening form multiple times
Greetings to all,
I used Open_Form to open the form in my 'Menu.mmb'.
My Question is:
How we control the opening of a form from multiple times?
Ex:
In my menu.mmb I used OPEN_FORM.If we open the form,which was already opened ,I want to stop the form to open. How to do this?
Thanks,
Bhujendrapls try with
FIND_FORM('EMPDETAILS1');
OPEN_FORM('C:\INH\EMPDETAILS1');
jeneesh -
How to Initialize Items on Form
Hi Everyone,
I have created a form in screen painter with 2 items as editBox. Form is able to load but I want to initialize one item by current Date and other item from data table i.e. field prid should have a document no and field prdate should display current date OR user should enter '-t' then current date should display.
How to achieve this functionality. (SBO 2005B)
Regards
OP SharmaHi Lakshman / Mongi,
It is still not working. Maybe I missing something. Here is the code I am using:
LoadFromXML("Purchase_requistion.srf") ' Form load successfully
oForm = SBO_Application.Forms.Item("opsPR") 'Form UID
'Initialize the Item on the form : uid="reqDt" ,type = it_edit
oForm.Items.Item("reqDt").Specific.String = DateTime.Now.Date.ToString()
oForm.Visible = True
It is still displaying blank item i.e. Request Date. (I want it exactly as displaying in all SBO form like Sales Order etc, default is today date and format should be mm/dd/yyyy as per format defined in SBO)
Please help.
Regards
OP Sharma -
How to control item category in ME21n via authorization
Hi,
When creating/changing PO in ME21N/ME22N how can I give access to only certain item categories via authorization objects.
Many thanks for your help.
Alain.Hi,
Please check the following:
If to a certain document type is assigned the 'blank' item
category (Category Text : Standard) for the document type in customizing ( Transaction olme ->
Purchase Order -> Define Document Types -> Select Document Type 'ZSVC'
-> Click Allowed Item Categories ), the system therefore would allow for the
item category to be left blank when the PO is created/saved, even if the
field selection key specifies it to be mandatory.Please note that in
case of the item category, the field selection key customizing is
actually not considered here but only the item categories defined.
If you would like to require an item category to be entered for the PO,
then kindly delete the standard item category type and other item category types rom the customizing of
the document type you use.
Regards,
Edit -
How to control tabbing in forms
I created a Flash form with a combination of input text boxes
and combo boxes however I cannot figure out how to get them to tab
through in order. I have changed the order on the time line, that
doesn't help, the names do not appear to have an effect. I would
like the user to enter data and or select information from the
combo box and then tab to the next box in sequence. Not jump all
over the page when tabbing through the form.
Can someone help me?Thank you Rob. I didn't know where to look. I did figure out
the text boxes but not the combo boxes, but it works and looks
better than it did before.
Thanks again... -
How do I exit edit form mode in Acrobat 7?
I haven't used the program for a while and I can't remember how. I thought it was a quick button somewhere, but I'm just not seeing it... I feel like a dunce...
OK, I'll bite. I'm in form editing mode and no hand tool appears. How can I make it show up? Do I have to quit the application to get out of form editing mode, then learn how to make the Hand Tool show up before I go back into form editing. Obviously, I'm trying to avoid a learning curve for using the app. That's what mobile devices have done to the philosophy of computer use, is it not?
-
Af:query how to control the query combobox and change it's label text
My colleague designed a well working af:query search page with several selectable predefined queries. Now it's up to me to control this combobox from outside the component with big colored buttons for user convenience. If the user clicks on one of the big buttons, the assigned item of the combobox is selected and then the query is submitted.
I though about doing this with javascript, but the difficulty is, that I have no idea and didn't find a way to reference the id of the combobox? The combobox is a 'built in' component in he af:query component and there is no way to give it an id in the properties.
The second problem is that I didn't find a way to change the label text of the combobox. It seems to be hard coded?
Thanks in advance for your suggestion!Hi,
the text should be coming from a message bundle and some other look and feel related elements should be settable through skinning in CSS
http://www.oracle.com/technology/products/adf/adffaces/11/doc/skin-selectors.html
search for af|query
Regarding the JavaScript access, use firebug JS debugger. The af query class is AdfRichQuery.js
http://www.oracle.com/technology/products/adf/adffaces/11/doc/multiproject/adf-richclient-api/js_docs_out/AdfRichQuery.html
Note however that you should be able to do in Java what you are aimning for in JavaScript. However the usecase you want to implement is not fully clear to me - to be honest
Frank -
How to control gaps between JPanel
I have some problem controlling the gaps in my application.
A main JPanel. Inside has a JScrollPane, which inside has one or more JPanel. The internal JPanel uses GroupLayout to lay the buttons and labels.
The top JPanel has a setSize(900,900).
Everything comes out fine but the gap between the internal JPanels are a bit problematic. If the JPanels are only a few, the gaps between them are huge and unsightly.
Where and how do I control the gaps, or have a fix gap size?
I tried but can't seem to get it.
Thanks in advance.
Here's a part of the code
JPanel p = new JPanel();
p.setLayout(new GridLayout(**number of internal JPanel**,0));
for(*looping for internal JPanel*)
*creating Buttons and Labels and stuff*
JPanel ip = new JPanel();
// GroupLayout
GroupLayout glQ = new GroupLayout(ip);
glQ.setAutoCreateGaps(true);
glQ.setAutoCreateContainerGaps(true);
GroupLayout.SequentialGroup hGroupQ = glQ.createSequentialGroup();
GroupLayout.SequentialGroup vGroupQ = glQ.createSequentialGroup();
hGroupQ.addGroup(glQ.createParallelGroup().addComponent(Label1).addComponent(Label2));
hGroupQ.addGroup(glQ.createParallelGroup().addComponent(TextField1).addComponent(TextField2));
glQ.setHorizontalGroup(hGroupQ);
vGroupQ.addGroup(glQ.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(Label1).addComponent(TextField1));
vGroupQ.addGroup(glQ.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(Label2).addComponent(TextField2));
glQ.setVerticalGroup(vGroupQ);
ip.setLayout(glQ);
p.add(qnsp);
JScrollPane sp = new JScrollPane(p);
Edited by: KsH--- on Apr 23, 2008 11:18 PM
Edited by: KsH--- on Apr 23, 2008 11:19 PMI think the issue lies with the gridlayout.
As it will make full use of the space. If there's only a few JPanels, it will make full use of it and result in huge gaps in between JPanels.
e.g. JPanel with gridlayout with 2 buttons. The 2 buttons fill up the whole JPanel ending up with 2 huge buttons. -
TextField and CSS: How to control spacing between paragraphs
I'm using an external CSS to format a textField that has some
HTML text in it, let's say something similar to this:
myTextField.htmlText = "<p>paragraph
one</p><p>paragraph two</p>";
How can I control the spacing between paragraphs when there
is no support for margin-top or margin-bottom? I don't want to add
empty <p> or <br /> elements to my text since they
don't allow exact control and insert too much space. Is there any
good solution?
ThanksI think rob day's suggestion has merits too. Either way I
don't see any other way but inserting an extra element that adjusts
the spacing somehow.
Yes, it sucks that the majority of styling declarations are
not supported but, on the other hand, it is not such a big deal to
insert an element especially with the powerful XML tools in AS3.
You can create a function that will preprocess all XML "page"
nodes and insert an extra <p> tag after each <p> tag
(see attached code)
I did not check if code works - it is just a concept.
The same approach can be taken with rob's suggestion but
inside the <p> element that comes with the XML.
Maybe you are looking for
-
Error while running the application on OC4J (Very Urgent!!!)
Hi, I have deployed the application successfully , but while running from the browser , we are getting the following error :- 403 Forbidden Directory browsing not allowed.. Please help .. Nidhi
-
JSP, BC4J, AM: where/when are the PCST tables created
Hi all. I am currently needing to access a second database instance from my BC4J JSP application, and so I have added a new Application Module to my project. For some reason that I don't understand, the wizard doesn't ask you what connection to use.
-
is it at all posible in java to create you own event s. and have listeners for them like the one ActionListener has the method actionPerformed(ActionEvent e) can i make my own methods that are triggered by events and are only called if a new event is
-
How to delete updating presentations in Keynote?
I have keynote on my ipad 2 and use it to look at powerpoints while I study. I normally upload them from dropbox since I have powerpoint on my mac. For some reason, one of the presentations has been constantly updating and since it is not longer in m
-
How can I change buffer size in iTunes 10? "Streaming Buffer Size" pop-up menu does not exist under Preferences--Advanced.