Request focus for message area
Dear All,
As my screen is long hence if an error comes we will require to scroll down so I have added a message area UI element and in do modify method of the view i have request focus to my message area but it is not working. Below is the code which I have written:
try{
IWDMessageArea msgarea=(MessageArea)view.getElement("MessageArea");
msgarea.requestFocus();
catch(Exception e)
Is there any other property or changes need to be made.
Thankyou.
Regards,
Santosh
Hi,
In would say, create an input field at the top left corner of the screen. Set its width to zero and bind it to a context attribute say Va_ShowMesg of type string. Now insert a MessageArea UI element just below the inputfield to display all the erro message at the top left.
Now if you request focus for the input field using the following code, the focus will automatically come to the Message Area as well.
wdThis.wdGetAPI().requestFocus(wdContext.currentContextElement(),wdContext.getNodeInfo().getAttribute(
wdContext.currentContextElement().VA__SHOW_MESG));
You can call this code whenever you need to display message to user in the message area and shift focus of the screen to the message displayed.
Regards,
Tushar Sinha
Similar Messages
-
Problem with requesting focus for a list
Hi there !
What would be the right way to request focus for a list component ?
I can use select() method to select some item from a list, but the list itself still hasn't got a focus until I click it.
What I'd like to do is to be able to highlight some item from the list by using up and down arrow keys only, without clicking the list first =)The list is visible, but still this doesn't work.
I think that the reason for this may be that I'm running this app on Nokia 9210 Communicator emulator. The emulator itself has had some not-so-minor problems... -
Font style usage for Message Areas
Hi Gurus,
I've a small requirement wherein, I need to make the messages being displayed under Message Area in Bold/Italic/Underline.
Kindly requested to gimme the solution for the same.
Regards,
-Syed.Hi,
If you have used any of these mehods then automatically the underline will be there for the messages.
IF_WD_MESSAGE_MANAGER->
REPORT_ATTRIBUTE_MESSAGE,
REPORT_ELEMENT_MESSAGE
If message are related/liked to any attribute or element then underline will be there that links to the message.
Regards,
Lekha. -
Requesting focus for JTextField inside JPanel
I have an application with following containment hierarchy.
JFrame --> JSplitPane --> JPanel.
JPanel is itself a seperate class in a seperate file. I want to give focus to one of the JTextfields in JPanel, when the JPanel is intially loaded in the JFrame. I believe that I cannot request focus until the JPanel is constructed. I can set the focus from JFrame (which loads JPanel) but I want to do this from JPanel. Is there any technique to request focus from the JPanel itself (preferably during JPanel construction).
regards,
Nirvan.I believe that I cannot request focus until the JPanel is constructedYou can't request focus until the frame containing the panel is visible. You can use a WindowListener and handle the windowOpened event.
-
SOAP APIs needed to extract SOAP request arguments for message handler implementation
1. I am facing problem in using the Message Handler approach for the implementation
of webservices using SOAP on BEA weblogic 8.1. A SOAP request(XML format) can
be interrupted using the message handler and hence can be modified before it invokes
the webservice method. I have been able to successfully extract the SOAP Name
space xml format as a part of the SOAP request using the APIs given below
APIs:
SOAPBody body = env.getBody();
Name Spaces format:
<m:sayHello xmlns:m="http://www.bea.com/servers/wls70/samples/examples/webservices/basic/statelessSession">
<intVal xsi:type="xsd:int">100</intVal>
<string xsi:type="xsd:string">vikas</string>
</m:sayHello>
The above is a Hello world example which invokes the sayHello method with arguments
as an integer and a string. I have not been able to find the SOAP APIs to extract
these arguments from the SOAP Body.
2. But there are XML apis which can extract the tag data from the SOAPBody e.g
NodeList nl = body.getChildNodes();
for(int i = 0; i < nl.getLength(); i++)
Node node = (Node)nl.item(i);
if(node instanceof SOAPElement){
SOAPElement se = (SOAPElement)node;
String operationName = se.getLocalName();
String value = se.getValue();
The SOAPBody interface implements the following interfaces (Ref : http://java.sun.com/j2ee/1.4/docs/api/index.html
javax.xml.soap > SOAPBody )javax.xml.soap.Node, javax.xml.soap.SOAPElement(SOAP APIs)
org.w3c.dom.Node, org.w3c.dom.Element (XML Parser APis)
3. But webservice implementation of Weblogic Application server 8.1(webservice.jar)
doesn't support the XML parser APIs and only supports the SOAP APIs.
i.e. The SOAPBody Interface of Weblogic Application Server only implements the
javax.xml.soap.Node, javax.xml.soap.SOAPElement (SOAP APIs) and not the XML APIs
(org.w3c.dom.Node, org.w3c.dom.Element)
So the code snippet written as a part of point 2 will not be compiled(give compilation
error) using the webservice.jar of Weblogic 8.1.
4. I have tried to compile the same code using the saaj-1_2-fr-api.jar (SOAP 1.2
apis jar) which I have downloaded from java.sun site. And the code got successfully
compiled.
In this latest version of SOAP APIs jar the SOAPBody interface implements both
the SOAP as well as XML parser Apis.
5. I was not able to run this code on the Weblogic server , bcoz at the runtime
weblogic 8.1 is using its webservice.jar instead of saaj-1_2-fr-api.jar. And
this code was giving me runtime error as
java.lang.NoSuchMethodError: javax.xml.soap.SOAPBody.getChildNodes()Lorg/w3c/dom/NodeList;
(see Fault Detail for stacktrace)</faultstring>
So now I need to find out the version of the webservice.jar of Weblogic 8.1 which
supports SOAP Apis as well as XML parser apis.
Otherwise I have to find out the SOAP apis which can extract the tag data from
the SOAP body.
Please Help.You can use the SAAJ APIs to get the child nodes.
Example here:
http://manojc.com/tutorial/sample4/ServerHandler.java
so instead of using body.getChildNodes(), you have to use
body.getChildElements() which returns an iterator of SOAPElements.
Regards,
-manoj
http://manojc.com
"Vikas Garg" <[email protected]> wrote in message
news:40dfb5e0$1@mktnews1...
>
1. I am facing problem in using the Message Handler approach for theimplementation
of webservices using SOAP on BEA weblogic 8.1. A SOAP request(XML format)can
be interrupted using the message handler and hence can be modified beforeit invokes
the webservice method. I have been able to successfully extract the SOAPName
space xml format as a part of the SOAP request using the APIs given below
APIs:
SOAPBody body = env.getBody();
Name Spaces format:
<m:sayHelloxmlns:m="http://www.bea.com/servers/wls70/samples/examples/webservices/basic
/statelessSession">
<intVal xsi:type="xsd:int">100</intVal>
<string xsi:type="xsd:string">vikas</string>
</m:sayHello>
The above is a Hello world example which invokes the sayHello method witharguments
as an integer and a string. I have not been able to find the SOAP APIs toextract
these arguments from the SOAP Body.
2. But there are XML apis which can extract the tag data from the SOAPBodye.g
>
NodeList nl = body.getChildNodes();
for(int i = 0; i < nl.getLength(); i++)
Node node = (Node)nl.item(i);
if(node instanceof SOAPElement){
SOAPElement se = (SOAPElement)node;
String operationName = se.getLocalName();
String value = se.getValue();
The SOAPBody interface implements the following interfaces (Ref :http://java.sun.com/j2ee/1.4/docs/api/index.html
javax.xml.soap > SOAPBody )javax.xml.soap.Node, javax.xml.soap.SOAPElement(SOAP APIs)
org.w3c.dom.Node, org.w3c.dom.Element (XML Parser APis)
3. But webservice implementation of Weblogic Application server8.1(webservice.jar)
doesn't support the XML parser APIs and only supports the SOAP APIs.
i.e. The SOAPBody Interface of Weblogic Application Server only implementsthe
javax.xml.soap.Node, javax.xml.soap.SOAPElement (SOAP APIs) and not theXML APIs
(org.w3c.dom.Node, org.w3c.dom.Element)
So the code snippet written as a part of point 2 will not be compiled(givecompilation
error) using the webservice.jar of Weblogic 8.1.
4. I have tried to compile the same code using the saaj-1_2-fr-api.jar(SOAP 1.2
apis jar) which I have downloaded from java.sun site. And the code gotsuccessfully
compiled.
In this latest version of SOAP APIs jar the SOAPBody interface implementsboth
the SOAP as well as XML parser Apis.
5. I was not able to run this code on the Weblogic server , bcoz at theruntime
weblogic 8.1 is using its webservice.jar instead of saaj-1_2-fr-api.jar.And
this code was giving me runtime error as
java.lang.NoSuchMethodError:javax.xml.soap.SOAPBody.getChildNodes()Lorg/w3c/dom/NodeList;
(see Fault Detail for stacktrace)</faultstring>
So now I need to find out the version of the webservice.jar of Weblogic8.1 which
supports SOAP Apis as well as XML parser apis.
Otherwise I have to find out the SOAP apis which can extract the tag datafrom
the SOAP body.
Please Help. -
No Request Prompt for Info Area Creation
Hello Gurus,
When i create an infoarea , it does'nt ask for a request. any clue. then how do we transport it to production. or do we have to create the same in production too.
thanks in advance.
TR PRADEEPHi,
another option is to goto the transport connection and switch 'standard on'. Then you will always be asked for a request. But normally, follow Robertos suggestion. In my experience I had only one customer who switched standard on in the last six years.
regards
Siggi -
How to request focus for Panel hiding behind another panel?
Hi guys,
I have two panels(of different sizes) within a JFrame, i have one button (in smaller panel)that does some query in the back end & populates the results in another panel (bigger panel), now assuming that i am in smaller panel, how is that i can bring up the bigger panel that is hiding behind this smaller panel.
I tried using requestFocus method but its not working.
Can anyone help me in this regard?
Thanks & Regards,
VishalThanks for your feedback, but i am not using card layout instead i am using a Grid bag layout, i dont see any method like next() or show() for a instance of GridbagLayout.
Any other alternative?
Thanks & Regards,
Vishal -
Can we have two message area UI controls in the same view (one at the Top and the other at the bottom section) and ensure that the messages are displayed at both places?
Requirement reason:The View is a very big form which the user has to fill in, and the messages need to displayed at the top and bottom section of the screen so that the user does not have to scroll and can see the messages at both places.
Currently, the message is displayed at the first (top) message area and not the bottom message area.
Thanks,Hai,
you can focus the Message Area UI element for those big screens.
view.getElement("MessageArea").requestFocus();
create a context attribute is Focus of type boolean.
like in Exception block
wdComponentAPI.getMessageManager.reportException("some Statement",false);
wdContext.currentContextElement.setIsFocus(true);
in
wdDOModify(){
if(wdContext.currentContextElement.getIsFocus()){
view.getElement("MessageArea").requestFocus();
wdContext.currentContextElement.setIsFocus(false);
Like this you can manage Big screens for Messages.
Regards,
Naga -
Display messages specific to a message area
Hi All,
I have an application which has 2 message areas in the same view.
That view also has 2 buttons. Now the requirement is to display a message in the message area specific to a button.
For Ex : If i press button 1 Msg area 1 should display the message, same for button 2.
Is there any way we can achieve this ?
Best Regards, PramodHi,
If you try to set visbile property of message areas to visible, not visible based on button click then this can be achieved.
If message area 1 is set to invisible if you click on button 2 then messages will automaticlly appar in area 2
same for message area 2.
Regards
Manas Dua -
I have a problem syncing iCal on my Macbook air (10.7.5) and my iPhone 4s (5.1.1) over iCloud. The following server error message comes up "The request (CalDAVAccountRefreshQueueableOperation) for account “iCloud” failed." Been to Apple Store - no luck instore, or with Super genius over the phone when with genius in store, taking data in real time via ethernet!
I had to do a full wipe of my system because of time machine back up issues 2 weeks ago, and the error has only occured at some point since then. I only did a drag and drop of my user account folders/files into an External HDD rather than a copy of my user account (advised by the staff in store at Apple to do this) and when reimported, the Mail folders are all present but each message is in a sub-sub-sub folder that is numerically named. I do not have a mirror image of the hard disk prior to the wipe, only a time machine back up from 2 weeks prior to it being done. I am uncertain if this reinstall has caused the issue.
I am not happy to upgrade the software in my iPhone until I have the calendars working. I have purchased Mountain Lion, but again am concerned about upgrading until the issues are sorted.
I have tried the other solutions on here with no luck. HELP please.
Many Thanks.Progress Update.
I made a back of what existing phtos and Videos I had on my Iplhone. I used Image capture to do this making an entire back up of photos and videoa that were still intact on the phone.
Image capture is god for this purpose, as it does exactly what you ask it to do without applying any rules or squishing the files back into iphote (which might also be corupted)
Image capture wil do the basic function of retriving the contents of the phone and save them as native files on your hard drive.
Once I did this I erased my iphone, and re intitialised it restoring an older back up from icloud.
As the retore was happneing - I did retreive the missing files that cuased the intial beviour as above, and I could play the videos that were missing in the above scenerio. The wierd ting was however that even though the source files were now back on the device, the thumbnail previews were missing. Where I ahd balck thumb nails for server portions of the resotred content.
I then went to bed as the restore is a long process. When I woke up the library had library had cleaned itself up. Mysteriously the prcess had deleted the files missing the their thumbnails.
This is very perculiar and bad behavior.
I am now repeating the process, and will attempt to download the missing content as it is restored and prior to the phone trying to fix itself.
Here are the lessons learned.
DO NOT rely on Photo Stream to keep back ups and synchornise videos from you IOS device. IT DOES NOT SUPPORT THIS CAPBILITY
DO NOT rely on iCloud Back Up alone - always fd an occassional iTunes back up or more reliably still always take a back up of photos and video files using Image Capture to be doubly sure that you a have backd up any content.
DO THIS NOW - dont wait to loose your phone ofr have your phone repaired by replacement at the apple Store. (I did both :-( -
How to create a navigateable messages for SALV in FPM message area
We have some problems raising messages for errors in a ALV table. Messages reported by the ALV table itself (like a character entered in a number field) are displayed in the FPM message area and the message is mapped to the field causing the error (navigation link). When we try to raise an own message out of the application controller of our building block which carries the ALV, we didnu2019t manage to have the mapping between the error message and the ALV-field.
We already tried several versions of calling the message method (using the elements of the context of the calling application as well as the context of the mapped ALV compontent):
CALL METHOD wd_this->gr_msg_manager->report_t100_message
EXPORTING
iv_msgid = '/ISDFPS/MSG_GAF_PE'
iv_msgno = '047'
iv_parameter_1 = lv_par1
iv_parameter_2 = lv_par2
io_component = lo_INTERFACECONTROLLER
io_controller = lo_api_interfacecontroller
io_element = lo_element
IV_ATTRIBUTE_NAME = lv_attribute
iv_severity = if_fpm_message_manager=>gc_severity_error
iv_lifetime = if_fpm_message_manager=>gc_life_visibility_automatic
is_navigation_allowed = abap_true
it_attributes = lt_attributes.
Does anybody know a solution or maybe an example where a error message is linked to an field in the SALV and reported in the FPM message area using the above mentioned method call?
Thanks and best regards
Gerald
Edited by: Gerald Reinhard on Mar 31, 2009 10:56 AMJust to clarify, what I am having trouble with is finding where exactly to plug in the name of the plant to be filtered? If using a message type such as MATMAS in a distribution model, it is very straight forward to navigate down from the 'Data filter active', and assign a value to whatever field you wish to filter via the 'List of Values'. But in this example, message type QPMK required use of the BAPI MasterInspectionChar, and therefore the different method in creating the filter.
I cannot find similar functionality when navigating the BAPI related row, for MasterInspectionChar. The 'Change Filter' dialog popup displays a row for 'Container' and then 3 more rows containing 'BAPI structure...'. Clicking the 'Attribute' checkbox on any of these rows sets 'Data filter active' as a node under the BAPI. Double clicking the 'Data filter active' brings me back into the same dialog, and selecting any row with an attempt at this point to create a filter results in the 'Select node: content-dependent parameter filtering' warning. Is this warning occuring because of missing configuration?
Thanks - Mike -
Deleting all emails for 1 of 2 email accounts in the Message area
Background:
I do not have Blackberry Enterprise ServerI have 2 email accounts setup on my Blackberry Pearl 8130:
1 personal Yahoo account and 1 work account
Everything works fine, I receive email for both accounts, all is good. Except that I get 200+ emails a day on my work account!I do not want to go in and delete work emails one by one or in groups The lowest number of days I can choose to choose in General Options -> Keep Messages is 15 days (and it looks like that is an overall setting, I would like 2 days for my work account and 3 months for my personal account which is a whole other question)
So, I deleted my work account from the Email Settings thinking that all emails linked to the work email account would ‘go away’, then I will just recreate the account later. BUT all the emails are still in the Messages area, all 1500+ work emails that I want to get rid of.
Question:How can I, without going 1 by 1 or in groups of emails, have all the emails in the Messages area deleted that are for a specific email account?I do want and need to keep my personal email on my phone so I can’t just in and “Delete Prior” as it will delete my personal emails that I need to keep on my phone
Any thoughts?
Or does it matter if at some point I end up with 10K emails? I'm not sure.
Thanks!
Solved!
Go to Solution.Since you can't do a Delete Prior, the only other options is to hold down the SHIFT button (lower left button, may look like aA) to scroll and select groups of emails to delete. There isn't a way to only show emails from a certain group to delete. You can either delete all at once, Delete Prior by the date, or select groups of messages.
If someone has been helpful please consider giving them kudos by clicking the star to the left of their post.
Remember to resolve your thread by clicking Accepted Solution. -
I HAVE A PROBLEM WHEN SYNC CONTACTS IN MY COMPUTER TO IPHONE 4S after update to iOS6. The message are " waiting for change to be applied".
PLAESE advise how to solve this problem.Hi applerinneedforhelp,
Thanks for visiting Apple Support Communities.
If iTunes is asking you to authorize the computer, and you've already done so, the troubleshooting steps in this article can help:
iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
http://support.apple.com/kb/ts1389
Regards,
Jeremy -
After downloading IOS 8.0.2 on my iPhone 5, my email messages are not coming through automatically. Before, my email messages would come through automatically and my iPhone would alert me each time an emial message was recevied. I now have to open my mail in-box and wait for my email messages to download. Do I need to reset or change my mail settings? This issue is delaying my abiliy to receive and respond to email messages in a timely manner.
Please Help.
JesseHi Chris. Thanks, for the suggestions re: my email issues. They were helpful and yes I did check all items you referenced. I even contacted Apple support and spent about 40 minutes on phone checking all settings. However, after all these efforts, my mail and calendar issues were not resolved. Apple Support finally recommended deleting the mail account and then reloading it - and it worked! I am now receiving my emails and calendar appts. in real time again.
Just wanted to share this in case anyone elest has a similar problem with mail/calendar after downloaing i.O.S. 8.1 onto iPhone 5.
Thanks, again.
Jesse -
AA - Error Message: No data found in table j_1aat089 for depreciation area
Hi friends,
I am trying to execute ABAW transaction but I recieved the below error:
"No data found in table j_1aat089 for depreciation area 00."
Message no. 8Z874
But Area 00 there is not configurate in my system.
Does anyone has any hint regarding this issue?
Thanks
Daniel DortaHi Daniel,
You are not using Inflation funcitonality, are not you? Check that in IMG - Financial Accounting (New) - Financial Accounting Global Settings (New) - Inflation Accounting - Inflation Methods - Assign Inflation Methods to Company Codes your company code is not assigned to any inflation methods.
Regards,
Eli
Maybe you are looking for
-
How can you tell what type of server configuration is installed? is it j2ee or not?
Before I run an updater, how can I tell if the server is a j2ee server configuration or a "regular" server configuration? Its on on Linux os...
-
Dear Gurus, How do we make it possible to accept external services that are not covered by a purchase order or exceed the scope of services covered by a purchase order? Thanks..
-
I am working on iphone presentation. Some of hyperlinks are broken or not working after export as PDF. why? and how do I fix it?
-
Nokia 3110 Classic Alarm tone too low
I brought a Nokia 3110 Classic yesterday and found the alarm tone too low. Tried chaging the Tones, but all of them are too low. Not enough to wake up. can anyone suggest how to overcome this problem. Thanks
-
When adjusting the audio volume in a selected region, why does it give me a curved line as a transition instead of straight, and why cant I change the fade shape like i can with a fade in our out? When I slide thet volume all the way down it makes a