Need to create OVD 11g java plugin to process data inside DB Adapter
Hi All,
I have OVD 11g setup and I have created one Database Adapter which retrives the database(sybase) values. The values present in DB contains white spaces at the end. So when this DB adapter displays the search result, it contains the white space as some special characters ,E.g(India_/_/_/). I cant do any modification in the DB. So I have to write a plugin which I need to add to the existing DB Adapter. The plugin should trim the white space in the value that we received from DB before it is displayed in the client. Even I am new to OVD plugin creation. help me with some sample code of this kind. I have code through API guide and plugin developer guide which confuses a lot saying lot of chain concepts and etc. So help me with basic implementation points where I can intercept the data received thro DB adapter and I can trim the white space and I can pass to the client.
Thank you, that's very helpful.
Creating an virtualattribute plugin with
ContainerDN = "ou=orgTree,dc=org"
ReplaceAttribute = supervisor = { cn=%supervisor%, ou=orgTree, dc=org }
now populates a supervisor entry with supervisor being the RCU_OIM:ACT.PARENT_KEY value.
However, that value is an integer, pointing the the key of the parent. Can I resolve the key to be SELECT RCU_OIM:ACT.ACT_NAME from RCU_OIM:ACT where RCU_OIM:ACT.ACT_KEY = %supervisor% ?
Do I need to create another adapter, and perform a join? If so, can I use the same adapter? ie: the data that I need is all in the ACT table, so creating another seems a bit excessive.
Thank you.
Similar Messages
-
Need Earlier Version of BB java plugin for eclipse 1.1.0 or 1.0
Hello All
I need earlier version of BB Java Plugin for eclipse 1.1.0 or 1.0 for BB 4.5 to 5.0.
so Is there a place to download Blackberry Java Plug in for Eclipse 1.0?
if anyone can help please help me.
Thanks in advance
ManishI maybe wrong, but I don't think there is. iBooks was only released in January 2010 and (from memory) I'm fairly certain iBooks always needed 4.0 or later.
More to the point though, what "possible problems" are you referring to? There are plenty of people who have downloaded 4.0 and now iOS4.1 without any problems at all. I'm one of them. Don't let "horror stories" in this forum put you off, no one posts a new topic with the title "I've had no problems". (That would probably be identified as the world's most boring post if it existed!)
Phil -
Querying instances in 11g and filtering by process data object
Hi all,
I have tried to query instance following this link: http://soadev.blogspot.com/2011/07/querying-oracle-bpm-process-instances.html. It works fine, but I need to filter the instances by a process data object with a String type. Is it possible to do this?Thanks Mihai
Does it mean that if the admin user does not purge instances specifically, the uses will continue to find them by querying for completed instances in their worklist (when they have already taken action for their human task, and when the related BPEL instance is finished)?
Thanks
Satinder -
I need to create an Account.jav and Account test.java but I am lost PLZHelp
This is what I got I have tried understanding what I am doing wrong I am really lost and I am begging anyone to help me PLEASE?!?
// Fig. 3.12: AccountTest.java
// Create and manipulate an Account object.
public class Account
private double balance; // instance variable that stores the balance
// constructor
public Account( double initialBalance )
// validate that initialBalance is greater than 0.0;
// if it is not, balance is initialized to the default value 0.0
if ( initialBalance > 0.0 )
balance = initialBalance;
} // end Account constructor
// debit (subtract) an amount to the account
public void debit( double amount )
balance = balance - amount; // add amount to balance
// end method debit
if(debitAmount>account1.getBalance())
System.out.printf("You don't have enough money for this transaction, the amount available is $%.2f",getBalance());
else
account1.debit(debitAmount);
System.out.printf("The new balance is $%.2f",getBalance());
//And for AccountTest.java:
public class AccountTest {
// main method begins execution of Java application
public static void main( String args[] )
Account account1 = new Account( 50.00 ); // create Account object
double currentBalance = account1.getBalance();
// display initial balance of each object
System.out.printf( "account1 balance: $%.2f\n",
currentBalance );
// create Scanner to obtain input from command window
Scanner input = new Scanner( System.in );
double debitAmount; // debit amount read from user
System.out.print( "Enter withdrawl amount from your account: " ); // prompt
debitAmount = input.nextDouble(); // obtain user input
if(debitAmount > currentBalance)
System.out.printf("Debit amount of $%.2f is greater than the Available Balance of $%.2f.%n",debitAmount,currentBalance);
else
System.out.printf( "\nwithdrawling %.2f to account1 balance\n\n", debitAmount );
account1.debit( debitAmount ); // add to account1 balance
currentBalance = account1.getBalance();
// display balances
System.out.printf( "account1 balance: $%.2f\n", currentBalance );
} // end main
}Did you have a specific question?
There are several thing I would like to point out
1. Did you keep both the public classes in the same file(AccountTest.java)? Each java file can contain only one public class. Either move class Account to its own file (Account.java) or remove the public modifier (i.e., make it friend)
2. Class Account is not defined properly. What is that hanging if statement doing there?
3. There is a call to method getBalance() of the Account class. Where have you defined it?
Here's the modified source.
File 1. Account.java. Notice the method getBalance which was previously missing.
// Separate file Account.java
// Create and manipulate an Account object.
public class Account
private double balance; // instance variable that stores the balance
// constructor
public Account( double initialBalance )
// validate that initialBalance is greater than 0.0;
// if it is not, balance is initialized to the default value 0.0
if ( initialBalance > 0.0 )
balance = initialBalance;
} // end Account constructor
// debit (subtract) an amount to the account
public void debit( double amount )
balance = balance - amount; // add amount to balance
}// end method debit
public double getBalance()
return this.balance;
}File 2. AccountTest.java.
//AccountTest.java
import java.util.Scanner;
public class AccountTest
// main method begins execution of Java application
public static void main( String args[] )
Account account1 = new Account( 50.00 ); // create Account object
double currentBalance = account1.getBalance();
// display initial balance of each object
System.out.printf( "account1 balance: $%.2f\n", currentBalance );
// create Scanner to obtain input from command window
Scanner input = new Scanner( System.in );
double debitAmount; // debit amount read from user
System.out.print( "Enter withdrawl amount from your account: " ); // prompt
debitAmount = input.nextDouble(); // obtain user input
if(debitAmount > currentBalance)
System.out.printf("Debit amount of $%.2f is greater than the Available Balance of $%.2f.%n",debitAmount,currentBalance);
else
System.out.printf( "\nwithdrawling %.2f to account1 balance\n\n", debitAmount );
account1.debit( debitAmount ); // add to account1 balance
currentBalance = account1.getBalance();
// display balances
System.out.printf( "account1 balance: $%.2f\n", currentBalance );
} // end main
}Are your questions answered? Have you learnt something out of all this? -
Need to create a function that will act like the save as browser function
I need to create a button on a web page that will open up a save dialog box and then save the current web page as an .html file on the persons hard drive. The reason for this is because the window is a pop up that does not have the browser menu or any toolbars showing just the what we call print view. This window was used only as a print view so people can print the form out but now the powers that be want a save button as well so the people can save it to there HD. I can do this in IE using javascript but no other browser allows that so I need to create something in java. I have read about the setHeader() to download the file but I am sort of new and from what I've read it all sounds like you will be downloading a specific file and not the web page as a file. Anyone have any ideas as to how I can accomplish this? It doesn't have to be the save as dialog box just a way the person can get the current web page on their HD for viewing offline and done at the press of a button. Thanks.
You'll be wanting to output a PDF or the like instead of a web page. That's the solution to your problem.
Please next time consider using a line break or two when you post. Thank you for your consideration. -
Java plugin the idiots guide to installing ?
For the love of ... how do you import these java plugin in's. Every time i get a software update i need to re~download the java plugin to play Supremacy 1914. Can some one provide an idiots step by step guide to installing this software. Many thanks.
You don't say what operating system version you are on and the process may differ depending on this, however for Lion and Mountain Lion the following applies.
The latest Java update from Apple issued this week removes the Java Preferences utility from the Utility folder and also removes Java Applet support from all web-browsers.
To reinstate Java Applet support you need to go to http://www.java.com/en/download/testjava.jsp
Then click on the 'Test the currently installed version of Java' link
Then you should see a message saying Missing Plugin, click on this
You will now get a dialog box, click on the More info button
This will take you to a download webpage for the latest Mac Java software
Click the button to download the Mac Java software
This will download a disk image file
Once it has finished downloading mount the image file by opening it
In the Finder window it opens run the Java installer by double clicking on it, and then install as normal
Quit the web-browser
Relaunch the web-browser (which forces it to load the new Java plugin)
Visit the http://www.java.com/en/download/testjava.jsp page again
Click on the 'Test the currently installed version of Java' link again
This time it should work and show you the version proving it is working -
Need to create filter in reports
hi ,
i need to create a filter on my report .
the filter for field contract end date.
for exammple - the object which i need to create the filters (HDREN_DT -
Remove records with value < System Date
) this is the logic so what i need to do i want to go for customer exit or what
need to create 2 CKF
Earliest Doc Header End Date Calculated KF Min (HDREN_DT)
Oldest Doc Header End Date Calcualted KF Max (HDREN_DT)
Can anyone give some idea how can i go with this one.
i choosen a formula variable with replacement path for the both the fields. whether this option is right or wrong.
please help me in this one
Regards ,
vijjuHi,
You have correctly identified.
To achieve the filter on HDREN_DT, you can declare an exit variable & write the code behind. But here I'd suggest implementing logic like Date greater than or equal to System date (instead of removing dates less than System date as it will improve the querying.
For the 2 CKFs, you can try the formula variable concept.
--Akash -
Return for Credit - Is there a need to Create Project Stock (MIGO) in this
Return for Credit - Is there a need to Create Project Stock (MIGO) in this process? System allows you to use ME21n (Returns PO) and then go straight to Goods Issue to Supplier (MIGO)
For the most part, though the code doesn't give much hint of this, layout managers can not be re-used across multiple containers, and I'm almost certain GridBayLayout must be used with this principle. Most layout managers implementing LayoutManager2 maintain an internal cache of the components they are responsible for laying out in order to map each component to a constraint, and will attempt to layout all components together without verifying that they have the appropriate parent, hence causing errors that are very difficult to find, in my experience causing the jvm to perform and illegal operation without so much as an exception being thrown.
-
Need to create at BEX Query to get last 30 days data.
Hi,
I need to create a bex query based on input date need to calculate last 30 days outstanding and 31-60 days outstanding 61-90 days outstanding 91-180 days outstanding and greater than 180 days outstanding. Please find the format of the report.Kindly help me.
Thanks & Regards,Based on those documents you can easily create.
1. First create variable (Mandatory) user input
2. Posting date is avaialble as char you will get
3. need to calcualte difference b/w those 2 dates you can refer below By using replacement path we can convert both dates into get difference.
http://www.sd-solutions.com/SAP-HCM-BW-Replacement-Path-Variables.html
4. now need to create Bucketing logic formula as per requirement above documents will give idea. -
Hi,
I need to create a flash chart that would take data dynamicaly
as in this link http://ajaxian.com/archives/hummingbird-real-time-view-of-your-web-traffic
Thanks
UdayWhat aspects of creating such a chart are you unable to manage?
-
Need to create 'Characteristics' using data from legacy system
Hi All,
I need to create the 'Characteristics' in SAP using the data from legacy application. The allowable values list defer between characteristics.
1) which upload tool & method I can use?
Thx,
Gopino problem, lsmw is fine to read from text files, you can define the path & format in step 'Specify Files'
Message was edited by:
Harris Veziris -
How to create generic text datasource to load text data?
met issue in generic master data load
Hi,
please see above link for detail infomation regarding the attribute data load. now the language and description column of the infoobject s_saled is empty. i need to create a generic text datasource to load data from R3 to BW. the table which i use to extract attribute data is VBAK, but i don't find any filed relate to language and description.
met issue in generic master data load
can anyone tell me how to load the text data?
thanks very much.
Eileenhi eileen,
go to transactio rso2 in your source system ie r/3.
there u have three three fields for transaction data
attributes.
text.
choose text and proceed as u did for trancsaction data load.
thank u,
reward if helpful. -
How to create a datasource for 0COSTCENTER to load data in csv file in BI
how to create a datasource for 0COSTCENTER to load data in csv file in BI 7.0 system
can you emil me the picture of the step about how to loaded individual values of the hierarchy using CSV file
thank you very much
my emil is <Removed>
allenStep 1: Load Required Master Data for 0CostCenter in to BI system
Step 2: Enable Characteristics to support Hierarchy for this 0Cost Center and specify the External Characteristic(In the Lowest Node or Last Node) while creation of this Characteristic InfoObject
Step 3: On Last Node of Hierarchy Structure in the InfoObject, Right Click and then Create Hierarchy MANUALLY by Inserting the Master Data Value as BI dosent Support the Hierarchy load directly you need to do it manually....
Step 4: Mapping
Create Text Node thats the first node (Root Node)
Insert Characteristic Nodes
Insert the Last Node of the Hierarchy
Then you need to create a Open hub Destination for extracting data into the .csv file...
Step1 : Create the Open Hub Destination give the Master Data table name and enter all the fields required....and create the transformations for this Open Hub connecting to the External file or excel file source...then give the location on to your local disk or path of the server in the first tab and request for the data...It should work alright let me know if you need anything else...
Thanks,
Sandhya -
Err in creating Activit under tab Ext. Process using BAPI_NETWORK_MAINTAIN
Hi Gurus,
I need to create activity under tab Ext. Processing for a network and i am planning to use BAPI "BAPI_NETWORK_MAINTAIN" for this purpose. I am able to create activity under "Int. Processing" using this BAPI but got error for "Ext. Processing" tab.
Below is the code i am doing for ext. processing tab.
****to move 3rd activity number for external processing
itemsg-internal_object_id = '000004000873'.
activity = '0030'.
CONCATENATE itemsg-internal_object_id activity INTO v_str.
MOVE itemsg-internal_object_id+0(12) TO itactivity-network.
MOVE '0030' TO itactivity-activity.
MOVE 'Activity2' TO itactivity-description.
MOVE 'PS02' TO itactivity-control_key.
MOVE '5001-KOS-0061' TO itactivity-project_definition.
MOVE '5001-KOS-0061-BA' TO itactivity-wbs_element.
MOVE 'AA' TO itactivity-factory_calendar.
move '2000' to itactivity-DURATION_NORMAL.
MOVE 'DAY' to itactivity-DURATION_NORMAL_UNIT.
MOVE '2000' to itactivity-WORK_ACTIVITY.
MOVE 'Z0004' to itactivity-MILESTONE.
MOVE 'M3' to itactivity-UN_WORK.
MOVE '099' to itactivity-MATL_GROUP.
MOVE 'PGL' to itactivity-PUR_GROUP.
APPEND itactivity.
MOVE '000003' TO itnetmethod-refnumber.
MOVE 'NETWORKACTIVITY' TO itnetmethod-objecttype.
MOVE 'CREATE' TO itnetmethod-method.
MOVE v_str TO itnetmethod-objectkey.
APPEND itnetmethod.
CLEAR itnetmethod.
Below is the error message i got when i load this code.
Enter a time unit, since you have entered either work or actual work
Termination: Too many errors (more than 10% of methods)
The order or network could not be saved
Please help me to resolve this issue.
Thanks in advance
AjayHi,
1)
I would suggest declaring a structure of type BAPE_VBAP & BAPE_VBEP...Then move the values instead of using offset..
Example
DATA: S_BAPE_VBAP TYPE BAPE_VBAP.
Populate the Extension structure WITH Order commited flag
LW_EXT_STRUCTURE-STRUCTURE = C_BAPE_VBAP.
S_BAPE_VBAP-VBELN = W_VBAP-VBELN.
S_BAPE_VBAP-POSNR = W_VBAP-POSNR.
S_BAPE_VBAP-ZZORDCOFL = W_VBAP-ZZ_ORDCOFL.
LW_EXT_STRUCTURE-VALUEPART1 = S_BAPE_VBAP.
This will make sure the BAPE_VBAP is extended with the Z fields..
2)
You are checking only for abort messages...You are not checking for error messages..
Instead of this..
READ TO CHECK THE ERROR AND ABORT MESSAGES DURING BAPI CALL
READ TABLE LT_RETURN_TAB INTO LW_RETURN_TAB
WITH KEY TYPE = C_MSGTYP_A
BINARY SEARCH.
Have this code..
LOOP AT LT_RETURN_TAB WHERE TYPE = 'E' OR TYPE = 'A'.
EXIT.
ENDLOOP.
IF SY-SUBRC = 0.
WRITE: / 'ERROR'.
ELSE.
WRITE: / 'SUCCESS'.
ENDIF.
This will make sure there are no error messages..Also check the return table for error messages in the debugging mode..
Thanks,
Naren -
A few days ago I tried to e-mail a friend, when I started A box came up and it required me to add a plugin..Java. I contacted my e-mail courier and microsoft, they told me that is was a plugin from Mozilla Firefox. Since then I must go through Java to send or open an e-mail... this is NOT to my satisfaction, it takes too long for all of this to open and if it is not cleared , I am dropping Mozilla and going elsewhere. Why has this occurred? Is this a result of the last update? If so can I delete the last update and continue on the other version?
== This happened ==
Every time Firefox opened
== last weekSorry, I have no idea what you mean by '''"The Java plugin has created a time unfriendly issue with my e-mail account, I can not open or send any e-mail without using this plugin,"'''.
If you think your problem is caused by the Java plugin, you should visit the Java support forum for assistance.
http://forum.java.sun.com/index.jspa
If you could explain what you mean by '''"time unfriendly''' issue with my e-mail account", maybe we'll be able to help you solve that issue.
It might be helpful for us if we knew exactly which web-mail provider you are using. It seems strange to me that viewing or sending web-mail would actually "need" Java for operation, its more likely that some other item on the web page needs Java to run some advertising or other garbage that isn't a necessary part of the web-mail functionality you want to use.
Maybe you are looking for
-
How to pass input field value from one region to another ?
What I am trying to do : I have one page with 1 region with one text field and an apply button and a report region. I want to be able to enter a value in the text field, click on apply and exploit this value in the source of the report region. Of cou
-
This is the second iphonev4s I have had to just turn off and can't get it to cone back on. I charge them to make sure it's not battery but they still won't come on. The first one did it within 30 days so they replaced it. My current one I have had le
-
How do I improve the quality of photos on the web?
I have noticed that a lot of websites I visit the image quality is shocking, its driving me mad and cant figure out how to improve it for good instead of pressing SHIFT + A or whatever it is... please help
-
My actual delivery address should be in China, not in HK under W275060457, so i need to update our correct delivery add as below No 21 Jing'er Road, Beiyuan, Yiwu, Zhejiang, China Post Code: 322000 Receiver: Li Houde Mob: 008615825771078
-
I have a macbook Air Refurbished. I owned it for 6 months and it is slow. I can not watch a movie from a website such as hulu without the video being slow ( and it is not my internet, my other computers work fine). I constantly have to wait and the c