Update user interface for execution of the web service thread.
I have a thread that calls a web service. This thread is run from a menu item
public MenuItem _search = new MenuItem("Search", 10, 0){ public void run(){ // Code to show progress popup, either a screen or popupscreen // Start Thread // Hide popup // Navigate to page } };
My code is as above!
The thread runs and moves to the new page. The pop-up screen can't, why is this?
Surely, I can update the user interface before starting the thread?
How can I emplement a loading screen?
I tried to use the locking of the event and invokelater (according to this doc) to call the UI updates but no luck?
If you display the popup and then hide it quickly enough the BlackBerry framework don't will never paint it because painting is a low priority, always put last on the event queue. This does not change even if you use invokeLater (which is the right thing to do anyway) - unless you let the popup be for awhile before rejecting.
The usual way to display the progress screen is to pass the handle (reference) for the popup that you create in the thread. This Thread can use then a few reminders of this popup screen to update and finally close.
So "Hide popup" should not be in the your menu item run() method. If your 'navigate to the page' is based on the results of the background thread, remove run() of the item of menu as well.
If you search the knowledge base for "sample"Please wait"screen", you will find an excellent example of such interaction:
Example of screen 'Please Wait' - part 1
Example of screen 'Please Wait' - part 2
Example of screen 'Please Wait' - part 3
Enjoy!
Tags: BlackBerry Developers
Similar Questions
-
Need assistance for consumption by the Web Service
I'm dipping my toe in the world of the web service and I have Oracle web service I'm trying to eat. It does not work as I thought, so pointers are appreciated.
Here is the cfinvoke code...
< cfinvoke
" webservice =" http://erpintsrv1-dc-aus:7777/arWs/arWsSoapHttpPort? WSDL" «
method = "customerXML".
returnvariable = "a_customerXMLResponseElement" >
< name cfinvokeargument = 'settings' value = "123456" / >
< / cfinvoke >< cfdump var = "#a_customerXMLResponseElement #" >
Here's the result...
Here is the result of the Oracle interface...
< env:Envelope
xmlns:env="""" "http://schemas.xmlsoap.org/soap/envelope/"
containing="""" "http://www.w3.org/2001/XMLSchema"
xmlns: xsi=""http://www.w3.org/2001/XMLSchema-instance"" " "
xmlns:ns0="""http://xxas/integration/arws/ArWs.wsdl/types/""">
< env:Body >
< ns0:customerXMLResponseElement >
< result >
< rowset >
< LINE
num="1">
< CUSTOMER_NUMBER > 123456 < / CUSTOMER_NUMBER >
< CUSTOMER > MOUNTAIN BUILDING SUPPLY, INC. #8228< / CUSTOMER >
< Platform >500< / platform >
< / ROW >
< / LINES >
< / result >
< / ns0:customerXMLResponseElement >
< / env:Body >
< / env:Envelope >My thought was once I called the web service and it thrown into the page, I see the above information (customer name, platform, etc.). Instead, I seem to get the names of classes in java, methods, etc. Thoughts?
I would use Xpath function XMLSearch CF to search for in the outcome document and pull for the data you need. See an example of a base below. If this example does not take your needs please let me know.
For an overview of Xpath, see http://msdn.microsoft.com/en-us/library/ms256115.aspx
019889
MOUNTAIN BUILDING SUPPLY, INC. #8228
500
Client found
Customer not found
-
creation or user logon via pipelineservlet using the Web service data.
Hello
We have a requirement like as follows. We got a token to a service (while redirecting to another site to the atg commerce site). On redirect to the atg commerce site in one of the pipelineservlet of custom query, we call the service with the token. Using this answer, we want to create a new user/login (if the user exists). Please suggest any idea to implement this feature.
Thanks in advance
Suma.
have you checked your profileAsXML-> fact she follow the format accepted by the method?
It does not contain the user password - it should nt be encrypted...
I had a similar req - I traced the xml to a bean... uses the user id / pwd to create the user and the rest of the values using the profile object...
-
I created the Web service VI ("Mt-insolacije.vi"), which has two terminals of the input string (FROM / TO) for the dates of arrival and exit of two data terminals (table 1 d) from database (MS SQL server). This VI communicates with the database with functions of the database with a DSN and SQL query appropriate palette. There are two tables with two data (time and Insolation) columns in the database.
This VI works when you run in Labview 2010, but when I used it as VI in UI Builder it returns no data.
Could you please help me find a solution. Is it possible to communicate with the SQL server database in this way or there is another way?
There are two files attachmet: Image of .vix file in Interface builder and .vi file ("Mt-insolacije.vi")
Please help me ASAP!
Thank you
Ivan
I found the solution problem is in the DSN. I've been using the user instead of DSN system DSN.
It's important to create the system DSN if you want your VI of web service to communicate with the database.
PS Please put feature bundle format timestamp and XY graph in the web user interface designer. It's complicated to trace data with datetime on X axis without them.
-
Why is there no user interface for moving the cache locations/profile?
OK, so it took me a long time to find how to move the location of the cache and the reason is that it is done by an entry that does not exist originally, so a user need to know the channel config even magically set it.
(this is browser.cache.disk.parent_directory for those in the same waters as me) and it still did not move the location of the profile...
To change your profile location? The doc only that talks on this subject here:
http://KB.mozillazine.org/Moving_your_profile_folder
and it does not work so well for me (i.e. all) but why have I not copy and change things? It is created automatically the first time you start so FF cannot use the same method to create a new profile in an empty space?And my real question: is there a valid reason, that there is no element of the user interface to set the location of the profile cache directories?
There never was a user interface for these parameters - Mozilla is "stingy" about adding prefs that will be only once required by the installation of the user interface. Also, I assume that the developers are convinced that a power user who thinks that even on the displacement of the cache will be searching for instructions on how to do it. (BTW, when you move the cache profile is moved to the folder path profile, its origin "local settings" folder - thus it is automatically moved out of APP DATA.) You can still use this pref to put the cache exactly where you want. I use a small partition for the TEMPORARY files and the cache of Firefox, so they don't one of my biggest readers logics frag.)
Regarding the difficulties with a profile in motion, developers have threatened to remove Firefox profiles altogether for the last 3 years or 4 and WONTFIX had no Bug filed all improve or add new features to the Profile Manager. This will probably happen this year some time.
Between you and me, there is a new Profile Manager application just went Beta, which will probably "be released" just as the existing profile manager is extracted from Firefox. It is very schweet and is always at the point where the developers are in response to reports of bugs on features to include and adding the items that are important. I have tabled a minor Bug on the characters allowed in a profile name, which was fixed in 3 or 4 weeks.
https://developer.Mozilla.org/en/Profile_Manager
https://wiki.Mozilla.org/Auto-Tools/projects/ProfileManager
http://FTP.Mozilla.org/pub/mozilla.org/utilities/ProfileManager/1.0_beta1/
You must have Windows Visual C++ 2010 redistributable installed for the application of the Profile Manager XUL Runner to work right now. I hope that this will change very soon, and all the necessary files will be included in the Zip package. -
User interface for the touch and trackball design
Hello everyone
Design the user interface for my ap, and I have a question.
My access point has a lot of button image.
I can imagine the ImageButton for touch screen and trackball.
I have known that using touchevent for touchscreen and trackwheelClick for the trackball.
When I use both in an application, the access point is not make sence to use,
If this is not the case, can I know the user device or not doesn't have trackball or both.
My code:
final BitmapField bf_Projection = new BitmapField (B_Projection, Field.FOCUSABLE) {}
{} public void onFocus (int direction)
this.setBitmap (B_Projection_Down);
}
public void onUnfocus() {}
this.setBitmap (B_Projection);
}
{public boolean trackwheelClick (int status, int time)
UiApplication.getUiApplication () .pushScreen (p_Screen);
this.setBitmap (B_Projection);
Returns true;
}protected boolean touchEvent (TouchEvent message) {}
int x = message.getX (1);
int y = message.getY (1);
Make sure that the point is in this area
If (x < 0="" ||="" y=""> < 0="" ||="" x=""> getExtent () .width: y > getExtent () .height) {}
Return super.touchEvent (message);
}
{Switch (message.getEvent ())}
case TouchEvent.DOWN:
this.setBitmap (B_Projection_Down);
break;
case TouchEvent.UP:
this.setBitmap (B_Projection);
break;
case TouchEvent.CLICK:
case TouchEvent.UNCLICK:
UiApplication.getUiApplication () .pushScreen (p_Screen);
this.setBitmap (B_Projection);
break;
}
Return super.touchEvent (message);
}
};Clintliu wrote:
case TouchEvent.CLICK:
case TouchEvent.UNCLICK:
UiApplication.getUiApplication () .pushScreen (p_Screen);
this.setBitmap (B_Projection);
break;These two make no sense at all - either treat CLICK or UNCLICK because otherwise you will push the screen twice.
That being said - the best way is to ignore the fact touchEvent() exists and replace just the click of navigation and/or uncheck. They will work correctly for navigation in trackpad and touchscreen / click.
One of the problems with the touchscreen is that if you click on a non-focus field or in empty space currently target field will get the event. You can override the entire event (return super.touchEvent () in any case) DOWN carefully to detect this situation.
-
Update the password for the Web service fails
Hello
OIM 11 g R2 (11.1.2.2) does not update the user password using the web services (version 11.1) connector.
Following Oracle instructions described in http://docs.oracle.com/cd/E22999_01/doc.111/e38352/extnd_func.htm#CIHHJCHA
In fact, it works in a test environment.
Caused by: org.identityconnectors.framework.common.exceptions.ConnectorException: org.identityconnectors.framework.common.exceptions.ConnectorException: java.lang.IllegalArgumentException: invalid combination of offset/length
at org.identityconnectors.genericws.utils.EncryptionUtil.encrypt(EncryptionUtil.java:81)
at org.identityconnectors.genericws.utils.ConversionUtil.typeCast(ConversionUtil.java:247)
at org.identityconnectors.genericws.GenericWSConnector.update(GenericWSConnector.java:387)
... more than 224
Caused by: org.identityconnectors.framework.common.exceptions.ConnectorException: java.lang.IllegalArgumentException: invalid offset/length combination
at org.identityconnectors.genericws.utils.EncryptionUtil.deriveKey(EncryptionUtil.java:100)
at org.identityconnectors.genericws.utils.EncryptionUtil.initializeCipher(EncryptionUtil.java:108)
at org.identityconnectors.genericws.utils.EncryptionUtil.encrypt(EncryptionUtil.java:59)
... more than 226
Caused by: java.lang.IllegalArgumentException: invalid offset/length combination
to javax.crypto.spec.SecretKeySpec. < init > (SecretKeySpec.java:148)
at org.identityconnectors.genericws.utils.EncryptionUtil.deriveKey(EncryptionUtil.java:98)
... more than 228
Enjoy your valuable advice!
Best regards
JD
Resolved:
Problem solved in reconfiguring connector WS with files bundle good connector - apparently, jars of installation used was not the last!
-
When I install Oracle Grid Infrastructure 12 c Release 1 (12.1.0.1.0), I have the following error:
Failure of the initial installation of INS-30131 required for execution of the controls of the installer cannot access the temporary location
Cause:-unable to access the temporary location
Action - make sure that the current user has required permissions to the temporary location
Details of the addition
-GLWB-1560: "/tmp/" temporary directory path is shared on the nodes '... »
The oracle user I use is to have access in / tmp, I did a test by creating a file here.
Any idea?
Thank you
This is the description of the error, I saw, but he was trying to find an idea how to solve this problem.
Anyway, I solved it by renaming the Group of volumes and accordingly update the fstab and the grub.conf.
Thank you
Eugen
-
Data control for the Web Service based filter table adf only appear not
I have a SOAP web service I'm consumption as a web service data control.
When I use one of the results of the web service through data to the web service in the form of a table control in the user interface with the filter and sort, I don't see the filters on the top of the table.
It comes to JDeveloper version 11.1.1.7.
Please let me know if anyone has an idea on this issue.
TIA
ABS
You need connect your own logic on the filtering table.
The table doesn't actually do the filter - it does, is the data control to filter the info - for a Web service we do not know how it will actually make a sort-, so you'll need to add a filterListener on the table and call a WS that will be returned the filtered data method.
-
change the frequency for the web service
I'm under LabVIEW Web Service with an application following the method shown in the example of weather monitor. But my problem here is that I have to keep clicking the Refresh button, then the Web Service can only update the latest data for me. Can someone help me to set an example on how to let the page Web of the Web Service automatically update the value without pressing the Refresh button. Thank you
First of all your customer needs to support it. If you use the HTTP Client in LabVIEW (GET.vi and so on) you cannot use this method. A normal browser should.
Take a look at the address book example FindContacts.vi.
The help topic linked in the previous post, you should get on the way as well. The news are scattered throughout the help file, but it should be possible to understand.
Basically, there are two output options for a web service VI: Terminal mode as used in the example weather and fashion such Stream used in the example address book VI.
Use stream mode and build the HTML page yourself, then sends it to the browser with Response.vi write. Somewhere in the top of the HTML page, you need to insert
If you need to return a string like
my title If your browser supports Refresh, this page refreshes in 5 seconds. And add some real contents here
See also W3C .
Good luck
-
How to use the web service to update the data?
Hi team,
Need help in establishing a procedure for updating data using the web service, in the first instance, I think that it's the same reading webservice but I will produce an error:
29273 00000 - "the HTTP request failed.
* Cause: The UTL_HTTP package cannot run the HTTP request.
* Action: Use get_detailed_sqlerrm to check the detailed error message.
Correct the error and restart the HTTP request.
using this tag soap_request.
< ns1:Request >
< ns1:header >
< ns1:InterfaceName > OSMMVNECreateOrder < / ns1:InterfaceName >
< ns1:InterfaceId > OSM - XXX < / ns1:InterfaceId >
< ns1:CorrelationId > TEST-06262015 < / ns1:CorrelationId >
< / ns1:header >
< ns1:Mvno > MTI < / ns1:Mvno >
< ns1:orderId > < / ns1:orderId >
< ns1:orderType > CHANGE_STATUS < / ns1:orderType >
< ns1:orderDetails >
< ns1:subscriberId > 9469273 < / ns1:subscriberId >
< ns1:newStatusId > 2 < / ns1:newStatusId >
< / ns1:orderDetails >
< / ns1:Request >
the < ns1:subscriberId > 9469273 < / ns1:subscriberId > the Subscriber must search and
< ns1:newStatusId > 2 < / ns1:newStatusId > will replace the current state.
any suggestion on how to do it?
Best regards
Nelz Ki
There is no difference between calling a web service to write data, against the appellant for reading data. SOAP is SOAP. He cares not.
Example to interact with a web service is in Re: PLSQL webservice call
Regarding your error - stack display Tower full of error to see what said the trace of the error. The data you've posted unfortunately no sense to isolate the error.
-
Data for the Web service control
Hello
I have jdeveloepr User 12.1.3, I WSDL soap, I create the data control for the web service from the WSDL, the problem is when creating data controls the separate parameter that the method, for example, below it is the method that I call the setNotificationAction name and the parameter IN (P_ACTION, P_NOT_ID, P_PASSWORD_ERP, P_TOKEN (, P_USER_ID P_USER_ID_ERP), as below, why the separate parameter that the method?
Note that I try the binding WSDL SOAP UI and its ok and works as expected.
Resolved by changing the typesList.add (Object.class) at typesList.add (GenericType.class)
-
Problem of DH handshake with the web service using ColdFusion 7 and 8 after java update 8
ColdFusion 7 and 8 are provided with a variant of JRE1.6.
I have a script that has consumed a web service for years with success. Last week, the web service provider updated their version of Apache and Java on the server java 1.8 (or java-8).
I could no longer consume the web service once the web service provider updated to Apache and Java and would be the following error DH keypair every time that I try to consume the service:
-----------------
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/} Server.userException
faultSubcode:
faultString: javax.net.ssl.SSLException: java.lang.RuntimeException: could not generate keypairs DH
faultActor:
faultNode:
faultDetail:
{}http://xml.apache.org/axis/} stackTrace:javax .net .ssl .SSLException: java.lang.RuntimeException: could not generate keypairs DH
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:190)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1591)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1554)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1537)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1130)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1107)
at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186)
to org.apache.axis.transport.http.HTTPSender.getSocket (HTT... ''
-----------------
I asked the service provider web, why it would stop working and how we can solve this problem. They suggested that upgrade to the latest version of Java on my server running ColdFusion. I did some research and found the problem to be with the amount of memory allocated to the variable containing the encryption key.
The big problem is when I tried to update java on this particular server (Windows Server 2003), the installation has returned a messaged stating that he could not run on the older operating system and I need to update my OS to install java.
Does anyone have a workaround in ColdFusion 7 or 8 that you can establish the DH handshake using Java 1.6 on your local server while consuming a web service on a server using Java 1.8?
Hi, frank000000,
I know that we had a serious problem with any Java 7 after update 25. They are off a lot of network permissions and other things, for safety, that used to be available in versions prior to the update 25. But it's while we were in CF Server 9.
Since we switched to CF Server 10 (making sure that we got the CF Installer provided with Java 8), we had very few issues related to Java.
It seems strange to me that the upgrade to 1.8 host while your server is 1.6 would cause problems. It could very well be something else. I would like to ask the host for documentation describing exactly how/why their 1.8 may cause interference with your 1.6.
HTH,
^_^
-
Use the web service to invoke a new process execution
Hello
I use BPM 10 g 3, and I'm calling a process entirely automated via a web service
I install my name http:// < host >: < port > /albpmServices/ < web service engine > /ws/ < process name > ServiceListener? WSDL
I accessed from a c# application, that I have written and visual studio report my functions and others.
I can start a new session (startSession (string password, string username) and I get sessionID) with the process of the web.
but when im trying to call my own function (which is defined in the web service of process as a running process on my beginIn settings) I get a reply with a FaultException without visible error code.
The newspaper of BPM, I can see the following lines:
(1) call service with id: < process name > ServiceListener
[2) article of delivery: IMMEDIATE Inst [-1, -1, -1] Act [no activity] Proc [No. process] Due 1318860646000000]
(3) TransactionAction: Rollback!
While the TransactionAction: Rollback! means that something bad happened, I don't see the reason.
any idea?OK I got it to work.
I did all the things you suggested before, but when you said I need to see the right activity will be started, I understand what is wrong
The activity chosen must be in an alley with the same role as the connection of the user in the session.
So I added a role on Begin and created a part for this role, connected with it and now it works =)Edit: I'm the same guy who has opened the threqad, just need to make a new user for assistance to business (do not have to use it)
Published by: 891957 on 23:59 10/17/2011
-
Model of User Interface for interactive report region
3.2 where we establish the model of user interface for interactive reports region?
No matter what on the theme of the box I go to, the region of interactive reports shows the same. What and where do I change the model so that alternate lines use two different colors?There is no model for interactive reports as for a 'normal' report You need to edit the CSS and provide your own for this purpose.
I think that most of the things are marked with the #apexir - firebug with combustion chamber is priceless. This thread may help:
Maybe you are looking for
-
I use a Mac Book Air and OS X Lion 10.7.5. Firefox has been suspended until periodically and recovers after the closing and re-opening, but it increases the frequency of crashes. All other programs work correctly and do not hang up. This also happens
-
Using mac os x and mac version of Mozilla Firefox. I don't know what the problem is, but I don't understand a single thing. How to open extension? If I can use it? U can do this little bit easier?
-
I used to have 6 of Firefox that allow me to advance or go back more than one page
-
Satellite 2770 XDVD: Need information on laptop
Hello I received a fairly old laptop - Toshiba Model No. PS277E-6MC83-EN less hard drive. Not much use as it is, but I was hoping maybe buy a hard drive at a low price. I have been on the Toshiba web site but can't find out about this laptop - I don'
-
What WLan cards are compatible with 8710p?
I recently bought the Intel WiFi Link 533AN Mini card for my Compaq 8710p. I have a Draft-N router that supports the 2.4 and 5 GHz band and I want to get rid of the USB adapter, I prefer to install an internal Mini PCI. When I install the Intel card,