Call the java method lunch application
Hello
I use JDev 12.1.3 with MAF, I want to call the java method of the project ViewController lunch application, how can I do this?
Thank you
Hello
Can you explain usecase? What features do you need perform the start-up of the application?
You can run java code in an application LifeCycleListener - https://docs.oracle.com/middleware/maf210/mobile/develop-maf/maf-apps-register-listeners.htm#ADFMF25120
Tags: Oracle Mobile
Similar Questions
-
What is the best way to call the Java method in JSP in weblogic 10.3
Hello
What is the best way to call the Java method in JSP in weblogic 10.3?
Thank you for your help in advance.
Thank you
ManuHello Manu,
If I understand your question, all you need to do is import the Java class you want to create / obtain an instance of it (if you're not calling a static method), then call the method, the entire interior of the JSP. It works the same way in Weblogic that it works in any JSP.
Kevin
-
How to call a Java method n map the output of this method to a table in ODI
Hello
I am new to ODI. I wrote an interface that links the two tables (source) to a file (in the target). Now, I must apply a method (java call) on each element in a column in the target. Now my questions are:
1. all I know is to use the procedure using BeanShell Java or Jython. Can you give some examples of commands to achieve such a feature?
2. where should I actually apply this procedure? Is it possible to apply this procedure within the Interface during the mapping (so that I can map directly the result in the output file)?
Thanks in advance :)Not sure why you want to call a java method for each column.
But as others have mentioned, an ODI procedure won't help you do.However, there are other options you can exercise:
(1.) assuming that you are using Oracle, you can compile the Java class and wrap it as a PL/SQL function and then call this function from pl/sql to the ODI interface. This procedure will be called like any other function oracle for example. Upper (col1).(2.) as I understand, it's that you want to apply the Java method for all columns.
Assuming that you have knowledge with Jython and the code inside the KMs, you can customize the KM to include the Java method around the columns. But this approach is complex if you are a beginner.Hope that helps
-
How to call a Java method, pl/SQL from within ApEx
I want to call a Java method, which I intend to use to add members to a collection at the ApEx of another source of data.
How does one call a Java from ApEx method?
Thank you
Gregory
Hello
Curious, the link works fine for me.
Anyway, here is another, a thread on AskTom site that addresses the basic concepts you need-
http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:952229840241
Hope this helps,
John.
--------------------------------------------
Blog: http://jes.blogs.shellprompt.net
Work: http://www.apex-evangelists.com
Author of Pro Application Express: http://tinyurl.com/3gu7cd
AWARDS: Don't forget to mark correct or useful posts on the forum, not only for my answers, but for everyone! -
BrowserField IllegalStateException to call the RequestContent method
Hello world.
I'm IllegalStateException when you try to view another page HTML on my BrowserField. This happens when BrowserField Manager calls the removeField() method.
The paper said: to remove is field with focus - index: 0 - fieldDebugTree: net.rim.device.api.ui.component.NullField (0, 0) + (0, 0) * home * \n - managerDebugTree: net.rim.device.api.browser.field2.BrowserField (0, 0) + (480, 70) [480, 70] \n net.rim.device.api.ui.component.NullField (0, 0) + (0, 0) \n
Everyone knows that kind of problem before?
Thanks before.
Never mind. I found the solution to this problem after doing some more research on this forum.
Here is the link to the post with the solution: http://supportforums.blackberry.com/t5/Java-Development/BrowserField-refresh-throwing-IllegalStateEx...
-
How to call the java function with javascript setting in mobile adf?
How to call the java function with javascript setting in mobile adf?
The ADF Mobile utility container API can be used from JavaScript or Java.
-
Calling a Java method in a page JSFF fragment.
Can someone tell me how I can call a Java method in a page JSFF fragment?
Here's an excerpt from my jsff (My.jsff):
< af:column sortProperty = "CrtdByUserid" sortable = "false".
headerText = "#{customstoregroupviewcontrollerBundle.USER_LABEL} '"
ID = "user" align = "center" >
< af:outputText value = "#{rank." CrtdByUserid}"id ="ot5"/ >
< / af:column >
Here is the method of my Java (MyBacking.java)
public String resolveUserName (String pUserId) {}
try {}
JCCRoleHelper jccrh = new JCCRoleHelper();
Return jccrh.getUserName (pUserId);
} catch (Exception e) {}
return pUserId;
}
}
I would replace "#{rank." CrtdByUserid}"in My.jsff with a call to the java method"resolveUserName (String pUserId)"of My.java by passing the value of" #{rank. " CrtdByUserid}"to return the string to fill the 'af:outputText = value'.
Any help would be greatly appreciated.Hello
create and save a bean inside taskflow, for example, name it userResolverBean.
The bean code
import java.util.HashMap; public class UserResolverBean { private HashMap _user; public UserResolverBean() { _user = new HashMap() { @Override public Object get(Object key) { if(key == null) return null; return resolveUserName(key.toString()); } }; } public String resolveUserName(String pUserId) { try { JCCRoleHelper jccrh = new JCCRoleHelper(); return jccrh.getUserName(pUserId); } catch (Exception e) { return pUserId; } } public HashMap getUser() { return _user; } }
and use it like this
Cheers!
Kind regards
Published by: Santosh Vaza on August 8, 2012 11:48
-
Connector WFD SDK - how to call the server method?
I use the FMS connector C++ to perform editing work. And I am obliged to call a method side server.
I tried to use the INetConnection::call () method, but it seems to be successful.
The specification of the server FMS told me to do,1. call the server method,
NC. Call (streamname, null, "FCPublish");
2. implement a callback function onFCPublsihnc.onFCPublish = function (info) {...}
How can I implement the latter with FMS Connector C++?
The FMS connector document include a subject too little on the method call server-side.
WFD SDK connector, the netconnection call prototype looks like this.
virtual bool call (const char * funcName, const unsigned char * arguments, unsigned size, OnResultHandler * result) = 0;
Thus, you will have to serialize the arguments and then pass it to call the function.
Check
bool FMSCTester::testCall (const char * cmd, const char * arg)
method in FMSCTester sample application that comes with the software development kit how to serialize and call the function.
For Server callbacks, you have to implement a netconnection sink with the onCommand method is called when the server calls a method on the client.
The onCommand prototype looks like this,
onCommand Sub (const char * cmd, const unsigned char * arguments, unsigned bufLen, IRetValue * retVal)
again, you can check the MyNCSink class in the FMSCTester sample project for an implementation of onCommand.
-
Hello
I have a main VI who Subvi inside case structures put in place to show FP when called and be modal.
These subVIs have a secondary that will pull up a call using RunVI method dynamicVI. The dymaicVIs is built using the constant application directory + name of VI to the invoke method.
now the main VI is built in exe with the dynamicVIs in the list always included.
When I run the main exe I get error 1026 VI reference invalid.
Help, please
Thank you
Choose the layout of the 8.X file will change the path that your screw referenced are when you build your executable file.
http://zone.NI.com/reference/en-XX/help/371361K-01/lvconcepts/referencing_files_in_applications/
If you choose this option of layout, you adress just the vi you are calling where having the option deselected will mimic your file structure layout it is developing.
-
Call the InvocationManager from an application thumbnailed
In some of my experiences to see what is happening with the problems I see in this thread:
I try to call the method invoke() of InvocationManager while my application is thumbnailed, and none of these calls actually occur. This is the case if I try to call using QML or C++. When I try to call via QML, I get an error like this:
"Call failed for action ="bb.action.OPEN", target is" sys.appworld ", reason ="BadRequest ".
and I did not quite add enough diagnostic code to the route of C++ to see what error information is available, but before we go too far down an experiences w / these rat hole, anyone know if it is even possible to successfully invoke another application while your application is thumbnailed?
I don't see why it shouldn't be, because your application can run code, although it's thumbnailed.
You cannot rely on applications for benefits or cards so that your application is reduced to a minimum. Such calls will only work if your application is in the foreground. It is an intentional restriction to avoid problems UX to interrupt what the user is doing. This is the same reason why we don't allow RFA benefits or cards from an application without a head.
-
How to: call the calendar from my application?
I want to call the application calendar from my application so that the user can use the calendar interface to define its event. I would like to be able to send data to the calendar during the call, e.g. the name of a person or place and that this info is included in the calendar in the subject case or place or somewhere.
Is this possible?
If this isn't the case, I need to define my own event interface to allow the user to choose a date and time and other details chercher search screen, then add them to an event object?
Thanks in advance.
You can call the calendar application using the API invoke, as well as an ApplicationArgument for the calendar.
See the javadocs.
-
Hi all
Now I use BB8320 for the Version of the OS 4.5.0.102. When I try to use "Application Loader" of DM to add new software, the program stops at "Configuration of device of recovery." 'Java to read Application configuration' is marked but is not 'System playback device Configuration'. The program has no answer at this stage.
I tried with DM V4.2 and V5.0 and had the same problem. I hope that if you have some tips to help me with it!
Kind regards!
Have no idea what is the reason for which final, but after I wiped all programs (settings-> Options-> Security-> General Settings Options-> wipe Handheld), the problem has been resolved.
-
Call the static method from Acrobat to c#
I have a static function of C++ and I want to call this function from c# code (it's a button_click event). I tried to export this function by creating its DLL, but it does not work. My C++ function looks like this: static ACCB1 Sub ACCB2 HighlightWord(void *data). Please give some advice?
When you say "expose plugin methods c# in a standardized manner", it means the plugin itself must be built as COM, so that its methods are exposed?
If so why do I need to expose COM plugin together when I need to call only one method of plugin? Please specify.
In addition, the project plugin C++ is unmanaged code. A wrapper around plugin is necessary, so that it can be exposed to c#. My understanding is correct?
-
Call the new method? (simple question)
Once the summary of the product label is in charge, I would call my setLabel method to set the value of the text of the label. This should be easy, but the parameters of the method are cases "e: Event" I was not able to do 'setLabel()' or ' setLabel (e: Event) "and addEventListener is not working either. HELP PLEASE!
public function drawProductSummaryLabel() : void { // Create a holder that will contain the footer label. var productInfoHolder : Sprite = new Sprite(); // Add the holder to the stage. addChild(productInfoHolder); //Create font for the label var format1 : TextFormat = new TextFormat(); format1.font = "DejaVu Sans"; format1.color = 0x000000; format1.size = 12; format1.bold = true; productSummaryLabel.visible = true; // productSummaryLabel.defaultTextFormat = format; // WHY DOES THIS NOT WORK??? productSummaryLabel.autoSize = TextFieldAutoSize.LEFT; productSummaryLabel.wordWrap = true; productSummaryLabel.selectable = true; productSummaryLabel.alwaysShowSelection = true; productSummaryLabel.width = 846; productSummaryLabel.height = 80; productSummaryLabel.text = "loading text"; // Initial text before its replaced addChild(productSummaryLabel); trace("Step 9: Product text appears now."); // Add xml data in label productSummaryLabel.addEventListener(Event.COMPLETE, setLabel); // THIS HAS NO EFFECT!! // Create the button var button : Sprite = new Sprite(); // Disable the mouse events of all the objects within the button. button.mouseChildren = false; // Make the sprite behave as a button. button.buttonMode = true; // Create an original state for the button. var originalState : Sprite = new Sprite(); originalState.graphics.beginFill(0xFFFFFF); // Follows format of: x, y, width, height originalState.graphics.drawRect(0, 0, 846, 80); // Apparently roundRect is possible!!! originalState.alpha = 0.5; originalState.name = "original"; // Create a hovering state for the button. var hover : Sprite = new Sprite(); hover.graphics.beginFill(0xCCCCCC); hover.graphics.drawRect(0, 0, 846, 80); hover.name = "hover"; // Add the states to the button as well as the label. button.addChild(originalState); button.addChild(hover); button.addChild(productSummaryLabel); // Position the text to the center of the box productSummaryLabel.x = (button.height/2) - (productSummaryLabel.height/2); // footerLabel.x = button.x for left align. productSummaryLabel.y = (button.height/2) - (productSummaryLabel.height/2); // Center align looks better than left align! // Add mouse events to the button. button.addEventListener(MouseEvent.MOUSE_OVER, displayMouseOverState); button.addEventListener(MouseEvent.MOUSE_OUT, displayMouseOutState); button.addEventListener(MouseEvent.CLICK, displayMessage); // Add the button to the holder. productInfoHolder.addChild(button); // Postion The Menu. productInfoHolder.x = 80; productInfoHolder.y = 275; // Hide the over state of the button. hover.alpha = 0; } private function setLabel(e : Event) : void { // FOR EACH statement to say a summary should appear for each object once it is in the center // first start with simpler statement saying if no data then load trace("Set label value"); for (var i: int = 0; i < numOfProducts; i++) // change this so it corresponds to necessary summary // Done in product info label i think { var myLoader : Loader = new Loader(); var myRequest : URLRequest = new URLRequest(uebersicht[i]); myLoader.load(myRequest); var myNewText : String = e.target.loader as String; // or e.target.content.loader productSummaryLabel.text = myNewText; } (...) }
> This should be easy, but the parameters of the method are "e: Event" I was not able to do 'setLabel()' or ' setLabel (e: Event).
If you want to call a method without going to the event - add a null default value to the parameter as follows:
private void setLabel(e:Event_=_null):void
Then you can just make setLabel() and the compiler won't complain. And you can't do setLabel(e:Event) for a call, that makes no sense. You would need to make a new event to happen: setLabel (new Event ("someEventString")) but unless you have a specific reason to pass the event, the method is easier.
-
Hello all :)
I have small problem,
in my project, I'm much action affair "#{bindings." ExecuteWithParams.execute}", and I would like to implement in my java method, how do?
someone helpThis might help:
http://blogs.Oracle.com/Shay/2010/12/combining_multiple_queries_and.html
Maybe you are looking for
-
3056 A what all-in One - fine work, then not?
I got the All in One printer it even not a month ago, and it worked very well for about a week. Now, all of a sudden, this isn't paper. It seems that the rubber rollers not grasp the paper and the bar to hold the rollers is very loose. On the rare oc
-
Tecra A11 - 1EJ - a more detailed help specifications
Tecra A11 - 1EJ, could be my next phone. but as a compatibility of audio pro, I need information. What USB controller is installed (example intel ICH10)?This information is essential for the critical low-latency audio hardware connected.
-
' HP Mini 210-1180NR NetBook, error message at startup PC
I get an error message that indicates; 'RunDLL '. There was a problem startingc:\users\Budwind\AppData\Local\Conduit\BackgroundContainer\BackgroundContainer.dll The specified module could not be found. The \BackgroundContainer directory does not exis
-
In XP, when you try to open any file, get the "Open with" dialog box
After a virus infection that I cleaned up, I now have the 'open with' dialog box popping up whenever I want to open a file. I tried a restore of the system, but to no avail. What do you suggest to me. Thank you
-
HP ENVY 15 t-j000 Quad Edition CTO, want to know your computer screen model