Browser Invoke Event Code Sample for HTML
I had some trouble locating a sample of the Browser Invoke
Event, where you can pass parameters from the Javascript in your
badge install, so I'm posting this in case it helps someone else.
In your badge, add:
so.addVariable("appinstallarg", "yoursampledata"); //
remember that Adobe has a restricted type of characters you can
pass in...
In your app code:
air.NativeApplication.nativeApplication.addEventListener(air.BrowserInvokeEvent.BROWSER_IN VOKE,
onInvokeEvent);
function onInvokeEvent(e) {
arguments = e.arguments;
air.Introspector.Console.log( arguments );
}
THANKS A LOT
it really helps me
Similar Messages
-
Browser invoke event startup order
Hi.
We have an application that gets installed with badge and also configured over badge. The badge sends some arguments with the instalation and the application generates its config file if it does not exist. This worked great, but now we had to make a change, so that not only the first time the application should check to browser invoke event, but actually every time, it is started over web.
The problem is that we add the NativeApplication.nativeApplication.addEventListener(BrowserInvokeEvent.BROWSER_INVOKE at the beginig of application, but the event handler isn't executed until so late in application, that all other initialization is done (INVOKE handler, config loader). At that point the only thing we could do is restart the application.
My quiestion is. How to reliably wait for the browser invoke event, if possible not on timer. If the application was not run over badge, we want to start normaly as soon as possible.
Best.To whom it may concern.
Invoke and browser_invoke handlers should be regisered only after loaderInfo COMPLE event is fired. Also know that uncaughtErrorEvents UNCAUGHT_ERROR will work after the COMPLETE wvent fires.
Good luck. -
Code samples for SSLEngine?
I am attempting to re-implement the SSL support in our product under the new non-blocking I/O model. SSLEngine seems to be the starting point...but I can't find any code samples anywhere showing it working.
Anybody have any ideas where to look?
There used to be a whole suite of samples in the JSSE...but don't know where they are, now that the JSSE is part of J2SE :(SSLEngine is new in tiger (JDK 1.5), and as such, hasn't been released
publically yet. I believe they are looking at sometime in Q1 2004 for the first
public beta, and ships later in 2004. If you're a licensee, you can get early drops.Yup...I'm currently working with JDK1.5 b30.
Anyway, SSLEngine will eventually have sample code, but nothing has been produced yet.
On the whole, the non-blocking model takes some care to use correctly. The SSLEngine
is pretty straightforward, but it's not as simple as SSLSocket.I'm aware of that - we've already rewritten our product to utilize java.nio. That's why I was
hoping to find some code samples for the new SSLEngine class.
To answer your other (implied) question, the sample
code for JDK 1.4 can be found in the JSSE Reference Guide. See:
http://java.sun.com/j2se/1.4.2/docs/guide/security/jsse/JSSERefGuide.html#CodeExamples
Thanks for the link...I guess I should have looked in the OLD jdk docs. The 1.5 docs
don't include most of the 'guide' folder from previous releases. -
Java code sample for uploading file
Guys can some one give me a java code sample for uploading more than 1 file .
I have a working example but that is only for one file.
thanks
MThrow it away. Go to the [http://commons.apache.org/fileupload] and carefully read both 'User Guide' and 'Frequently Asked Questions' sections.
And please, please also carefully read this article: [http://balusc.blogspot.com/2008/06/what-is-it-with-roseindia.html]. -
Code Samples for SDK programming in Java
I need a complete set of Code Samples for SDK programming in Java, like the one that is available in VB and .Net.
For Example, if you look at the following directory of machine where SDK is installed,
C:\ProgramFiles\SAP\SAP Business One SDK\Samples\COM DI\VB.NET
we have following Sample programs in C Sharp, VB6, VB.Net
01.BasicOperations
02.MetaDataOperations
03.UsingSBObob
04.SerialAndBatch
05.OrderAndInvoice
06.ObjectsSchemas
07.Permissions
08.LoadFromXML
09.BudgetEditor
10.Messages Service
11.Basic Company Settings
12. Report Layout Service
13.SaveXML
14.ItemCycleCount
15.ApprovalStagesAndTemplateServices
16.Alert Management Service
Iam looking for Samples like what is available above so that we can understand JCO better.Hi Sridharan,
The only JCO samples I know of are posted in the [thread|;.
Regards,
Vítor Vieira -
Tutorial & Code Sample for Developping Composites with CAF
Do you have tutorials & Code samples for developping composites with CAF like Webdypro for Java as on this SDN site:
https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d
Thanls, regards, peterTake a look at https://www.sdn.sap.com/irj/sdn/developerareas/xapps?rid=/webcontent/uuid/7b9b3834-0801-0010-6a9a-dc53e0db37f2">the [original link is broken] [original link is broken].
cheers,
Marilyn -
Code sample for rtp server. please!
hi
I need to get a rtp server code, may it simple, in order to learn from it. Did not find anything from browsing. could anyone send me a sample or a link?
thanx a lotHi,
thanks for the link. I have aleready checked that, i should have specified more..
The thing is that these examples require that we have the client IP and port . But in case of a NATed client, I don t see how to get this client IP.
I looked in JMF API desperately for getting client info. But the only thing I get is the Participant class. No IP address nor a port to work with.
'Anyone has a clue, or a code sample of a small server that listen for clients and retrieve dynamically their IP/port? would help a Lot
thanx -
I just wanted to share with the community there is a huge code base at
koders.com
Over 2 million lines of code....
that has tonz of examples from almost every language. Check it out. It's pretty neat stuff if you have time to search through the code.Choosing between CMP or BMP depends on the business requirements.
If your application has a lesser complex mapping, development time is less or there is no benefit is achieving a greater control over database transactions, CMP would be preferred. However, if you wish to have a greater degree of control over the database transactions and/or the database has complex mappings, it is better to opt for BMP.
As for the code samples, you coild find hundreds of them if you do a Google search.
Regards
xH4x0r -
Code samples for using HTTPServices in Cairngorm framework
Hello there,
Does anyone have any samples for retrieving data through
HTTPServices using the cairngorm framework model. All samples on
the web, as far as I have searched, lead only to remote services
mode of communication only.
Any help here would be greatly appreciated.
Thanks,
Arun B
[email protected]I wrote a sample code modifiying the Remote Object examples
.. I got this working now . Please ignore this message, just incase
anyone needs my sample just email me.. -
Any code samples for inputting content into content manager 8.1?
Does anybody know where to find code samples of adding content to the Content Manager
via the Java API?
The only code I can find is the "Content Manager Example Portlet" and it is 7.0,
not 8.1.
It's not clear from the documentation what the Repository and Path are supposed
to be named. Perhaps we had a working example, this might help.
Thanks
DaveDoes anybody know where to find code samples of adding content to the Content Manager
via the Java API?
The only code I can find is the "Content Manager Example Portlet" and it is 7.0,
not 8.1.
It's not clear from the documentation what the Repository and Path are supposed
to be named. Perhaps we had a working example, this might help.
Thanks
Dave -
Code sample for body height on kinect v2
Someone have a good code sample to get the body height on kinect v2?
Regards.have you looked at:
https://social.msdn.microsoft.com/Forums/en-US/eba64c3f-ab99-4ccc-932e-df82740a885d/kinect-height-measurement?forum=kinectv2sdk
Carmine Sirignano - MSFT -
Java code samples for java mappings
Dear all,
Can you please send me a sample scenario in which you used the java mapping.
How do we assign the source structure,the target structure.
How do we map source->target
Do we give the source and target interface names in execute method)?
if so where do we map the same.
we have one to one mapping in graphical,message mappings which i worked with.
is there any tool for making the same thing in java?
Kindly send me the documents if any on java mapping to [email protected]
Please clarify.....ref:
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii
and
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/javaMappingSample+Code& -
Code sample for using change document function modules
Can someone send me some sample code for using function modules CHANGEDOCUMENT_READ_HEADER and CHANGEDOCUMENT_READ_POSITIONS? I'm specifically looking for changes that occured to the standard price field in the material master (MBEW-STPRS) and I need to pull the most recent price change for a given material. I'm not sure how to write the code efficiently since I don't have a date to pass (again, since we're looking for the most recent change.)
Thanks!hi check this..
CHANGEDOCUMENT_READ_HEADERS
Example:
CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
EXPORTING
objectclass = 'EINKBELEG'
objectid = l_objectid
username = space
TABLES
i_cdhdr = lt_cdhdr.
LOOP AT lt_cdhdr WHERE udate IN s_aedat.
CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
EXPORTING
changenumber = lt_cdhdr-changenr
TABLES
editpos = lt_editpos.
LOOP AT lt_editpos WHERE fname = 'LOEKZ'
AND f_new = 'L'.
p_desc = text-r01. " Cancel Contract
ENDLOOP.
ENDLOOP.
CHANGEDOCUMENT_READ_POSITIONS
Example:
CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
EXPORTING
objectclass = 'EINKBELEG'
objectid = l_objectid
username = space
TABLES
i_cdhdr = lt_cdhdr.
LOOP AT lt_cdhdr WHERE udate IN s_aedat.
CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
EXPORTING
changenumber = lt_cdhdr-changenr
TABLES
editpos = lt_editpos.
LOOP AT lt_editpos WHERE fname = 'LOEKZ'
AND f_new = 'L'.
p_desc = text-r01. " Cancel Contract
ENDLOOP.
ENDLOOP.
Check this link.
http://www.sap-img.com/mm001.htm
<REMOVED BY MODERATOR>
venkat.
Edited by: Alvaro Tejada Galindo on Mar 18, 2008 4:05 PM -
Script code sample for looping through the records from xml data file in formCalc script
Hi
I have a xml data file which contains a sequence of repeating applicant data like given below
US
II
CEO
Mr
111111111
0000000111
GuarantorA
111
IN
11111
WILLIAMS1
R3
KENNETH1
City1GU
PA
1934-03-14
[email protected]
GU
R
113 Lazlo LaneCA
Suite 3500CA
OaklandCA
TX
11345
AL
I want to assign a textfield with a value based on the value of coap_flag.
So i need to loop through all the record and check the value of coap_flag and then assign the textfield a value based on that.
I am new to Adobe livecycle...Please help me how it can be done.
I have developed something like this
foreach Item in ($record.applicant[*].coap_flag) do
test.value=Item
if(test.value=="MA")then
concat($record.applicant.first_name,$record.applicant.middle_name)endif
endforUsing the data you posted in the forum, I copied it a couple of times to give multiple records and used this code to extract the different values that you wanted. I had to wrap it in a <root> node that I called root (to make it valid XML). In my case I wrote the extracted values to a field, but in your case you can do whatever you want with them. Note that this was done in javascript:<br /><br />var currentElement;<br />var obj;<br /><br />//Get the nodes below the root node in the dataDom<br />obj = xfa.datasets.data.root.nodes;<br /><br />//Set an initial value for the textField<br />TextField1.rawValue = "The values of the coap_flag are: ";<br /><br />//Loop through the nodes in the obj set <br />for (i=0; i< obj.length ; i++){<br /> //set the currentElement to the 1st child node<br /> currentElement = obj.item(i);<br /> //Check to see if it is an applicant node<br /> if (currentElement.name == "applicant"){<br /> //It is an applican, now find the coap_flag node value and write it to the text field<br /> TextField1.rawValue += "\n" + xfa.resolveNode("xfa.datasets.data.root.applicant[" + i + "]").coap_flag.value;<br /> }<br />}
-
Can anyone give me a code sample for enhancing a text datasource
for some reason it's a little different than using the regular transaction to master data user exits.
Thanks!Hi,
Rarely guys used it.."EXIT_SAPLRSAP_003"
In one forum, i read that 002 will support the text datasource too..try it and check
check this:
Re: Unable to debug user exit in CRM BW (EXIT_SAPLRSAP)
EXIT_SAPLRSAP_003
Maybe you are looking for
-
Problem with JTree editing icons
Hello, I want to edit another icons than the default icons in JTree object. I look in the javadoc at the several methods, but I do not find a method witch can give me the possibility to setup the collapsed and expanded icon. If some one now how to do
-
How do I set the desktop wallpaper with an image in aperture 3?
Sorry for the silly question, but I can't find how to set my desktop wallpaper with an image in aperture 3. It was simple when using Iphoto, but I can't find the method in aperture. Thanks, Dale.
-
How Do I Find How Much "space" My Documents uses
Were can i find how much hard drive space my documents occupies. I'm trying to save to the cloud but I'm not sure how much I need to purchase....
-
Temperature Warning on a Canon C500?
Has anyone seen a Temperature Warning on a Canon C500?
-
Working on a wireless deployment for a client... wanted to get updated on what the latest best practices are for enterprise wireless. Right now, I've got the corporate SSID integeatred with AD authentication on the back end via RADIUS. Would like to