How to use objects in Pro*C++
Hi,
I have created a table as follows:
===========================================
CREATE TYPE pds_rec_type1_obj AS OBJECT (
service_mode char,
total_fuel_dollars NUMBER(7,2),
total_fuel_litres NUMBER(7)
CREATE TABLE pos_product_discount (
outlet_id NUMBER(5) NOT NULL,
terminal_id NUMBER(2) NOT NULL,
rt1 pds_rec_type1_obj,
===========================================
After insert one row in to the pos_product_discount table,
I can update it by using
===========================================
update pos_product_discount
set rt1 = pds_rec_type1_obj('2', 1, 1)
where outlet_id = 4736 and TERMINAL_ID = 1
===========================================
However, when I used the following SQL in Pro*C++
===========================================
EXEC SQL
UPDATE pos_product_discount
SET rt1 = pds_rec_type1_obj(:rt1ServiceMode,
:rt1TotFuelDollarsSold,
:rt1TotFuelLitresSold)
WHERE outlet_id = :pdsOutletId
AND terminal_id = :pdsTerminalId;
===========================================
I got the following error:
===========================================
ERROR: UPDATE pos_product_discount
ORA-00904: invalid column name
ERROR: Oracle SQL Error...
=============================================
Anyone can help? Thank you in advance.
Zhenjie Chen
Hi,
Please look at chapter-17 (Objects) of "Pro*C/C++ Precompiler Programmer's Guide".
You need to use "EXEC SQL OBJECT SET ... " before "EXEC SQL OBJECT UPDATE ... " statement.
- Shubho.
Similar Messages
-
How to use Final Cut Pro with multiple user accounts?
Hi,
I want to use Final Cut Pro on a clean user account. How do I set it up? How can I access my old FCP library and still work on it from multiple users?
Also, I want my DropBox account to back-up my media. Any tips?I use external drives as backup. But I don't trust them. And in case of fire or what ever...It is of no use...
But I agree on your comment about DropBox. It would have been the perfect solution though.
What else is there?
I have a 2TB HD but these projects are huge and still growing - so I have to move my projects to several external drives. So maybe I should just work directly from external drives and skip the partition of the computers main drive? I am thinking of the disadvantage of reducing the total storage of the disk. -
How do you use Final Cut Pro which I might start using on my Mac Mini
Step 1: Read through the manual/help files. Pay particular attention to system requirements and set up.
Step 2: Install the application.
Step 3: Do some tutorials.
Step 4: Refer to the manual/help files when you run into questions while working on the tutorials.
Step 5: Capture or import footage into your first real project.
Step 6: Use what you learned from the manual/help files and tutorials to edit your video.
-DH -
How to use Object Class:orclDbServer in OID
Not sure if i have posted in the correct forum, I am quite new to OID
I am planning to use orclDbServer Object Class, but not sure how to use, i have searched in Google, and Oracle Documentation, there are so little information about this, there are only:
Object Class: orclDbServer
Description: Defines the attributes for database service entries
Attributes: orclNetDescName, orclVersion
Below is the ldif file i created for add one entry with object class orclDBServer:
dn: cn=orclDBServer_test, cn=OracleContext, dc=ldapcdc, dc=lcom
changetype: add
objectclass: top
objectclass: orclDBServer
cn: orclDBServer_test
orclNetDescName: (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=10.182.114.121)(PORT = 1521))(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = oh112)))
after i use below command to add this entry:
ldapadd -h localhost -p 389 -D "cn=orcladmin" -w welcome1 -f test_add.ldif
then use ldapsearch to search:
ldapsearch -h localhost -p 389 -b "dc=lcom" "objectclass=orclDBServer"
the result is like below:
cn=orclDBServer_test, cn=OracleContext, dc=ldapcdc, dc=lcom
cn=orclDBServer_test
orclnetdescname=(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=10.182.114.121)(PORT = 1521))(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = oh112)))
objectclass=top
objectclass=orclDBServer
objectclass=orclService
It seems it added a line for me:
objectclass=orclService
Is there anything wrong with my ldif file when i want to use orclDbServer?
Edited by: ening on Jan 5, 2010 9:31 PMHi,
if you are having main controller and sub-controller then you may need to use below coding to use application class reference.
*Data declaration
DATA: obj_cntrl TYPE REF TO cl_bsp_controller2,
obj_sub_cntrl TYPE REF TO z_cl_sub_cntl,
application TYPE REF TO z_cl_application.
*Get the controller
CALL METHOD obj_main_cntrl->get_controller "obj_main_cntrl is the object of main controller
EXPORTING
controller_id = 'SUB' "Controller ID
RECEIVING
controller_instance = obj_cntrl .
obj_sub_cntrl ?= obj_cntrl .
application ?= obj_sub_cntrl ->application.
or simply use below code in your controller method.
application ?= me->application.
Thnaks,
Chandra -
How to use objects as a message type in WSDL?
How can I use object as a type for the message in WSDL?
For example, I want to achieve something like this:
<message name="DBConnection">
<part name="conn" type="???"/>
</message>
In the above example, for any operation getConnection(), the return type would be an object of the type Connection.
Any suggestions ?
Thanks,
DhavalHi,
Listed below is the step by step intructions to configure the Nokia device as a modem to a mac.
Steps:
Connecting your Mac to the internet is convenient and easy with your a compatible Nokia S60 device. You'll need a Nokia S60 device that supports a 2G or 3G data connection (such as GPRS or HSDPA), a compatible Mac (with the latest OS X), a USB cable for your Nokia device or a Bluetooth-enabled Mac, and a network subscription with your mobile service provider.
To set up your device you'll need to know your operator's Access Point Name (APN) and have the packet data service enabled. For help with this please contact your operator.
In Settings select and open Connection >Select and open Packet data > Select and open Access point >Type in your operator's Access Point Name
Exit Settings. Your device is now ready to be used as a modem for your Mac!
Bluetooth Connection: Pairing between Mac and Device using bluetooth, follow the instruction from here: http://europe.nokia.com/get-support-and-software/download-software/device-as-a-modem/connect-to-your...
Note: Preferred mode is USB as it much faster than Bluetooth.
Connect the device and then go to System preferences- >Network- >Select Device (Nokia XXX)
Click on Advanced Tab > Modem tab
- Vendor : Nokia
-Model:GPRS (GSM/3G)
-Telephone Number: *99***1# (contact your operator to get this settings)
-APN: airtelgprs.com (contact your operator to get this settings)
CID: 1
Once connected it will be highlighted in green.
Hopefully this helps.
Cheers
Sandy
Message Edited by sandy2410 on 30-Mar-2009 04:52 AM
Helpful information, then dont forget to hit the kudos star :-) Or say it accepted solution and thanks -
Hi,
We are evaluating the Adobe Captivate software and we are in
the process of identifying on how to use the Object model to record
the screen Programmatically. Do you have any idea on how to do this
using the captivate object model? We have a custom application and
we want to activate the recording by clicking a button in our page.
Kindly help. Thanks.
EricHi Captiv8r / Rick,
Thanks for your answer,
Actually, we have a web application that utilize the WME
(Windows Media Encoder) to record a video from the client side by
just clicking a button on our web page. That button has the
application logic to start the recording of his screen via calling
some "methods" on the WME dll files via object model (API). Now, we
are looking for some possible solutions on how we can implement the
same thing using the Adobe Captivate software or how we can utilize
adobe captivate to be able to integrate this software within our
web application.
Do you have any suggestions on how we can leverage the
benefits of adobe captivate in a custom web application? Thanks.
Eric -
How to use Final Cut pro with external hard drive?
I have too little space on my computer so I have to use final cut pro x with an external hard drive, but whenever I have the hard drive plugged in and Final cut going, my computer goes very slow. I just upgraded to 16gb ram... but can't seem to run FCP x while an external hard drive is plugged in. FCP just freezes up and I have to force quit.
craigbuckley wrote:
all the files and events in final cut are still on my internal, so my internal drive is still full.... Do I have to go and delete everything off my internal?
In addition to the excellent advice to keep your media on an external HDD, you need to make sure that your system (boot) drive has a decent amount of free space if you want to have a satisfactory editing experience. Many people recommend not going below 20% free space. That's especially so for the boot drive, but as you fill up the external, its performance will also slow. Ideally, we would have separate media and backup drives,
You don't need to "delete everything". Rather, you first figure out what needs to be moved. You copy those files to the other drive and then verify that all the files you copied are in two locations. At that point you can delete those files from your boot drive.
Good luck.
Russ -
I have a 2011 15" 2.0 macbook pro. I'v been using apple computer for just about 10 years now and I like putting those extra things on my computer like (dock icon, growl). I'm always looking for something to help my macbook pro perform better. Am I missing something?
The best way to help your Mac perform better is not to load it with unnecessary baggage such as commercial "anti-virus" software and interface "enhancement" hacks. Be very conservative about installing any third-party software that requires an installer or prompts for an admin password. Before installing any such software, make sure you know how to uninstall it.
Routine maintenance, beyond what the system does automatically, is neither necessary nor helpful. Dont' fix things that aren't broken. -
How to use Object types with inheritance in design editor
Does anyone know how to implement Oracle object sub types in Design editor.
Is there a way of using the Database design transformer to convert entities to Object types rather than tables?
Thanks in anticipation
DavidWhat database and connection type are you using? Are you connecting the report directly to the database, or trying to assign the datasource to object data?
It sounds like you might be trying to use a linked list, collection or other C# construct to pass your data in. This currently isn't supported by the Crystal Reports SDK. You can use a DataSet or a DataTable, and possibly also an IDataReader depending on which version of Crystal Reports you're referencing in your project. Of course you can also connect directly to the database, even if the database isn't on the same machine as the application.
The way to show master records with detail information is through the use of subreports and linked subreport parameters. Linked subreports take their parameter value from a record in the main report, so that only the data appropriate to that master record is displayed. The guys over in the [report design|SAP Crystal Reports; forum can help you out with this if you have questions on the specifics. -
How to use my QT Pro info when re-installing QT
I bought QT pro in July 05 - in hopes to fix a problem I was having with QT 7. It didn't fix it and I had to uninstall QT and reinstall. I reinstalled 6 - and left it at that afraid that QT7 would give me the same problems. Now I want to update to Pro 7 - does anyone know how I can now use my access key again. The only way into Pro looks like re purchasing.
Hi!
Since installing Tiger, and having the unpleasant surprise so many others have had, in that my QT 6 Pro features were gone, I've seen much reference to this trick of using the old QT 6 Player under QT 7 in Tiger. But it doesn't work for me! I wonder if I'm doing something wrong. I still only get the short menus and no Pro options when using the old player.
I even rebooted into 10.3.9, entered my registration code for 6, and received the extra features in the QT 6 player (after restarting it). I copied the player into my new, Tiger "applications" folder under a slightly altered name, then rebooted with much anticipation.
Back in Tiger... it was the same old story! My pro player magically was reduced to a basic player.
In a word... aRrrgggGGh!
You know, I happily used the ancient "MoviePlayer" for years for the same reason - it maintained the features that were "Pro Only" in the more current versions. Why has this trick stopped working?
Hope someone can help... thanks!
Adam
iMac (desklamp style) Mac OS X (10.3.9) 768 MB RAM, 1 Ghz G4 -
How to use acrobat Xl Pro after downloaded to use the tool program
I have downloaded acrobat Xl Pro. How do I open the program to use the tool to complete the tax form electronically on line? My e-mail<removed by admin>. I would appreciate to talk to customer service representative my tel# <removed by admin>.
Hi Dennis,
I removed your personal information as these are public forums, and is not Adobe customer service.
If you would like to contact Adobe customer service please call: 800-833-6687
They would be happy to assist you with anything that has not been answered so far on these forums.
I hope this helps!
Kindest regards, Stacy -
How to use Acrobat XI pro on multiple computers
I recently installed Acrobat XI Pro on my laptop and what to use on my office desktop to edit PDF documents.
For most licenses, you can use on up to two computers for your personal use, not at the same time. Install in the same way.
-
How to use object collection with linked objects
<p>Hi,</p><p>I'm using VS2005 Crystal reports in a c# client app (server has database, but client does not have!). So the use of the objects transfered to the client seemed to me a good solution for showing reports on the client. The objects mostly link to several other objects (properties of type <type> or properties of type [] <type>) and the links are correctly configured in database assistant.</p><p>But: Whenever using one of the linked fields, all of the main fields will never show up in the report.</p><p>So, what is the correct way of showing a master / detail report using linked object collections???</p><p> (A small test sample app can be provided upon request)</p><p> TIA</p><p>BP</p>
What database and connection type are you using? Are you connecting the report directly to the database, or trying to assign the datasource to object data?
It sounds like you might be trying to use a linked list, collection or other C# construct to pass your data in. This currently isn't supported by the Crystal Reports SDK. You can use a DataSet or a DataTable, and possibly also an IDataReader depending on which version of Crystal Reports you're referencing in your project. Of course you can also connect directly to the database, even if the database isn't on the same machine as the application.
The way to show master records with detail information is through the use of subreports and linked subreport parameters. Linked subreports take their parameter value from a record in the main report, so that only the data appropriate to that master record is displayed. The guys over in the [report design|SAP Crystal Reports; forum can help you out with this if you have questions on the specifics. -
How to use object of class in Label?
I have defined a class "time" which runs time for 30 minutes.Now, I want to use this time in Label so that it keep running for 30mins but I am not able to pass the object in Label.
Of course being aware that this may cause other
difficulties if you are running a multi-threadedapp.
SwingUtilities.invokeLater() may be required inthat
case.I've never really been clear on which of these update
routines should, or should not be on the dispatcher
thread. A quick look at the source of JLabel.setText,
for example, shows that it calls repaint on itself to
change the presentation of text, and repaint
shouldn't require to be on the dispatcher thread,
since it simply adds the paint request to the TODO
list.That makes sense, but experience doesn't bear it out... I've had deadlocks where the only thing being updated was the text of a label. Perhaps there is something else going on. -
How to use objects from other SWCs in my BPM Integration Scenario
Dear all,
I am experiencing some difficulties with the following. I have created a BPM Integration Scenario in a SWC. It contains a tranformation step in which a message from that SWC is split and mapped to two IDOCs. These IDOCs are imported in anothern SWC which I use for common objects. I have created Abstract Message Interfaces based on these IDOCs in this "COMMON" SWC, but the probIem is that I cannot use them in my scenario in the other SWC. Even though I have a usage dependency (Installation Time) created to the "COMMON" SWC.
Any suggestions would be much appreciated!!
Thanks in advance.
Will happily provide points for good answers.
AukeThus, I would have to copy/import all objects to the same SWC?
Or create a separate SWC for BPM Integration scenarios?
I have tried to create the Abstract Message Interface in the SWC and reference it to the IDOC structure in the "COMMON" SWC. This results in a reference to an invalid object during activation. Even though the defined usage dependency.
What's the standard solution?
Cheers,
Auke
Message was edited by:
A. Schotanus
Maybe you are looking for
-
I record multiple tracks of real instruments and vocals wth Garage Band. I want to share the file with a collaborator so he can add another instrument or two. I have not found a way to do this without the process mixing down the tracks. I don't want
-
Is there any way of exporting a clip (example 1 hour) into 4 seperate 15 min clips at the same time? Or does anyone have any ideas along the same lines to save time? Add my skype baconhousevidz if you can help or are unsure of what im asking thanks e
-
At the moment the report filename is generated and incorporates the template name and the request ID. I am wondering if it is possible to have any control over the filename. This is more for the flat file output from etext templates where we might wa
-
Database link not working on client
All, Platform : Linux I have created a db link called "TEST_TO_MART " on 11.2.0.1 database which is pointing to another 11.2.0.1 database . Both are resides on same server. I'm getting following error when I'm trying to test. SQL> sho user USER is "T
-
Hi, I need to get the tag name of bold applied in InDesign document. When finding bold contents in InDesign document using Find Options, its select bold contents with some hidden text (tags) as shown in the below image. If i use "select in structur