How to shift focus
how to shift focus SAPbouiCOM.BoFormMode.fm_ok_MODE
to SAPbouiCOM.BoFormMode.fm_add_MODE with all focus
etc of add mode encarporated
Rahul,
You should be able to use the Form Mode property to achieve the same.
oForm.Mode = SAPbouiCOM.BoFormMode.fm_ADD_MODE
Regards,
Dhruv
Similar Messages
-
How to use tab key with JTextArea to shift focus
Hi
My problem is simple as whenevr i use tab key in my JTextArea, instaed of shifting focus to next component, it adds a tab space to my text.
How do i shift focus out of my JTextArea.
Ashishyou can also redefine the textarea's TAB Key behaviour. The tutorial has a good example for that - better than i would be able to describe :-)
look at http://java.sun.com/docs/books/tutorial/uiswing/misc/keybinding.html -
How to retain focus in Web forms 6i item when displaying pdf image
How to retain focus in Web forms 6i item when displaying pdf image in a multi-record block?
Hello.
I have a Web Forms 6i program (version Forms 6.0.8.19.2) running in a 3-tier application. The web form program has a multi-record block containing invoices. When navigating to a record, the form should display the PDF invoice image which is stored in an Oracle 8.1.7 database as a BLOB in another window. When user press down-arrow, the next PDF invoice image should be displayed.
I am able to accomplish the functionality above by using web.show_document('URL', target') in the when-new-record-instance. The URL being called is a PL/SQL Web Toolkit stored procedure using wpg_docload.download_file built-in.
The problem is that the focus is lost on the Webform and the focus is shifted to the PDF image window when you navigate to the next record using down-arrow. I want to retain the focus in the form as this is a data-entry form, the operator will use down-arrow to go to the next-record rather than the mouse. I also only want to do this for this Invoice Entry form and NOT to all forms.
Please advise how to resolve this problem. Thank you.
Regards,
ArmandoMagesh,
the issue of a SSO protected form showing the logon dialog is a knwon issue for Windows200 and the Oracle9iAS base release. If you applied Forms Patch 1 then this should be solved. Hope that I am right in that you are using Oracle9iAS and not Oracle9iDS. Do you see the Single Sign-On logon screen or the Forms logon dialog directly? Check the forms90.conf file in teh forms90/server directory as this contains the Form sso settings (mod_osso) which by default is commented out and therefore inactive. You need to remove the commenting '#' characters and make sure that each sentence having a '#' in front, after that starts on a new line.
The Forms deployment documentation within the Oracle9iAS docu provides this information too.
Frank -
Hello, how do I focus on a small section of screen using a circle with everything else blurred for a presintation? Thank you
Try Mouseposé.
Matt -
How to set focus order of multiple Component in a Frame
I have created a Frame with contain some Label, Textfield, Choice and Buttons
How do set focus order on these Componentswrite an implementation of
import java.awt.*;
public class PanelFocusTraversalPolicy extends FocusTraversalPolicy
public Component getComponentAfter(Container container, Component component)
if(component.equals(cmp1))
return cmp2;
if(component.equals(cmp2))
return cmp3;
return cmp1;
public Component getComponentBefore(Container container, Component component)
//implentation of method
public Component getDefaultComponent(Container container)
return cmp1;
public Component getLastComponent(Container container)
return cmp3;
public Component getFirstComponent(Container container)
return cmp1;
public PanelFocusTraversalPolicy()
}and set the focus traversal of frame.
setFocusTraversalPolicy(new PanelFocusTraversalPolicy()) -
How to set focus on a button that I created dynamically
Hi everyone,
Code :
lc_view_ctrl = wd_this->wd_get_api( ).
lc_window_ctlr = lc_view_ctrl->get_embedding_window_ctlr( ).
l_window = lc_window_ctlr->get_window( ).
l_window->set_button_kind( button_kind = if_wd_window=>co_buttons_okcancel ).
How do I focus on the OK button ?
Thanks.
RegardsI aswered my question :
When you subscribe to the event, write :
l_window->subscribe_to_button_event(
button = if_wd_window=>co_button_ok
button_text = lv_button_text
tooltip = lv_tooltip
action_name = 'CONFIRM_DATA'
action_view = lc_view_ctrl
is_default_button = abap_true -
How to set focus on UI Element
Hi All,
I am using the below code to set the focus on the first row of the table given in the link [How to set focus at UI element ? ] on enter of an event.
data: lr_elem type ref to if_wd_view_element.
lr_elem = view->get_element( <ID of the Link to Action field>).
if lr_elem is bound.
view->request_focus_on_view_elem( lr_elem ).
endif.
I am getting "Cannot use NULL reference as object error at view".
Can you please tell me how to get the reference of the "view".
Thanks
Praveen>
praveenkumar_81 wrote:
> Hi All,
>
> I am using the below code to set the focus on the first row of the table given in the link [How to set focus at UI element ? ] on enter of an event.
>
>
data: lr_elem type ref to if_wd_view_element.
> lr_elem = view->get_element( <ID of the Link to Action field>).
>
> if lr_elem is bound.
> view->request_focus_on_view_elem( lr_elem ).
> endif.
>
> I am getting "Cannot use NULL reference as object error at view".
>
> Can you please tell me how to get the reference of the "view".
>
> Thanks
> Praveen
Hallo Praveen,
have you controlled that id of the Linktoaction ? there you made error.
See it in the ViewElement designer .
should be something like this
lr_elem = view->get_element( 'LTA_name ' ). -
How to set focus on next row inputfield in table
Hello all,
How to set focus on next row input field in table
Please help.
Thanks in advance.
CSPHi,
use the following code
wdThis.wdGetAPI().requestFocus(nodeElement, attribute)
Ex:
Provide the attribute and replace the nodeElement with that of yours
IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().getAttribute("Your attribute");
wdThis.wdGetAPI().requestFocus(wdContext.currentContextElement(), attributeInfo);
Regards
Ayyapparaj -
How to set focus on an element inside a datatable on load
How to set focus on an element inside a datatable on load
Check out https://blogs.oracle.com/groundside/entry/ever_wondered_how_uncommitteddatawarning_works and
Decompiling ADF Binaries: Checking for dirty data
Timo -
How to set focus on the last row of JTextPane
how to set focus on the last row of JTextPane?
import javax.swing.*;
import javax.swing.text.html.*;
import java.awt.*;
import java.awt.event.*;
public class MyGUITest extends JPanel implements ActionListener
{ public static void main(String[] args)
{ SwingUtilities.invokeLater(new Runnable()
{ public void run()
{ JFrame f = new JFrame("My GUI");
MyGUITest GUI = new MyGUITest();
GUI.setOpaque(true);
f.setContentPane(GUI);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.pack();
f.setLocationRelativeTo(null);
f.setVisible(true);
JTextPane txtP;
JButton add;
HTMLEditorKit hek;
HTMLDocument hd;
String txt;
MyGUITest()
{ this.setLayout(new BorderLayout());
this.setPreferredSize(new Dimension(400,200));
txtP = new JTextPane();
txtP.setEditable(false);
txtP.setContentType("text/html");
txtP.setText("");
hek = new HTMLEditorKit();
txtP.setEditorKit(hek);
hd = new HTMLDocument();
txtP.setDocument(hd);
JScrollPane sTxtA = new JScrollPane(txtP);
add = new JButton("add");
add.addActionListener(this);
sTxtA.setBorder(BorderFactory.createTitledBorder(""));
this.add(sTxtA, BorderLayout.CENTER);
add(add, BorderLayout.SOUTH);
new Thread(new Runnable()
{ public void run()
{ while(true)
{ try
{ Thread.sleep(100);
}catch(InterruptedException ex)
{ ex.printStackTrace();
appendText("This is <b>HTML</b> text");
//add.doClick();
}).start();
public void actionPerformed(ActionEvent e)
{ txt = "<b>asd</b>";
try
{ hek.insertHTML(hd, hd.getLength(), txt, 0, 0, null);
}catch(Exception ex){ ex.printStackTrace(); }
public void appendText(String txt)
{ try
{ hek.insertHTML(hd, hd.getLength(), txt, 0, 0, null);
}catch(Exception ex){ ex.printStackTrace(); }
}thanks~anIdiot wrote:
im not sure what is the caret location...So don't youthink you should have looked for it in the API?
anyway, i want the scroll bar to scrolled down automatically when the output is displayed.
normally, the scroll bar is scrolled down automatically when a new text is inserted, but it doesnt work on this timeGo through camockr's http://tips4java.wordpress.com/2008/10/22/text-area-scrolling/
db -
How to shift Negative sign from Right to left
Hi friends,
please tell me How to shift Negative sign from Right to left for quan data type i am getting on right side but i want to display it on left exactly preceding my output number display.hi yogesh
check this function module..
<u><i><b>CLOI_PUT_SIGN_IN_FRONT</b></i></u>
this will move the negative sign from the left hand side of a number, to the right hand side of the number. Note that The result will be left justified (like all character fields), not right justifed as numbers normally are.
chck this example..
data: a1 type i value 56 ,
a2 type i value 60,
res type i.
res = a1 - a2.
data: res1(10).
res1 = res.
CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
CHANGING
VALUE = res1
write res1.
I<u><i><b>MPORTANT</b></i></u>
You can use this FM CLOI_PUT_SIGN_IN_FRONT.
But you need to declare the amount field as char.
Or you can code like this
data int type i.
data char(10).
int = -4.
int = int * -1.
write int to char.
concatenate '-' char into char.
reward if useful..
Message was edited by:
navjot sharma -
How to set focus programmatically in a table ?
Sir,
How to set focus programmatically in a table using javascript?
Is it document.getElementById('form1:table1:i:column1').focus(); ?
Thanks
StephenRepost
-
How to shift object slightly in keynote?
How to shift object slightly in keynote? It always jumps to be alighned with other objects.
First, the reason why that's happening is because you have Alignment Guides turned on in the Preferences under Rulers. If you turn that off, then it'll stop snapping to other objects.
If you do generally want alignment, BUT, every now and then just need it to move objects so that they won't SNAP to it, you can hold down the Command key either before you start dragging or after you've already started dragging. This will cause the object you're dragging to stop snapping to alignment guides for as long as you're holding down Command.
Also, if you just need to move an object 1 pixel, you can use the arrow keys. Holding down Shift while pressing the arrow keys moves you 10 pixels for every arrow press instead of 1. -
How to change focus in programmatic way?
Hi,
1. how to change focus in programmatic way?
2. is there any way to define tab index?
With Regards,
Wai Phyo1). http://docs.oracle.com/cd/E16162_01/apirefs.1112/e17491/tagdoc/af_scrollComponentIntoViewBehavior.html
2). no -
Shift focus to active tab?
Hi,
Is there a keyboard shortcut to shift focus to the active tab? I like to move between tabs using ctrlshiftarrow, but if the focus is on some element in the tab like a text box or button, the shortcut doesn't work. I usually have to click on the tab's title up top to get the focus in the right place so that I can move between tabs.HI,
Try restarting your Mac and then do Command + Shift + < or >
Just make sure you haven't clicked inside a text box.
Carolyn
Maybe you are looking for
-
Eclipse TPTP to track memory leak?
Hello, I am writing a rather large program and I am collecting a lot of data. My problem is that I'm running out of heap space. I need to track large amounts of weather data over the course of the year, but I don't think that is the problem. I think
-
Trouble obtaining approved refund, terrible customer service
Hello, on 11/3/2014 I sent my U310 Touch into the repair depot under warranty to get fixed. On 11/17/14, parts were no available so I escalated to a refund in which a case manager was assigned to me and accepted my refund. He said that the refund che
-
OS 2.1 Bug with CGAffineTransform and Views?
Anyone get any complaints about shifting images in OS2.1? I use [[rootViewController view] addSubview:[holdemController view]]; CGAffineTransform rotate = CGAffineTransformMakeRotation(1.57079633); rotate = CGAffineTransformTranslate (rotate, 80.0, 8
-
Lightroom for iPad - if you have CC Subscription
As per the Subject, apparently Lightroom is now available for the iPad, but only if you have a CC Subscription http://petapixel.com/2014/04/07/adobe-brings-lightroom-ipad-creative-cloud-subscribers/ I don't understand the restriction at all!
-
WD 320GB in my macbook does not show reliably in Disk Utility
Hi I have bought a Western Digital 320GB Scorpio for my C2D MacBook but it does not seem to work as an internal disk in the macbook, when unformatted it does show up (but not every time) but when formated as MacOS Journaled it never shows up in Disk