How to get content of Class Source through a variable?
I have run the example program of Oracle OLAP Java API Reference 10g Release 1 (10.1). And now I get the Source in which is the query result.
I don't want to use cursor to show the result. Instead, I want to keep the result of the query in a variable for advanced programming.
What should I do? Thanks!
I have run the example program of Oracle OLAP Java API Reference 10g Release 1 (10.1). And now I get the Source in which is the query result.
I don't want to use cursor to show the result. Instead, I want to keep the result of the query in a variable for advanced programming.
What should I do? Thanks!
Similar Messages
-
How to get the object class field value in CDHDR table for vendor
hi
how to get the object class field value in CDHDR table for vendorTry KRED/KRED_N as object class in CDHDR for Vendor.
-
How to get SDKODBC Wrapper class for indesign cs3
Hi,
I have to implement the mysql database with my indesign plugin. I didn't have a SDKODBC Wrapper class. Can any one say how to get SDKODBC Wrapper class from adobe.
Regards,
saravanan.I doubt if change documents are generated for SE78 transaction.
For list of change documents defined, please check table: TCDOB.
Hope this helps.
Kind Regards
Eswar -
Qry:How to get different price for each price list (variable area) in order
1-How to get different price for each price list (variable area) in order for sale. for the opportunity to display and select multiple prices.
2- I add a location store from a table in line item and I want to see this area in order,.
I 'm created 2 field location(item line and order), 1 table location
I tried this for exemple : select $ [userfieldlocation.OITW]Thanks Suda for your answer,
the Formatted Search for prices is OK, but for the Item locations in warehouse this is not so simple,
I must have several (at least 2) locations for the item in the Warehouse and a track of this location and search possibilities.
read carefully and imagine how (Management warehouse locations)
I added a user table '@Location' who linked to a user field 'U_Location in Item master data --> lnventory data line and an ather user field 'U_Location' in sales order
I met the value of location in the table (list of locations for any warehouse), I select the location of each item while receiving merchandise in the user field of inventory data line (Item M data) and this value appears in the sales order 'U_Location' user field ( only the location value in the default warehouse for this Item)
or
create an user field 'location' in Good receipt PO to fill it while receiving merchandise that appears in the sales order to give possibility to find/select the location of the item at this order and in Item master data
I think we will use all these tables
@LOCATION
PDN1
OITM
OITW
OWHS
RDR1
Juste a another question : where you found this and What is: ' 38.1.0 '
Is it in document (System information):Item=38 Pane=1 ??
Thanks,
Ouchen -
How to get / view Java Sound source code
Hi All,
I'm curious to view the Java Sound source code, is that possible? Let me know what I have done so far,
1. In eclipse I have mapped the src.zip from the JDK directory, now I am able to view most of the source code.
2. When I try to view AudioSystem.getProviders method it returns value from JDK13Services.getProviders
But I dont have source code for JDK13Services class, indeed i don't have com.sun.media package source code, in the src.zip
Do anyone know how to get com.sun.media package source code?
Thanks in advance,
Karthikeyan RIt appears that the 3rd entry of this search
[http://www.google.com/search?q=JDK13Services]
give both the javadoc and source for JDK13Services, as follows:
[http://www.docjar.org/docs/api/com/sun/media/sound/JDK13Services.html]
The other search listings appear to contain useful information, also. -
How to get Data from SAP B1 through Journal Entries objects (Excel VBA)
Hi Genius
i had try to login SAB B1 thorugh MS Excel VBA code and it worked well. but i need some questions regards getting the data from after login. that means i want the Posting date, Transaction No, account code, debit and credit amount from Journal entries posted in a particular day through MS excel VBA into excel sheets 1 cell A1:E1
how i get it if any possible ways to do that
here my code to login
Public Sub login()
Sheets("Login").Select 'access the login tab
Worksheets("Login").Range("B1").Activate 'put focus on cell B1 (manager)
B1UserID = Trim(ActiveCell.Value2) 'set Businsss One user
ActiveCell.Offset(1, 0).Activate
B1Password = Trim(ActiveCell.Value2) 'set Business One password
ActiveCell.Offset(1, 0).Activate
sqluser = Trim(ActiveCell.Value2) 'set SQL user
ActiveCell.Offset(1, 0).Activate
sqlpass = Trim(ActiveCell.Value2) 'set SQL password
ActiveCell.Offset(1, 0).Activate
Db = Trim(ActiveCell.Value2) 'set Database name
ActiveCell.Offset(1, 0).Activate
Server = Trim(ActiveCell.Value2) 'set Server name
Set company1 = New SAPbobsCOM.Company 'initialate DI company object
company1.DbServerType = dst_MSSQL2005
company1.Server = Server
company1.DbUserName = sqluser
company1.DbPassword = sqlpass
company1.CompanyDB = Db
company1.UserName = B1UserID
company1.Password = B1Password
'connect to the database
lRetCode = company1.Connect
If lRetCode <> 0 Then
sErrMsg = company1.GetLastErrorDescription
MsgBox (sErrMsg)
Else
MsgBox ("Connected to: " & company1.CompanyName)
End If
End Sub
pls help me
advance thanks to solversGordons way is the easiest - just query the OJDT table for journal entry headers and JDT1 for journal entry lines if needed.
But if you want to work with the business objects:
'Journal entry
Dim oJE As SAPbobsCOM.JournalEntries
Set oJE = company1.GetBusinessObject(oJournalEntries)
oJE.GetByKey(1234)
Dim postingDate as String
postingDate = oJE.DueDate
'etc etc -
How to get instance of Class with its type parameters
Hi,
Have any of you folks been dealing with generics long enough to show me how this should be written? Or point me to the answer (I have searched as well as I could).
I boiled down my situation to the included sample code, which is long only because of the inserted comments. And while boiling I accidentally came across a surprise solution (a bug?), but would obviously prefer a smoother solution.
My Questions (referred to in the code comments):
#1. Is there a way to get my parameterized type (classarg) without resorting to using the bogus (proto) object?
#2. Can anyone understand why the "C" and "D" attempts are different? (All I did was use an intermediate variable????) Is this a bug?
Thanks so much for any input.
/Mel
class GenericWeird
/* a generic class -- just an example */
static class CompoundObject<T1,T2>
CompoundObject(T1 primaryObject, T2 secondaryObject)
/* another generic class -- its main point is that its constr requires its type class */
static class TypedThing<ValueType>
TypedThing(Class<ValueType> valuetypeclass)
// here I just try to create a couple of TypedThings
public static void main(String[] args)
// take it for granted that I need to instantiate these two objects:
TypedThing<String> stringTypedThing = null;
TypedThing<CompoundObject<String,String>> stringstringTypedThing = null;
// To instantiate stringTypedThing is easy...
stringTypedThing = new TypedThing<String>(String.class);
// ...but to instantiate stringstringTypedThing is more difficult to call the constructor
Class<CompoundObject<String,String>> classarg = null;
// classarg has got to be declared to this type
// otherwise there will rightfully be compiler error about the constructor call below
// This method body illustrates my questions
classarg = exploringHowToGetTheArg();
// the constructor call
stringstringTypedThing = new TypedThing<CompoundObject<String,String>>(classarg);
} // end main method
// try compiling this method with only one of A,B,C,D sections uncommented at a time
private static Class<CompoundObject<String,String>> exploringHowToGetTheArg()
Class<CompoundObject<String,String>> classarg = null;
/* Exhibit A: */
//// classarg = CompoundObject.class;
results in compiler error "incompatible types"
found : java.lang.Class<GenericWeird.CompoundObject>
required: java.lang.Class<GenericWeird.CompoundObject<java.lang.String,java.lang.String>>
classarg = CompoundObject.class;
^
I understand this. But how to get the type information?
/* It's obnoxious, but it looks like I will have to construct a temporary
prototype instance of type
CompoundObject<String,String>
in order to get an instance of
Class<CompoundObject<String,String>>
(see my Question #1) */
CompoundObject<String,String> proto = new CompoundObject<String,String>("foo", "fum");
/* Exhibit B: */
//// classarg = proto.getClass();
results in compiler error: "incompatible types"
found : java.lang.Class<capture of ? extends GenericWeird.CompoundObject>
required: java.lang.Class<GenericWeird.CompoundObject<java.lang.String,java.lang.String>>
classarg = proto.getClass();
^
/* Exhibit C: */
//// classarg = proto.getClass().asSubclass(proto.getClass());
results in compiler error: "incompatible types"
found : java.lang.Class<capture of ? extends capture of ? extends GenericWeird.CompoundObject>
required: java.lang.Class<GenericWeird.CompoundObject<java.lang.String,java.lang.String>>
classarg = proto.getClass().asSubclass(proto.getClass());
^
/* Exhibit D: (notice the similarity to C!): */
//// Class tmp1 = proto.getClass();
//// classarg = tmp1.asSubclass(tmp1);
/* It compiles (see my Question #2) */
return classarg;
} // end method exploringHowToGetTheArg()
} // end class GenericWeirdThanks so much, Bruce. (Oh my goodness, how would I have ever come up with that on my own?)
So in summary
This doesn't compile:
classarg = (Class<CompoundObject<String,String>>)CompoundObject.class;but these do compile:
classarg = (Class<CompoundObject<String,String>>)(Class)CompoundObject.class;or
Class coclass = (Class)CompoundObject.class;
classarg = (Class<CompoundObject<String,String>>)coclass;And this doesn't compile:
classarg = proto.getClass().asSubclass(proto.getClass());but this does:
Class tmp1 = proto.getClass();
classarg = tmp1.asSubclass(tmp1); -
How to get the root class in call heirarchy
Hi,
Is anybody have some idea regarding the getting name of a class whose, main method was called at the time of begining. In other words if we say, how can we get the invoker class of a java program with multiple level of inheritence.
RegardsDocumentBuilderFactory factory=DocumentBuilderFactory.newInstance();
DocumentBuilder db=factory.newDocumentBuilder();
Document doc=db.parse(new File(ur xml file"));
Element root=doc.getDocumentElement();
System.out.println("root "+root.getNodeName()); -
Help:how to get content of the word(.doc) attachment in a email
help to all:
I get the email attachment(.doc or .xls) and it's
content,using javaMail Api .but output it on the
computer screen,I see only some sign unreadable.
Pls how to get the content.
thanks for you.
bi tanSave the output to a file and open it in Word/Excel thats what documents attached to mail are made for...
If you really need the contents send them in the body or in a plain text attachment. -
How to get the highlighted text range through Framemaker's API calls?
Hi all,
I'm new to the Framemaker API (7.x) and developing a plugin for Framemaker 7.x. I wanted to get the highlighted objects from the active mif document. Tried this code:
F_TextRangeT tr;
/* Get the current text selection. */
tr = F_ApiGetTextRange(FV_SessionId, docId, FP_TextSelection);
Here is how I tested it:
1. some text in the mif doc was highlighted.
2. I clicked the menu item "my_plugin", a framemaker dialog popped up, some test configuration was sent through the dialog.
3. The test configuration was read by my program correctly.
However, the debugger showed that the tr is null! When I changed the first step of the test into:
1. placed the mouse cursor at somewhere in the mif doc.
The plugin worked somehow, the line where the mouse cursor was placed got selected, although I did not highlight anything.
My question is: how to get a highlighted range though the Framemaker API call? I've been flipping through the FDK 7.0 Programmer's Reference but haven't found a solution yet. Any hint will be highly appreciated.
Best Regards,
Ellen N. ZhaoHere is some information from the FDK Programmer's guide page 115:
IMPORTANT: A valid text range can span multiple paragraphs, subcolumns, or text frames.
It cant span multiple flows, footnotes, table cells, or text lines.
It is possible for a document to have no text selection or insertion point at all. This can occur in
the following circumstances:
● One or more graphic objects in the document are selected
● One or more entire table cells in the document are selected
● There is no selection of any type in the document
So, I did select one or more entire table cells in the document in my first test. It's logical that the result was not like expected.
But selecting one or more entire table cells is a crucial requirement for my plugin, is there anyway to get things straight?
Simply put, I want to enable users to select one or more table cells in the document, and I want to get the object handles of the first cell and the last cell through Framemaker API calls. How?
Many thanks in advance!
Best Regards,
Ellen N. Zhao -
How to get crawler destination folder path through api
with following code i am getting crawler folder source path
com.plumtree.openfoundation.util.IXPPropertyBag propertyBag = oPTCrawler.GetStartLocation();
String oldFolder = propertyBag.ReadAsString("PTC_UNIQUE");
how to get the destination folder path ?
any help appreciatedi would like to get the values from PT_TAX_DESTFOLDERS
<A N="PT_TAX_DESTFOLDERS"><I N="DIMS">1</I><I N="MAX0">0</I><I N="0">1324</I></A>
1324 being the folder id
when trying
com.plumtree.openfoundation.util.IXPPropertyBag propertyBag = oPTCrawler.GetStartLocation();
Object[][] propertyBags = (Object[][])propertyBag.ReadAsObject1DArray("PT_TAX_DESTFOLDERS");
i am getting null -
How to get content of custom fields that were created via the EEWB for CIC?
Hi
Can anyone tell me how to get the content of custom fields that were created via the EEWB for CIC? This is required at a time when the data has not been written to the database.
I would like to know how to read this data in the CRM_APPOINTMENT_MERGE method of CRM_APPOINTMENT_BADI.
ThanksHi Michael,
I have a requirement to replicate custom setype data created for CRM sales order to R/3 sales order.These fields have been created at item level.
Do you know the set of steps to achieve the same.
Any help would be appreciated.
Thanks,
Chamu -
We use RAD 7.5 and WAS 6 to run ICEFaces 1.8.
I added Facelets by following the instructions in ICEFaces "TimeZone Getting Started."
When I installed Facelets, I found I was missing el-ri-1.0.jar. So I googled the jar, found one from lord-knows-where, and stuck it in. It did the trick.
Facelets works great, but I don't have content assist for ui.
My jsp:root is:
<jsp:root version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ice="http://www.icesoft.com/icefaces/component"
xmlns:ui="http://java.sun.com/jsf/facelets">
How do I get content assist for ui?
Thanks,
EliHi Soma,
that will not work. The measure is related to Activity id. The measure value per row is not value for LastActivityid.
I want to show the measure value for last activity id and not this activity id. So there is an indirect relationshipid. Ideally the path would be :
Activity id --> Figure out the last activity id for this activity id --> Get the measure value for last activity id..
- Girija
Please mark responses as answered if it helped you.. This helps others... - Girija Shankar Beuria -
How to get list of classes in classpath?
Hi.
I need to get list of classes in CLASSPATH which implements the some interface.
How i can get list of classnames from CLASSPATH ?
TIAWhat you want to do is not that trivial.Its not trivial, but its not really all that hard either.
I this thing quite a bit in JUnit tests (e.g, all SomeInterface implementations are expected to be serializable - lets hunt them out and check we can actually serialize them. Turned out to do that I needed a generic yet fairly intellegent object creator / populator: That was significantly less trivial than the other task). -
How to get information from ODBC sources to Forms Builder environment
Hi,
Could anyone help me, to get some examples or more information, that how can I get information from ODBC sources to Forms Builder environment. I have a need to read data for example to LOV.If you are on Forms 6i you install the Oracle Client Adaptor from the Forms CD. You then have a way of connecting to ODBC datasources.
To connect to ODBC at the same time as you are connected to Oracle you can use the EXEC_SQL package to create a second connection via odbc and issue select statements against that datasource.
Maybe you are looking for
-
o/s Windows XP Home vsn of Firefox 6.0.2 Step 1) open firefox Step 2) copy link from address bar into clipboard Step 3) compose message in Yahoo Step 4) paste contents of clipboard into body of the e-mail result: the pasted value does NOT become a hy
-
Problems using TimeMachine from two Macs to IOMega Home Media Drive
Hi, This has been driving me crazy for a couple of weeks now, so I'm hoping that someone here can point me in the right direction. I have a PPC G5 and my wife uses an iMac. I recently bought an IOMega Home Media Drive and wanted to use it with TimeMa
-
Windows 8.1 cannot "see" NAS under Network in MyPC
So we purchased and set up a NAS recently. It works perfectly and is UNIX based and has SAMBA enabled. So here's the kicker: * Windows 7, No issues - NAS pops up under Network automatically. * Windows 8.1, It never pops up under Network Windows 8.
-
Changing background color in Finder Cover Flow view possible ?
Hi, is there any possibility to change the color of the background in the Cover Flow view of Finder ?? Thanks for some answers
-
The Xilinx 14.7 tools are not installed
Hi all Not new to LV, but new to LV plus FPGA. Trying to compile a design I inherited from another worksite. The Compile Worker complains that "The Xilinx 14.7 tools are not installed." But they are installed - I even did a quick build of another des