Problem query invocation 10.1
I have this code that worked very well in QML on 10.0 but now 10.1 it causes an error this query is a read-only property.
{Of invocation
ID: invokeReview
query: {InvokeQuery}
MIME type: ' application/x-bb-appworld.
URI: "appworld://content/9081".
}
},
No idea why this is now a problem and how to set the query in QML.
I never quite understood how anyone got this works before, because I always got the error of the ReadOnly property.
Essentially the InvokeQuery object exists already and is assigned to the property of the query, if you want to simply modify its content.
Either question {mimeType: "...} "} (without the colon or InvokeQuery), or simply assign to individual fields directly, as in query.mimeType: «...» "and query.uri: «...» ».
Tags: BlackBerry Developers
Similar Questions
-
Problem of invocation in gold 10.2
Hello
This is my first post here.
I would like to know of Invocation problem in gold 10.2
the invocation always tire/weapons on before even I select one item in the list target invoke and he always print this message in the console:
InvocationWrapper:nInvokeFinished: action = "bb.action.SHARE", target = "sys.invokeTargetSelection".
This is what eventually trigger this behavior? in the previous OS version even in Beta 10.2 this job very well, but it breaks all of a sudden in gold 10.2.
the code I use is to combine the invokeclient and the invoketarget from the example of cascades.
the sample still works well in gold 10.2, but in my application, combining the two example, always pulls/weapons before ever I selects the item in the list of targets of appeal.
Update:
After playing with the example again, I understand that the sys.invokeTargetSelection was always too, but the difference is after selecting the target my application don't do anything, just return to the front page. And I still don't understand how do it works like in the previous version of the OS.
Thanks before. Sorry for my poor English, as I have not a native speaker.
I think it's my mistake. After so many trials and errors several days to solve the problem, I found that I added this line of code in the childCardDone slot:
m_invokeManager-> closeChildCard();
I think I have add this line of code, because in the previous version of the OS (I don't remember which version of OS exactly) if I call my card in my application while the app is off work without any response to the closure of the card of the child.
I always wondered why in the previous version, this application works fine with this code.
in any case, thanks for the help. It is now resolved
-
10.1.2 form problem querying the Masters details with underscore
I have a problem a form, we were by the user performs a query a record and the detail block through a wrong record brings. This happens on all the records that have an underscore character "_".
The shape is huge, so I'll try to shoot everything in testing, but thought I'd ask to see if its obvious thing.
Basically, there are 3 tables all there own blocks connected by relationships built into the forms.
the user asks the top one and the other 2 are at the request of the car.
the problem is only one referenced primary key. It includes underscore.
That is, the user brings to the highest level "1000_0".
This brings another primary key which is '1000-0' through on all the records in detail, but the upper level shows the good '1000_0 '.
Is anyone aware of nothing, maybe, iwill endeavor to put in place testing.I don't think that you can keep in shape. Because each table has its own condition of join and the columns. So, you have to keep on each block of retail. Otherwise on pre-requete level form it will still validate this detail blocks. So its best to keep on every detail prior query block.
And ione nothing more that he forgot to mention in my previous post. You can use code like this...IF :blockname.itemname is NULL OR instr(:blockname.itemname, '%') != 0 THEN NULL; ELSE -- Your join condition with = sign. END IF;
-Clément
-
Weird problem - query http 408 expired a - 2 sec
Hi all
I have developed a system somewhat between bb and ASP. Everything has been working well for 2 weeks, but now all of a sudden I'm getting an http request 408 has expired error for any other request to the server. The weird part is it fails after a few seconds - I get the error message and press the new button (make another request) and everything is fine.
The connection is nothing special, I open the connection, adding the values of the position and it was working fine all the time until yesterday.
It might be a problem of asp, I know, but nobody has anything to offfer please help me try to solve this problem?
If this is not the case - I have a workaround provided (I don't like) but I have to do something. I plan on checking the response code and the thread to call again if the code is 408. Is it a bad thing?
Thank you Alex
Looks like a problem of asp for me.
-
Configuration problems - DRS. invocation not complete
Ciao a tutti, dopo aver added I datastore (MON), ho fatto a check global e mi sono aware di quest' error:
Invocation of DRS do not complete
My non riesco a find any information, it cluster e nuovo e no, sono macchine virtuali configure, I parametri del DRS sono quelli di default ed ho tried a n e replace the configurazione.
Grazie
Sicuro non trovi nulla Giro if? Hai tried soluzioni come questa?
http://www.nerdthinking.com/2013/DRS-invocation-not-completed-a-proven-fix/
Ciao,.
Luca.
-
I work with flash remoting and I'm having a little trouble. If I pass a param to my document coldfusion as a number, and that is a number defined in the database, the query works very well. I can't work properly if I check to no numbers of corresponding text. Can someone help me with what I'm doing wrong? Here's my CF document code:
OK, thanks for all your help. Everything works fine now, I'll go to mysql, before I go too far... Thanks again!
-
problem query v$ archived_log
Hi gurus.
I am using the view v$ archived_log to check the last applied (it must be applied) archivelog to our expectation.
It works with the following text:
SELECT SEQUENCE #, USED FROM V$ ARCHIVED_LOG IN CASE OF APPLICATION = 'YES ';
The above gives me a list of the papers applied:
SEQUENCE # APP
YES 1234
1235 YES
etc etc.
However, I would like to ask the same point of view and extract the sequence number of the last log applied.
I would like to just the last number so that I can add to a text file and compare with the primary database.
Can someone please help?
I am trying this:
SELECT MAX (SEQUENCE #), APPLIED FROM V$ ARCHIVED_LOG IN CASE OF APPLICATION = 'YES ';
However, this returns an error:
ORA-00937: not a single group group function
Thank you and best regards,
DA
Linux Red Hat 4
10.2.0.4SELECT MAX (SEQUENCE #), APPLIED FROM V$ ARCHIVED_LOG IN CASE OF APPLICATION = 'YES' GROUP BY APPLIED.
-
Problem query building...
Here's my data...
Oracle: 10 / 2G
Output current:WITH xTable AS ( SELECT 2010 AS YEAR, 1 AS SEQ, 'JOHN' AS NAME, 1110 AS ID fROM DUAL UNION ALL SELECT 2010 AS YEAR, 2 AS SEQ, 'JOHN' AS NAME, 1110 AS ID FROM DUAL UNION ALL SELECT 2010 AS YEAR, 1 AS SEQ, 'BOB' AS NAME, 1112 AS ID FROM DUAL UNION ALL SELECT 2010 AS YEAR, 1 AS SEQ, 'TERRY' AS NAME, 1114 AS ID FROM DUAL UNION ALL SELECT 2010 AS YEAR, 1 AS SEQ, 'CARL' AS NAME, 1115 AS ID FROM DUAL UNION ALL SELECT 2010 AS YEAR, 2 AS SEQ, 'CARL' AS NAME, 1115 AS ID FROM DUAL UNION ALL SELECT 2010 AS YEAR, 3 AS SEQ, 'CARL' AS NAME, 1115 AS ID FROM DUAL UNION ALL SELECT 2009 AS YEAR, 1 AS SEQ, 'JOHN' AS NAME, 1110 AS ID FROM DUAL UNION ALL SELECT 2009 AS YEAR, 1 AS SEQ, 'BOB' AS NAME, 1112 AS ID FROM DUAL UNION ALL SELECT 2009 AS YEAR, 2 AS SEQ, 'BOB' AS NAME, 1112 AS ID FROM DUAL ) SELECT YEAR,SEQ,NAME,ID, count(seq) over (partition by name, year) as seq_cnt FROM xTable ORDER BY YEAR, NAME
What I'm trying to do is to remove only the sequence (seq) max to know where the id there is more than one record for a given year. So, I want the output to be as follows...YEAR SEQ NAME ID SEQ_CNT 1 2009 1 BOB 1112 2 2 2009 2 BOB 1112 2 3 2009 1 JOHN 1110 1 4 2010 1 BOB 1112 1 5 2010 1 CARL 1115 3 6 2010 3 CARL 1115 3 7 2010 2 CARL 1115 3 8 2010 1 JOHN 1110 2 9 2010 2 JOHN 1110 2 10 2010 1 TERRY 1114 1
Desired output:
I'm not entirely sure how to in this regard, so any help would be appreciated.YEAR SEQ NAME ID 2009 2 BOB 1112 2009 1 JOHN 1110 2010 1 BOB 1112 2010 3 CARL 1115 2010 2 JOHN 1110 2010 1 TERRY 1114
Hello
A regular GROUP BY going to:
SELECT year, max(seq) seq, name, id FROM xTable GROUP BY year, name, id ORDER BY year, name, seq ;
-
Query in parallel several caches
Hi experts,
I have several caches defined in the configuration of the cache of the client. And I wanted to interrogate the different caches at the same time. If I use the thread to do the work, it will be for each cache network call (I use TCP extend). Instead, I want it to be managed within the grid. Any suggestions on this?
I appreciate your valuable contributions.
Kind regards
knockaertHi Karthik,
Yes, you need to configure a system call on the server and the remote-invocation-pattern on the client, there is no way around that, but it is not really difficult. The client will always connect to the server through the same proxy system.
EntryProcessors are not really good for what you need as they normally run against a cache or entered into a cache. While allows you to encode an input processor to query multiple caches and return a result, you would be in danger of blocking of service, unless you are careful in the way you did.
If you want to pass parameters to the calling function, then they are in fact the parameters to your invoked class.
For example:
If I wanted some parameters in the example above, I could change the remained like that. In this case, I added two string parameters, but you can add whatever it is the same way. In the run() method, you can now use the settings. You must ensure that you add parameters to methods POF writeExternal and readExternal methods.public class CacheQuery extends AbstractInvocable implements PortableObject { private String parameter1; private String parameter2; // Need and no-arg constructor for POF public CacheQuery() { } public CacheQuery(String parameter1, String parameter2) { this.parameter1 = parameter1; this.parameter2 = parameter2; } public void run() { Object result = ... // Perform your cache queries // set the results to pass back to the client setResult(result); } public void readExternal(PofReader pofReader) throws IOException { parameter1 = pofReader.readString(100); parameter2 = pofReader.readString(101); } public void writeExternal(PofWriter pofWriter) throws IOException { pofWriter.writeString(100, parameter1); pofWriter.writeString(101, parameter2); } }
Now you can set the parameters in the client code using the justiciable constructor. For example the following code defines two parameters 'value 1' and ' value-2 ".
InvocationService service = (InvocationService) CacheFactory.getService("EXAMPLE-INVOCATION-SERVICE"); CacheQuery invocable = new CacheQuery("value-1", "value-2"); Object result = service.query(invocable, null);
JK
Published by: Jonathan.Knight on April 25, 2010 16:48
-
Hi all
I wrote a code for an adapter where I want to update a particular column of a table.
for that I use:
tcDataSet tcdataset = new tcDataSet();
String query = "update UD_EDIR_USR set UD_EDIR_USR_USERID = '" + newCn + "' where UD_EDIR_USR_USERID ='" + Userid + "'";
tcdataset.setQuery (dataProvider, query); dataProvider is passed to the base of the adapter reference object
tcdataset.executeQuery ();
now when I perform the task it is to launch me following error on jboss console
tcDataBase/readpartialStatement a few problems: query doesnot contain "Select".
java.lang.IllegalArguementException: query doesnot contain "Select".
So how can I update a line through the adpater code?
Thank you.If you make the statement within the IOM in an adapter, use the reference database as your variable passed in your adapter. tcDataProvider is the data type.
If you run in a scheduled task, you should be able to do getDataBase () .writeStatement (arg0) with your return.
-Kevin
-
Need of CD drive bootable compatible 16 bit for Portege R100
Hi all.
I have a protected R100 I need to run the recovery cd on.
So far, I discovered that I need a CD bootable (usb not supported) 16-bit pcm.My problem/query is that I can't find anywhere to establish:
(A) a device approved, favorite or compatible
(B) the best place to do it.
Would be very grateful for any info...
Thanks in advance.
Chris
Hey dude
I found something for you:
http://support.toshiba-tro.de/KB0/TSB5100S70004R01.htmIt s a TSB Toshiba Portege R100 on sustained recovery disks.
I hope I could help ;)
-
Cannot install Windows 10, no compatible graphics
Windows10 compatibility says my screen is not compatible and will not be updated to Windows 10 of my Windows 7 Pro 32-bit. The monitor is supported, but not the graphics card, a Pro PCI Express RadeonX1300. By AMD, the former driver for this card is only compatible with Windows8 and 10, but not 7. There is a long post on this community on how to make your old card work after installing Windows 10, but my problem is that it installs any. I thought that Windows10 was supposed to select a generic driver that I would then have to tweek, but does not. Can anyone help?
Original title: Windows 10 and older graphics cards
I don't know where, on the AMD website, you found a statement that he was a driver for the Radeon X 1300, that would work for Windows 8 and 10, but not 7. When I looked, the Windows operating system only mentioned for this card were XP and Vista. On the HP site, there is a version a little more early of Vista driver which is supposed to work for 7.
I suspect that the X 1300 is just too old for Windows 10, despite the claims of various sketchy web sites they have 10 Windows drivers for this card.
I suggest you get a new video card. It may be an old (and so expensive), but not quite as old as the X 1300. See, for example, the last two posts on this thread--> http://www.tenforums.com/drivers-hardware/12162-x1300-windows-10-problem-query.html
-
The context of invocation. Simple text sharing problem
Hello
I would like to have an option of sharing simple text on my request. To do this, I use this code in my. QML file:
ActionItem { attachedObjects: [ Invocation { id: invoke query: InvokeQuery { id: invokeQuery mimeType: "text/plain" data: "This is a text text" } } ] title: qsTr("Share") imageSource: "asset:///images/share.png" ActionBar.placement: ActionBarPlacement.OnBar onTriggered: { invoke.trigger("bb.action.SHARE") } }
With the above text, I can see the hardcoded text appear in all applications that I can share for (bold line), however, if I use the following line to change the text dynamically to the current item of the list instead I get nothing. No text is common to all:
data: ListItemData.description
Do you have someone was able to share a dynamic text?
Thank you
Well, I managed to find a solution, but I had to use C++ instead of QML. You have here, just in case some of you have the same problem:
void MyApp::share(QString name, QString surname, QString age) { printf("Share invoked"); m_pInvocation = Invocation::create( InvokeQuery::create() .parent(this) .mimeType("text/plain") .data(name.toUtf8() + surname.toUtf8() + age.toUtf8())); QObject::connect(m_pInvocation, SIGNAL(armed()), this, SLOT(onArmed())); QObject::connect(m_pInvocation, SIGNAL(finished()), m_pInvocation, SLOT(deleteLater())); } // Declare the following method as SLOT on your .hpp file void MyApp::onArmed() { m_pInvocation->trigger("bb.action.SHARE"); }
-
Hi all
I'm trying to implement MediaPlayer invocation in my application, but faced the following problem. Here is the code:
Invocation { id: mediaPlayerInvocation query: InvokeQuery { invokeTargetId: "sys.mediaplayer.previewer" mimeType: "video/mp4" uri: "file:///accounts/1000/shared/downloads/video.mp4" invokeActionId: "bb.action.OPEN" } onArmed: { console.debug("ARMED"); } }
However, I always get the following when you start the application error message:
Warning: InvocationWrapper::onQueryFinished: no matching result from Menu Service for query mimeType="video/mp4" uri=QUrl("file:///accounts/1000/shared/downloads/video.mp4") data= "" metadata= QMap() perimeter= 0 action= "bb.action.OPEN" target= "sys.mediaplayer.previewer" invokerIncluded= false Warning: InvocationPrivate::onQueryResolved: no result matching query, no armed signal sent.
and therefore does not all subsequent calls to mediaPlayerInvocation.trigger ("bb.action.OPEN") - literally nothing happens.
I tried to omit mimeType, specify a different URL (URL http:// netwok even), but I always get the error "no matching result from Service Menu" as above. I am that running on Z10 OS version 10.2.0.1743. I would be grateful for any suggestion.
Thanks in advance for your help.
Yes, that's exactly what happened to my application too. When BB10.2 came all my related calls (browser, remember, etc.) has stopped working, EXCEPT BBWorld, which always worked well.
I have no sideloaded 10.2.1 so I don't know if they already corrected invocations, but BlackBerry says that they are working. Although 10.2.1 includes a fix it will be some time before it takes place around the world and in the meantime we all had to rewrite our invocations for our applications would continue to operate.
You might want to mark this topic as resolved since he has basically one duplicate of several others.
oleg_derevenetz wrote:
What is interesting, Invocation of BB world still operates in QML. OK, I'll try to do that through C++.
greenmr wrote:
-
Motion 5.0.7 memory 8 GB, processor 2.93 GHz intel Core i7, ATI Radeon HD 5750 1024 MB graphics
Bezier masks do not appear in the timeline, preventing me from editing. The masks appear in the column of layers only. The problem just started yesterday. The query projects previously do not seem to be performed.
In the upper right corner of the canvas, there is a view menu. Check if the 'lines' are checked in the section view overlays.
Maybe you are looking for
-
When I press something on some pages or many pages after the last update of firefox, I see this annoying announcement http://Store1.up-00.com/2014-04/1397338820591.PNGI don't know that this is not Web sites... It's about firefox because I face only t
-
message of the translation in french
Hello!! Asked me to translate the message from English to french before sending the message. The person has apparently or understand how to use the translator to activate it on Skype. Skype which can be possible?
-
Satellite A500D-10U - where can I order the new inverter?
First of all, sorry for my English. I have a laptop A500D-10U and I have a problem with the screen. I searched the web and I think the problem is the inverter. I could see on the screen but very very dark, then I opened it and I disconnected the ups
-
What is the value from the registry: "HKLM\SystemCurrentControlSet\Services\Tcpip\Parameters--> TcpNumConnections = 0 x 00000064'. Not just any kind of malware According to microsoft, but scanner spotted by Norman Malware Cleaner and quarentined. He
-
Spooler SubSystem app consumes all CPU.
I am running Windows 7 64-bit OS. Can not print, but of course, the system is extremely slow for all functions.