Hw to use OLE and HOST
Hi ,
According to my prj requirement.I have to devlop a form in Oracle 10g.A textbox and button is there .After entering a value in text box and on pressing the button.It should execute a perl script and after perlscript is executed it creates a textiles and stores it in its server.After that I want to diplay that text file in the form.In form 6i it was possible to do it through OLE.
So hw can we achieve there 2 jobs.
1.To iteract with perl script and execute it.
2.Finally display the text file in Form.
Thanks in advance.
to execute an .exe file or a script we use HOST in forms6i and CLIENT_HOST in forms 9i/10g.
If you are familiar with OLE2 in forms 6i then just replace it with CLIENT_OLE2 for forms10g.(but first attach wbeutil.pp to your forms10g)
chek this demo of forms9i webutil:
http://www.oracle.com/technology/sample_code/products/forms/demo/9i/javabeans_pjc_samples/webutil/viewlet/WebUtil_Simple_viewlet_swf.html
Similar Messages
-
Call Excel SpreadSheet using OLE and set format = text
Hi All,
I am working on an object, where I need to call Excel SpreadSheet using OLE.
In SpreadSheet, I need to show data as text (Without Excel Internal Modifications).
i.e
if i pass 03/2007 as month in excel, it should show 01/2007 not jan-07.
I am trying to use the code as below.
call method of cell 'SET_FORMAT' = text.
set property of text 'CATEGORY' = 4.
this code is not giving me desired output.
Is there any other method i can call? or property I can set?
can somebody pls send me a document with list of all formattiong methods and properties. I will really appreciate the help.
Regards,
HardikHi, you should concatenate the character ( ' ) into your text, example
CONCATENATE '''' text INTO text.
Then print the variable Text into excel and you will see the format as Text,
Thanks and regards.
David Carballido
PD: Sry for my bad English -
Hello,
Where can I find good materials(Tutorials) on how to use OLE and DDE in Forms6i?
Adios..The best location to find anything related to forms & reports id the help itself.
U wont find many books in market on forms & reports,the reason is ,the help is so good(thanks to Oracle Corp) that we dont need any external material.
-Nilesh -
How to open word document directly using ole2 and ole containers
Hello
i am using ole conatiners....in forms 6i. i want o open word document directly when i click a button....
i have tried host....ole but word opens .....i want the document to open at once.....
what should i use /set
plz tell by host command and ole2 as well
its urgent.....
thanksTry this code, Hope this will work.
declare
item_name varchar2(80) := 'letter';
item_id item;
verb_index_str VARCHAR(20);
verb_index PLS_INTEGER;
verb_cnt_str VARCHAR(20);
verb_cnt NUMBER;
verb_name VARCHAR(20);
loop_cntr NUMBER;
begin
item_id := Find_Item(item_name);
IF Id_Null(item_id)THEN
message('No such item: '||item_name);
ELSE
verb_cnt_str := Forms_OLE.Get_Verb_Count(item_id);
verb_cnt := TO_NUMBER(verb_cnt_str);
FOR loop_cntr in 1..verb_cnt LOOP
verb_name := Forms_OLE.Get_Verb_Name(item_id,loop_cntr);
-- message(verb_name);
-- message(loop_cntr|| ' '||verb_name);
IF verb_name = 'Open' or Verb_name = '?E?'THEN
EXEC_VERB(item_id,verb_name);
END IF;
end loop;
end if;
EXCEPTION
WHEN OTHERS THEN
MESSAGE('Error: '||TO_CHAR(SQLCODE)||' '||SQLERRM);
RAISE FORM_TRIGGER_FAILURE;
end; -
I really hoped you would fix the security policy issue in release 4. I have to close Firefox and use IE9 to maintain a website I built with Network Solutions and I'd much rather not have to endure the slowness of IE. I also have websites with Wix and WEBS and have no problems at all using cut and paste with them.
Did you have it connected to the library mac when it froze? If so, why? I would be hesitant to hook my ipod to a unprotected public computer since it may be infested with viruses or have unknown hardware problems.
In any case, if you can get it to an Apple store they can probably help you with it, it sounds like it needs replacing.
A certain percentage of any complex product will turn out to be defective and will have to be returned, it sounds like you were unlucky enough to get one. Looking over the forums here it may seem like the ipod is plagued with bugs, but don't forget that there are millions who never have a problem and so have no reason to pipe up here. Personally I think Apple deserves a thumbs up for continuing to host these forums in spite of how they may cast a negative light on thier products to the casual observer.
5G 60GB Black iPod Windows XP Pro -
Can hand generated code be imported into Dreamweaver in order to use the free hosting option?
BC provides you templates to use to modify and sell to a client. Otherwise, they wouldn’t be there. For example, the templates are offered when you go to create a new site. BC asks if you want to use a template, import a site, etc… so your analogy doesn’t apply in this situation.
TRACI STEIN -
OLE objects and OO methods - Error using OLE automation
Hi,
I'm developing an class to read/write excel sheets and i'm getting an error on the OLE method that is:
on this instruction
call method of l_obj_excel 'WORKBOOKS' = l_workb_col.
i got a dump that give me the following error UC_OBJECTS_NOT_CONVERTIBLE
The strange is that i've got the same code running on reports and it works fine only when passing it to a oo method i get that dump.
Thzs in advanced to all
Best regards
Jaimehi check this..
Report ZMULTICOLOR_TEST no standard page heading.
this report demonstrates how to send some ABAP data to an
EXCEL sheet using OLE automation.
include ole2incl.
handles for OLE objects
data: h_excel type ole2_object, " Excel object
h_mapl type ole2_object, " list of workbooks
h_map type ole2_object, " workbook
h_zl type ole2_object, " cell
h_f type ole2_object, " font
h_c type ole2_object. " color
DATA: FILENAME LIKE RLGRAP-FILENAME.
tables: spfli.
data h type i.
table of flights
data: it_spfli like spfli occurs 10 with header line.
*& Event START-OF-SELECTION
start-of-selection.
read flights
select * from spfli into table it_spfli.
display header
uline (61).
write: / sy-vline no-gap,
(3) 'Flg'(001) color col_heading no-gap, sy-vline no-gap,
(4) 'Nr'(002) color col_heading no-gap, sy-vline no-gap,
(20) 'Von'(003) color col_heading no-gap, sy-vline no-gap,
(20) 'Nach'(004) color col_heading no-gap, sy-vline no-gap,
(8) 'Zeit'(005) color col_heading no-gap, sy-vline no-gap.
uline /(61).
display flights
loop at it_spfli.
write: / sy-vline no-gap,
it_spfli-carrid color col_key no-gap, sy-vline no-gap,
it_spfli-connid color col_normal no-gap, sy-vline no-gap,
it_spfli-cityfrom color col_normal no-gap, sy-vline no-gap,
it_spfli-cityto color col_normal no-gap, sy-vline no-gap,
it_spfli-deptime color col_normal no-gap, sy-vline no-gap.
endloop.
uline /(61).
tell user what is going on
call function 'SAPGUI_PROGRESS_INDICATOR'
exporting
PERCENTAGE = 0
text = text-007
exceptions
others = 1.
start Excel
create object h_excel 'EXCEL.APPLICATION'.
PERFORM ERR_HDL.
set property of h_excel 'Visible' = 1.
CALL METHOD OF H_EXCEL 'FILESAVEAS' EXPORTING #1 = 'c:\kis_excel.xls' .
PERFORM ERR_HDL.
tell user what is going on
call function 'SAPGUI_PROGRESS_INDICATOR'
exporting
PERCENTAGE = 0
text = text-008
exceptions
others = 1.
get list of workbooks, initially empty
call method of h_excel 'Workbooks' = h_mapl.
perform err_hdl.
add a new workbook
call method of h_mapl 'Add' = h_map.
perform err_hdl.
tell user what is going on
call function 'SAPGUI_PROGRESS_INDICATOR'
exporting
PERCENTAGE = 0
text = text-009
exceptions
others = 1.
output column headings to active Excel sheet
perform fill_cell using 1 1 1 200 'Carrier id'(001).
perform fill_cell using 1 2 1 200 'Connection id'(002).
perform fill_cell using 1 3 1 200 'City from'(003).
perform fill_cell using 1 4 1 200 'City to'(004).
perform fill_cell using 1 5 1 200 'Dep. Time'(005).
loop at it_spfli.
copy flights to active EXCEL sheet
h = sy-tabix + 1.
if it_spfli-carrid cs 'AA'.
perform fill_cell using h 1 0 000255000 it_spfli-carrid.
elseif it_spfli-carrid cs 'AZ'.
perform fill_cell using h 1 0 168000000 it_spfli-carrid.
elseif it_spfli-carrid cs 'JL'.
perform fill_cell using h 1 0 168168000 it_spfli-carrid.
elseif it_spfli-carrid cs 'LH'.
perform fill_cell using h 1 0 111111111 it_spfli-carrid.
elseif it_spfli-carrid cs 'SQ'.
perform fill_cell using h 1 0 100100100 it_spfli-carrid.
else.
perform fill_cell using h 1 0 000145000 it_spfli-carrid.
endif.
if it_spfli-connid lt 400.
perform fill_cell using h 2 0 255000255 it_spfli-connid.
elseif it_spfli-connid lt 800.
perform fill_cell using h 2 0 077099088 it_spfli-connid.
else.
perform fill_cell using h 2 0 246156138 it_spfli-connid.
endif.
if it_spfli-cityfrom cp 'S*'.
perform fill_cell using h 3 0 155155155 it_spfli-cityfrom.
elseif it_spfli-cityfrom cp 'N*'.
perform fill_cell using h 3 0 189111222 it_spfli-cityfrom.
else.
perform fill_cell using h 3 0 111230222 it_spfli-cityfrom.
endif.
if it_spfli-cityto cp 'S*'.
perform fill_cell using h 4 0 200200200 it_spfli-cityto.
elseif it_spfli-cityto cp 'N*'.
perform fill_cell using h 4 0 000111222 it_spfli-cityto.
else.
perform fill_cell using h 4 0 130230230 it_spfli-cityto.
endif.
if it_spfli-deptime lt '020000'.
perform fill_cell using h 5 0 145145145 it_spfli-deptime.
elseif it_spfli-deptime lt '120000' .
perform fill_cell using h 5 0 015215205 it_spfli-deptime.
elseif it_spfli-deptime lt '180000' .
perform fill_cell using h 5 0 000215205 it_spfli-deptime.
else.
perform fill_cell using h 5 0 115115105 it_spfli-deptime.
endif.
endloop.
EXCEL FILENAME
CONCATENATE SY-REPID '_' SY-DATUM6(2) '_' SY-DATUM4(2) '_'
SY-DATUM(4) '_' SY-UZEIT '.XLS' INTO FILENAME.
CALL METHOD OF H_MAP 'SAVEAS' EXPORTING #1 = FILENAME.
free object h_excel.
perform err_hdl.
FORM FILL_CELL *
sets cell at coordinates i,j to value val boldtype bold *
form fill_cell using i j bold col val.
call method of h_excel 'Cells' = h_zl
exporting
#1 = i
#2 = j.
perform err_hdl.
set property of h_zl 'Value' = val .
perform err_hdl.
get property of h_zl 'Font' = h_f.
perform err_hdl.
set property of h_f 'Bold' = bold .
perform err_hdl.
set property of h_f 'Color' = col.
perform err_hdl.
endform. "FILL_CELL
*& Form ERR_HDL
outputs OLE error if any *
--> p1 text
<-- p2 text
form err_hdl.
if sy-subrc <> 0.
write: / 'OLE-Automation Error:'(010), sy-subrc.
stop.
endif.
endform. " ERR_HDL
regards,
venkat -
I'm looking for a (MS or third party) tool with which I can create, publish and host webservice API's on a custom SQL database. For example a API which presents all customers, or validates a user login.
I prefer a tool that can be used without .NET programming skills, just using database scripts and queries.
Could somebody suggest a tool for this?
Many thank,
SlowytechUse Visual Studio (Microsoft Visual Studio Express 2013 for Web ) and the WebAPI framework. You can easily create REST endpoints for your data. You can even
use ODATA to enable RESTful queries over your data.
See
http://www.asp.net/web-api/overview/odata-support-in-aspnet-web-api
David
David http://blogs.msdn.com/b/dbrowne/ -
Just FYI, new blog post "Deploy BranchCache Content and Hosted Cache Servers Using Windows PowerShell" at
http://aka.ms/le85n3
Thanks -
James McIlleceGreat to see new BranchCache content out there!
We created a BranchCache info page to try to get all of the relevant info into one place for V1 and 2
http://2pintsoftware.com/microsoftbranchcache
thanks
Phil
Phil Wilcock http://2pintsoftware.com @2pintsoftware -
How to point at a word table using forms Ole and Word Document
Hello.
I like to know how to position at a word table and send data from a forms module using ole. I have done something similar before using bookmarks.It's easy and it works. My requirement now is to send data from a forms module to a word document, but this time, the word document will have bookmarks and a word table needs to be filled from data from the database. Just don't know how to get , access, reference the word table from forms.
I'm still using forms6i in C/S mode.
Help will be greatly appreciated ...!.
Best regards, Luis ...!Hi Luis,
The VBA code for updating the cell found at row three, column two of the first table, of the active document is as follows:
ActiveDocument.Tables(1).Cell(3,2).Select
Selection.TypeText("Hello, world!")I haven't time to convert it to OLE2, but hopefully it will at least give you an idea.
Eric Adamson
Lansing, Michigan -
i made a free website using iweb and my host is dropbox but it is not showing in every search engine,i have to use a proxy for my site to pop up
Possibly because dropbox is not really a proper webhost - it might be better if you went and signed up for proper web hosting from somewhere like http://www.godaddy.com or http://www.hostexcellence.com.
Have you told Google that you site exists? If not, then you need to do so - http://www.google.com/addurl. -
How is the performance of Mac Pro if i use it as host for windows and linux virtual machines.
How is the performance of Mac Pro if i use it as host for windows and linux virtual machines.
I am planning to buy a high performance PC to run my Windows and Linux servers as vitrual machines for my testing purposes.
Initially i planned to build my own computer with recommended configurations but considering space constaints and cooling factors i think Mac Pro can be a choice. But need some inputs if Mac pro (Intel Xeon E5, 12 GB RAM) is good for running virtual Machines.You could even run Windows natively and still run your VM servers.
I have seen reports and such on MacRumors and elsewhere - run Windows natively as well as VMs (can also do testing and run Mavericks in a VM under Mavericks)
The fast internal PCIe-SSD, plus 6 or 8 cores, and 32-64GB RAM. Of course for $5,000 for 8-core, some Thunderbolt storage and 32GB/64GB RAM you can buy some serious hardware. -
IWeb, Blogging and Comments when using a different Host
Hi
I have an iWeb site, using Google Domain name, and hosting services of Network Solutions. I want to add a Blog to my site but allow for comments. Currently, iWeb is telling me that comments are added only if I use my MobileMe account. Is there a way to have a blog in iWeb, publish through my current host and have a comment feature that will update properly without kinks? I am considering using Blogger (Google) but unsure of what to do. Any suggestions or realities are accepted! ThanksJust use Blogger or WordPress to create your blog and then you can place a link on your website to your blog. Either that or you can display your blog directly in your site by using iframe code.
Your other alternative is to use the iWeb blog and use something like http://www.intensedebate.com as a comment feature. You could include it on the same page as the blog or put it on a different page.
Personally, I don't like the iWeb blog, so I use WordPress for my blog and just keep a link to it from my site so that it goes straight to the blog and then opens in a new page. -
Extremely slow download (8 kbps) and using "show local-host" to troubleshoot
I have a USB device that gets firmware updates from the manufacture, the download of the firmware is very fast at other sites and at home except 1 site. I found the following difference on the 2 ASAs (one where the download is fast the other where the download is very slow and cannot be completed) using "sh local-host" command. I think the ESP connection is the problem but I am not sure why its there - and I can see the byte count increment very slowly. What would cause this connection to use ESP?
At the sites where the download is fast
DMZFW# sh local-host 10.51.40.18 connection
local host: <10.51.40.18>,
TCP flow count/limit = 1/unlimited
TCP embryonic count to host = 0
TCP intercept watermark = unlimited
UDP flow count/limit = 0/unlimited
Conn:
TCP Outside 70.42.140.65:80 inside 10.51.40.18:54632, idle 0:00:00, bytes 19480442, flags UIO
... ... (repeat the above command)
Conn:
TCP Outside 70.42.140.65:80 inside 10.51.40.18:54632, idle 0:00:00, bytes 24182974, flags UIO
At the site where the download is extremely slow (like 8 kbps)
DMZFW# sh local-host 10.1.40.74 connection
local host: <10.1.40.74>,
TCP flow count/limit = 1/unlimited
TCP embryonic count to host = 0
TCP intercept watermark = unlimited
UDP flow count/limit = 0/unlimited
Xlate:
PAT Global X.X.X.X(30020) Local 10.1.40.74(50582)
Conn:
ESP outside 70.42.140.65 inside 10.1.40.74, idle 0:02:48, bytes 0
TCP outside 70.42.140.65:80 inside 10.1.40.74:50582, idle 0:00:00, bytes 2308822, flags UIO
... ... (repeat the above command)
Conn:
ESP outside 70.42.140.65 inside 10.1.40.74, idle 0:02:51, bytes 0
TCP outside 70.42.140.65:80 inside 10.1.40.74:50582, idle 0:00:00, bytes 2318474, flags UIOI managed to run the test again a few minutes ago, was a bit quicker this time
Test1 comprises of two tests 1.
Best Effort Test: -provides background information.
Download Speed 7 Kbps 0 Kbps 2000 Kbps
Max Achievable Speed Download speedachieved during the test was - 7 Kbps For your connection, the acceptable range of speeds is 800-2000 Kbps.
Additional Information: Your DSL Connection Rate :2167 Kbps(DOWN-STREAM), 955 Kbps(UP-STREAM) IP Profile for your line is - 1911 Kbps
2. Upstream Test: -provides background information. Upload Speed 588 Kbps 0 Kbps 955 Kbps Max Achievable Speed >Upload speed achieved during the test was - 588 Kbps Additional Information: Upstream Rate IP profile on your line is - 955 Kbps This test was not conclusive and further testing is required.This might be useful for your ISP to investigate the fault. -
I am new to using Oracle, and I am trying to create an add/insert stored pr
I am new to using Oracle, and I am trying to create an add/insert stored procedure for a table. The PROD_CD and PLAN_CD fields in my table can have no value (empty or null) Can you please check my code and let me know what I am doing wrong?
Table definition:
CREATE TABLE DCWEB.USER_PLAN_PREFERENCE
USERID VARCHAR2(40) NOT NULL,
PROD_CD VARCHAR2(9) NULL,
PLAN_CD VARCHAR2(9) NULL,
STATE_LST VARCHAR2(2) NOT NULL,
STATE_NM VARCHAR2(40) NOT NULL,
LST_UPDATE_TS TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP NOT NULL
ALTER TABLE DCWEB.USER_PLAN_PREFERENCE
ADD CONSTRAINT USER_PLAN_PREFERENCE_XPK PRIMARY KEY (USERID, PROD_CD, PLAN_CD);
-- Grant/Revoke object privileges
grant select, insert, update, delete on DCWEB.USER_PLAN_PREFERENCE to HIGGIB1;
Stored Procedure Definition:
procedure setUserPlanPref (
userid in varchar2,
prod_cd in varchar2,
plan_cd in varchar2,
state_lst in varchar2,
state_nm in varchar2
is
currentTimestamp timestamp := current_timestamp;
begin
insert into user_plan_preference (userid, prod_cd, plan_cd, state_lst, state_nm, lst_update_ts)
values (upper(userid), upper(prod_cd), upper(plan_cd), upper(state_lst), upper(state_nm), currentTimestamp);
commit;
exception
when dup_val_on_index then
begin
update user_plan_preference up set
up.userid = upper(userid),
up.prod_cd = upper(prod_cd),
up.plan_cd = upper(plan_cd),
up.state_lst = upper(state_lst),
up.state_nm = upper(state_nm),
up.lst_update_ts = currentTimestamp
where up.userid = upper(userid)
and up.prod_cd = upper(prod_cd)
and up.plan_cd = upper(plan_cd);
commit;
exception
when others then
rollback;
end;
when others then
rollback;
end;
end;
INPUT DATA
I am unable to insert a record calling the stored procedure with values: DCWEB4578, , 2P, CA, CALIFORNIA but when I change to the string "NULL", the insert succeeds. When I try to call the stored procedure to update the inserted record with values: DCWEB4578, "NULL", 2P, CO, COLORODO the update does not happen since I still see the original record in the table. Please advise. Thanks in advance for your help.938319 wrote:
I am new to using OracleWelcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and ensure you've updated your profile with a real handle instead of "938319".
You'll get a faster, more effective response to your questions by including as much relevant information as possible upfront. This should include:
<li>Full APEX version
<li>Full DB/version/edition/host OS
<li>Web server architecture (EPG, OHS or APEX listener/host OS)
<li>Browser(s) and version(s) used
<li>Theme
<li>Template(s)
<li>Region/item type(s)
With APEX we're fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
Thanks for posting the complete code, it makes it so much easier to understand the problem, but always post code wrapped in tags<tt>\...\</tt> tags to preserve formatting and special characters.
and I am trying to create an add/insert stored procedure for a table.Does this have anything to do with APEX, for which this is the forum? General SQL & PL/SQL matters should be directed to the {forum:id=75} forum.
The PROD_CD and PLAN_CD fields in my table can have no value (empty or null) Can you please check my code and let me know what I am doing wrong?This:
commit;
exception
when others then
rollback;
end;
when others then
rollback;Remove it all.
Commits should be issued by end user/client software on completion of a transaction. This means <tt>commit;</tt> should almost never appear in PL/SQL code. The main exception to this is in <tt>dbms_job/secheduler</tt> scheduled processes that have no client or UI. If this code is executed from APEX, then APEX issues more than enough commits anyway.
exceptions are just a way of ensuring your code is buggy.<tt>when others</tt> exceptions are just a way of ensuring your code is buggy.
INPUT DATA
I am unable to insert a record calling the stored procedure with values: DCWEB4578, , 2P, CA, CALIFORNIA but when I change to the string "NULL", the insert succeeds. When I try to call the stored procedure to update the inserted record with values: DCWEB4578, "NULL", 2P, CO, COLORODO the update does not happen since I still see the original record in the table. Please advise. Thanks in advance for your help.With the <tt>commit</tt>s and <tt>when others...</tt> removed from the code you'll have a chance of seeing what's actually happening. Note that the entire procedure can be simplified by writing as a MERGE</tt> statement.
Maybe you are looking for
-
HT5312 Dear I forgot my security questions how to get it back please
Hi, Dear my name is saad al malki ; yesterday I purchased 15 $ and I add it to my account but when I purchase I face problem in the terms of purchasing I think you make undated and but some new terms dear I forgot my security questions & I want to re
-
I copied a form in Formscentral, now all references to the used logic have disappeared. How can i get these back? I am using a subscription based version.
-
Maximum number of events per audit log file must be greater than 0.
BOE-XI (R2) Windows Server 2003 Running AUDIT features on all services. Report Application Server (RAS) keeps giving the following error in the Windows Application Event Log. Maximum number of events per audit log file must be greater than 0. Defaul
-
My setup: Airport Extreme for internet with an Airport Express used only for Airtunes set to join the Extreme's network. This works fine. My problem is bandwidth. I have a MacPro with all my music on it down in my studio and my G4 15" PB in the livin
-
what is ment by new g/l functionalities in ecc6.0? how it differs from earlier versions. and provide me any other features for thsi.