How can I call the create method in BO from Application Service
Hello!
When I create a Business Object, CAF generates some methods automatically.
How can I call the create method in the BO from Application Service logic?
When i call the method then the entityManager and the sessionContext is NULL.
How can I initialize this?
Can anybody help me?
Thanks, Thomas
If you are using CE 7.11...
1) In the Application Services, add the BO as dependant object in dependencies tab.
2) In the implemention, add the following codes to call create method of the BO:
this.get<BO>.createMethod();
julius
Similar Messages
-
How can i call the certificate selection dialog box from source code?
How can i call the certificate selection dialog box from source code?
NB: Of course if i have more than one certificate in the Microsoft Keystore 'My'.
Thank You in advanceI found an example of the "TestStand UI Expression Control.ctl" and it works just the way I need it. (check the link)
Proper use of "TestStand UI ExpressionEdit Control" in LabVIEW http://forums.ni.com/ni/board/message?board.id=330&requireLogin=False&thread.id=10609
The "Expression Browser Dialog Box Button" F(x) stays disable while editing the VI, however it become available when the VI is called from TestStand.
Thank you,
Hecuba
Mfg. Test Engineer
Certified LabVIEW Associate Developer -
How can i track the all sql/query executed from application
How we can track all sql/query that has executed or being executing on oracle database server 10g r2.
regards
Prabhakerselect s.sid,
s.status,
s.process,
s.osuser,
a.sql_text,
p.program
from v$session s,
v$sqlarea a,
v$process p
where s.sql_hash_value = a.hash_value
and s.sql_address = a.address
and s.paddr = p.addr
and s.schemaname = '&1'
and s.status = 'ACTIVE' -
How can we call the method of used controller?
Hi All,
i created two WDA Applications.( like YWDA1,YWDA2 ) . i am using the component WDA2 in WDA 1.and displaying the one view of WDA2 as popup window in WDA1 on action of one of the input element in the view of WDA1 by using the method l_window_manager->create_window_for_cmp_usage
I have a button on the view of WDA2 which has appear in the popup window...how can i call the method which has binded to that button....and where should i code that...and i need to assign selected value in the popup window to input elemetn of view WDA1
Please help me to resolve this....
Regards,
RaviYou can not directly call view's event handler from other component.
create a method in component controller of the second component and in the button click call the component controller method. ( also make the method as interface so that you can call it from other components )
Now, you can call the interfacecontroller's method
DATA: l_ref_INTERFACECONTROLLER TYPE REF TO ZIWCI__VSTX_REBATE_REQ_WD .
l_ref_INTERFACECONTROLLER = wd_This->wd_CpIfc_<comp usage name>( ).
l_ref_INTERFACECONTROLLER->Save_Rr(
STATUS = '01' " Zvstxrrstatus
save_rr is the method of second component controller -
How can I call the jFreeChart to plot graph and get the result in Servlet?
I want to use jFreeChart to plot time series graph, and then output the result in Servlet. How can I call the jFreeChart to plot graph and get back the result? Any source code for example? Thanks a lot!!
Dave,
ServletDemo1 and others were not in the distribution that I got (jfreechart-0.9.4). I found them under the premium demos somewhere in com/refinery/chart/demo/premium, but could not compile. They're complaining, among other things, about missing classes/packages com.refinery.date.SerialDate and com.refinery.ui. Am I using a wrong version of jfreechart?
Thanks,
-Alla
There is a very simple servlet demo in the JFreeChart
distribution:
src/com/jrefinery/chart/demo/ServletDemo1.java
This simply sends back an image to the browser.
A second demo, which embeds the chart in an HTML page
is:
src/com/jrefinery/chart/demo/ServletDemo2.java
src/com/jrefinery/chart/demo/ServletDemo2ChartGenerator
java
...includes a time series chart as one of three
options.
Regards,
Dave Gilbert
JFreeChart Project Leader
http://www.object-refinery.com/jfreechart/index.html -
How can i call the Buttons which made in flash
Sir
i design some Flash buttons but it is save as .swf extension
if i save as jpg or gif then animation not working as well as
effects.
sir
how can i call the flash buttons in java plz guide me
JButton mybutton=new JButton(how can i pass swf extension button);of course, anything's possible, but to do this means first getting a bridge from flash to javascript or com or something, and then a bridge from javascript to Java. So in short,
It's not possible. -
How can I Call the MainVI from its SubVI, and this happen recursively?
Hi All,
How can I Call the MainVI from its SubVI, and this happen recursively?
Actually, LAbView 7.1 doesn't support recurssion?
Plz help me out!Dear GerdW,
Thanks a lot 2 all of u guys,for all the brilliant responses.
Actually, my basic aim is to call the Main VI, containing a SubVI.....
Now, I want to call my main VI from this SubVI...recursively!!!!!..but whenever I tried to put the MainVI in this SubVI..an error message pops out saying recursive calling is not possible.
I also tried using "Call by reference" but tht also didn't worked...an d error is somewat like...VI is invalid..or type matching..or state matching error.
Here, Im attaching the snapshot of the MainVI... Im calling the SUBvi from it... It is running GOOD n FINE...
But prob arrives when I call the Main from the SUBvi, which looks like same as MainVI(with little differences).
I hope, Im clear in my words n not being ambigous.
Plz, correct me where ever im wrong.
Thank You.
Mishra_RnD
Attachments:
ScrShot.JPG 272 KB -
How can I change the payment method to None with gift card balance.
How can I change the payment method to None with gift card balance?
I already have an Apple ID account with no credit card but when I try to log in download free app it says Apple ID has not been used in iTunes store please review your account and it appears the billing info and there's no none in the option..how can I solve this so that I can used my Apple ID and can download free apps?Hi ..
Help here > Why can’t I select None when I edit my payment information?HHi -
How can I Cache the data I'm reading from a collection of text files in a directory using a TreeMap? Currently my program reads the data from several text files in a directory and the saves that information in a text file called output.txt. I would like to cache this data in order to use it later. How can I do this using the TreeMap Class? These are the keys,values: TreeMap The data I'd like to Cache is (date from the file, time of the file, current time).
import java.io.*;
public class CacheData {
public static void main(String[] args) throws IOException {
String target_dir = "C:\\Files";
String output = "C:\\Files\output.txt";
File dir = new File(target_dir);
File[] files = dir.listFiles();
// open the Printwriter before your loop
PrintWriter outputStream = new PrintWriter(output);
for (File textfiles : files) {
if (textfiles.isFile() && textfiles.getName().endsWith(".txt")) {
BufferedReader inputStream = null;
// close the outputstream after the loop
outputStream.close();
try {
inputStream = new BufferedReader(new FileReader(textfiles));
String line;
while ((line = inputStream.readLine()) != null) {
System.out.println(line);
// Write Content
outputStream.println(line);
} finally {
if (inputStream != null) {
inputStream.close();How can I Cache the data I'm reading from a collection of text files in a directory using a TreeMap? Currently my program reads the data from several text files in a directory and the saves that information in a text file called output.txt. I would like to cache this data in order to use it later. How can I do this using the TreeMap Class?
I don't understand your question.
If you don't know how to use TreeMap why do you think a TreeMap is the correct solution for what you want to do?
If you are just asking how to use TreeMap then there are PLENTY of tutorials on the internet and the Java API provides the methods that area available.
TreeMap (Java Platform SE 7 )
Are you sure you want a map and not a tree instead?
https://docs.oracle.com/javase/tutorial/uiswing/components/tree.html -
How can i pass the parameter for strored procedure from java
dear all,
I am very new for stored procedure
1. I want to write the strored procedure for insert.
2. How can i pass the parameter for that procedure from java.
if any material available in internet create procedure and call procedure from java , and passing parameter to procedure from javaHi Ram,
To call the callable statement use the below sample.
stmt = conn.prepareCall("{call <procedure name>(?,?)}");
stmt.setString(1,value);//Input parameter
stmt.registerOutParameter(2,Types.BIGINT);//Output parameter
stmt.execute();
seq = (int)stmt.getLong(2);//Getting the result from the procedure. -
I have copied my CDs into iTunes (currently running v11) to play on my iPod. I have now bought a non Apple mp3 player to use when I am out running. How can I copy the many tracks I want from iTunes onto the new player?
ThanksI tried Notpod but can't get it to work. Part of the problem, I suspect, is that I can't create a folder on my player (a SanDisk Clip+). I also can't do this in Windows Explorer. Whilst I can see the Clip+ in Explorer, the option to create a new folder isn't there.
The error mesag I get in Notpod is:
"Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit the application will close immediately.
InvalidArgument=Value of '0' is not valid for 'SelctedIndex'. Parameter name: SelectedIndex"
Then, when I plug the Clip+ into a USB port, iTunes thinks it is my iPad - which is because, I guess, Notpod hasn't worked.
I can drag and drop files from the Music folder where my iTunes tracks are stored onto the Clip+ and they get converted but I'd rather synchronise a Playlist from iTunes if I can.
Thanks anyone who can help -
How can I copy the whole directory of files from PC to iPad?
How can I copy the whole directory of files from PC to iPad ?
Get an app that reads PDF's, such as iBooks or GoodReader or Readdle Docs, then use the file transfer part of iTUnes to get those files to your iPad, through iTunes. ( I have no experience with goodreader, but with ReaddleDocs you can move the files, then create folders to put them in to keep them organized)
-
How can I remove the photos without deleting them from the album?
I am making a book in Aperture 3. I want to change some of the pages that I have put together, and want to remove some of the photos from some of the pages, to put them on another page. How can I remove the photos without deleting them from the album?
As a follow-up, I have found that clicking on the photo in the book also highlights the photo on the strip below. So, if you then hit delete, you will delete the photo from both the book page and the album (which is the book, the way I have it set up). If you only want to delete it from the book page, you then have to un-click the photo on the strip below, or both will be deleted. This seems unwieldy. I deleted 6 photos from a page and found all of them gone from the album. The only way that I can see to keep them in the album is to then unselect them from the bottom strip after selecting them fro the page. This seems to call for an extra step.
Nancy -
How can I take the files that were migrated from my PC to my Mac and add all those files to my current user instead of having 2 users? Having to log out just to sign in on a different user to access the files is absurd.
Do I make all the files sharable to all the NOW users on the mac then just delete the files? Or can i erase my account that I made when starting up my new mac and then just use the one with the transferred files?
I just dont want to have to og in and out of 2 different accounts .. Help please.
-NinaSorry. /Users is a folder path. It would be similar to C:\Users (if that exists on Windows).
So, in the Finder, select Computer from the Go menu.
You'll see Macintosh HD, double-click that to open it.
In there you'll see several folders. One is Users. That is where all the user Home folders exist. Select the other account's home folder and go to step 3.
If you have any more confusion, please stop and ask. We'll get there.
If you feel more comfortable, you can just log into that other account and move the files into /Users/Shared.
Then, log into the account you wish to use and copy the files from the Shared folder and paste them into your Home folder, wherever they belong, Documents, Music, Pictures, etc. That just takes a little more work. Transferring them into Shared, and then copying into your home sets the permissions on the files so that you won't have a problem accessing them later. The steps I provided just prevent you from having to do the double move, since you are not going to use the old account once you are done.
Quick unix shorthand. If someone gives you a file path that begins with a /, that means the root of the hard drive, ie Macintosh HD (if you haven't renamed it). The path separator in unix is /, not \.
A path that starts with ~/ means your Home folder, the one inside /Users named with your account name. -
I use 2 monitors how can I lock the dock to keep it from sliding over to next monitor?
I use 2 monitors how can I lock the dock to keep it from sliding over to next monitor?
I found the answer in the "more like this" area. Thanks for helping.
Maybe you are looking for
-
I recently upgraded to 10.8.2 and now my iphone4S won't sync my calendars
I recently upgraded to 10.8.2 and now my iPhone4S won't synch my calendar
-
Crystal Server 2011 "Failed to open the connection" with 32 & 64 bit drivers are loaded
Brand new installation of Crystal Reports Server 2011 with CR Developer 2011 as well. Downloaded new Postgres and MySQL drivers for both the 32 and 64 bit ODBC definitions. Created a new report on the server to eliminate any migration driver incomp
-
Blue screen of death when i go to sync
I got an ipod classsic 6th generation. When I connect it to itunes it begins to sync but then it freezes and goes to the blue screen of death. Numbers appear which I will post later. Please help!
-
Hello Friends, Help Needed in Query
Hi, I have a table with the structure SELECT * FROM PR_TST ID PRS_ID 16 - 8 17 - 9 18 - 10 20 - 10 23 - 5 25 - 5 28 - 30 30 - 32 SELECT * FROM PR_PRS_TST PRS_ID - PRS_WT 8 - 8 9 - 9 10 - 10 5 - 12 30 - 19 32 - 17 Now i want to add a new field in the
-
MAC Mini Server Startup Problems
Help! MAC newbee. Just bought a new MAC Mini Server, got monitor connections in place; have wireless keyboard and trackpad; at startup I get the white screen with apple background then followed by a screen with a graphic with some rounded-corners rec