PROBLEMS USING WEBUTIL_FILE_TRANSFER AND CLIENT_HOST COMMAND TO VIEW BLOB
I am using webutil_file_transfer.DB_To_Client_with_progress to retrieve a blob
from the database (that was saved in a word format) into a .doc file on the
client.
1st problem: The document that is being saved is not readable. It has all
kind of special characters in it.
Then using the client_host command, I open the document into ms word.
2nd problem: The document opens fine (again not readable in garbage
characters) but when I close the document, notepad pops up blank with nothing
in it.
Below is a sample of the code.:
PROCEDURE DOWNLOAD_DB IS
l_success boolean;
username varchar2(30);
document_name varchar2(20);
wordexe varchar2(20);
BEGIN
username := webutil_clientinfo.get_user_name;
document_name := 'wo'||:wod.fk_work_order_number||'.doc';
:locals.file_name := 'Documents and Settings\'||username||'\my documents\'||document_name;
l_success := webutil_file_transfer.DB_To_Client_with_progress
(clientFile => 'C:\'||:locals.file_name
,tableName => 'DEFECTS'
,columnName => 'DESCRIPTION'
,whereClause => 'FK_WORK_ORDER_DATE_ID = '||:DEF.FK_WO_DATE_ID
,progressTitle => 'Defect document being opened'
,progressSubTitle=> 'Please wait'
if l_success
then
CLIENT_HOST('cmd /c start /wait winword.exe C:\'||'"'||:locals.file_name||'"');
else
message('File download from Database failed');
end if;
exception
when others
then
message('File download failed: '||sqlerrm);
END;
Any ideas?
Hello,
I use this kind of code with 9i and 10g and it works fine with word, excel and any of windows files.
I think that, if the file is not correct, the cause may be the first save of the file in the database.
Which instruction did you use to save first the doc in the BLOB column ?
Francois
Similar Messages
-
I am trying to transfer music files from one PC to another using homeshare and although I can view the music as a shared folder I cannot initiate the "import" process. I have iTunes 11.0.1.12 on both computers so the help screenshots do not help as such
Then stop trying to use HomeShare and use one of the other options listed in the document from which your question was posted.
-
Webutil_file_transfer and host command doesn't work
I use a host command in forms to execute a sql-script, which creates a file on AS. After the host command I use webutil_file_transfer to ftp the created file to the client. If I try to do this again in the same session, the host command fails. I have to restart the application to get it working again. If I leave out the webutil_file_transfer I have no problems whatsoever. It looks like webutil is changing something perhaps in the environment. Anyone has the same problem (and a suitable solution)?
I can remove the files on AS (so there seems to be no lock). After removal of the files, no new files wil be created, even if I change the name of the file that needs to be created. Only restarting the application helps.
Raoul -
Example for Using WDR_SELECT_OPTIONS and SALV_WD_TABLE in one View
Hello,
I need an Example for Using the WD-Components WDR_SELECT_OPTIONS and SALV_WD_TABLE
in one view. Can anybody help me?
Thanks
TotoHello,
Please see these:
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3439404a-0801-0010-dda5-8c14514d690d]
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/21706b4b-0901-0010-7d93-c93b6394bc1d]
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/39c54fe7-0b01-0010-0eb6-d63ac2bdd637]
[/people/rich.heilman2/blog/2005/12/20/using-select-options-in-a-web-dynproabap-application]
[/people/thomas.jung3/blog/2005/12/21/webdynpro-abap-alv]
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3133474a-0801-0010-d692-81827814a5a1]
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bd28494a-0801-0010-45a3-fc359d82d3e8]
Regards. -
Dear Friend,
Whenever I am trying to transfer the report using WEBUTIL_FILE_TRANSFER.URL_To_Client_With_Progress the report is getting transfered from application server to client successfully. But when i am opening the report at clientside adobe reader is giving error "Adobe could not open file test1.pdf because it is either not a supported file type or because the file has been damaged".
But when i am seeing the report output in enterprise manager it is properly opening in pdf.
Please see the below code for your reference :
declare
v_rep varchar2(100);
v_rep_stat varchar2(200);
repid REPORT_OBJECT;
v_mode varchar2(1000);
xstatus boolean;
xclient_filename varchar2(1000) := 'e:\sam\new\test1.pdf';
xserver_filename varchar2(1000) := 'f:\dump\test1.pdf' ;
repid := find_report_object('r1');
set_report_object_property(repid,report_comm_mode,synchronous);
set_report_object_property(repid,report_execution_mode,batch);
set_report_object_property(repid,report_server,repserv);
set_report_object_property(repid,report_destype,file);
set_report_object_property(repid,REPORT_DESNAME,xserver_filename);
v_mode := ' mode=default';
set_report_object_property(repid,report_desformat,'pdf');
set_report_object_property(repid,report_filename,'test');
set_report_object_property(repid,report_other,v_mode);
v_rep := run_report_object(repid,plist);
v_rep_stat := report_object_status(v_rep);
if v_rep_stat = 'FINISHED' THEN
xstatus := WEBUTIL_FILE_TRANSFER.URL_To_Client_With_Progress('http://development:7778/reports/rwservlet?'||'&server='||repservername,xclient_filename,0,'Download','Save','Saving Output File');
if xstatus then
message('Report Generated Successfully');
message('Report Generated Successfully');
end if;
end if;
Please point out where is the problem. Its urgent.I can see at least one error in the line with URL_To_Client_With_progress. I haven't tried fetching PDF's this way myself, so I don't know if it will work, but in any case - you specify the reports server file name correctly, but there's no indication of the jobID to fetch the generated PDF for.
Does this work?
xstatus := WEBUTIL_FILE_TRANSFER.URL_To_Client_With_Progress('http://development:7778/reports/rwservlet/getjobid' || repid ||'&server='||repservername ,xclient_filename,0,'Download','Save','Saving Output File');
Jacob -
Problem using WEBUTIL_FILE_TRANSFER
I am using WEBUTIL_FILE_TRANSFER to load documents into a table and then open them for editing. I have followed the general form of the demos in WEBUTIL_DOC.fmb. I can transfer a document to the database and save it. I transfer the document back to the client for editing and resave it repeatedly.
However, when I add a second row to the table and add a second object, the first object seems to go away. When I try to transfer the first object back to the client for editing using DB_TO_CLIENT, I get WUT-110 LOB of zero length. The second object is okay.
Does anyone know why that would be happening?Harm,
I get the same error here, but my file is not being uploaded.
You need to provide a string to the progressSubtitle parameter of the client_to_as_with_progress function, not only ''.
This works for me.
HTH
Gerald -
Problem using jstl and displaytags
Hi all,
I am using display tags taglib for generation of table. One of the columns has to be shown with the hyperlink attached to it. In order to acheive this i am using jstl taglib together with displaytags
<display:table name="reportList" id="row" requestURI="viewengagementstatus.do" style="width: 100%;">
<display:column title="Period" sortable="true" style="text-align: center;" >
<a href="/jsps/reportsummary.do?eid=<c:out value="${row.eid}" />&reportId=<c:out value="${row.ReportID}" />&reportPeriod=<c:out value="${row.targetDate}"/> " target="_blank"><font size="1"><c:out value="${row.targetDate}"/></font></a>
</display:column>I am using jstl1.1.2.jar for jstl.
When i run this on Weblogic10 and windows OS i am able to view the results. On performing the view source on the IE window, i get the following:
<td style="text-align: center;">
<a href="/jsps/reportsummary.do?eid=78004&reportId=104093&reportPeriod=Nov-2008 " target="_blank"><font size="1">Nov-2008</font></a>
</td>but when the same code is run on the Weblogic deployed on the Linux machine, i am not getting the links and the name:
the view-source of the application deployed on the linux machine shows:
td style="text-align: center;">
<a href="/jsps/reportsummary.do?eid=&reportId=&reportPeriod=" target="_blank"><font size="1"></font></a>
</td>Any Ideas why this is occuring?
Any help would be appreciatedYou should be using the one or the other, not both. Since your actual code shows that you don't need the jstl/core_rt taglib (you're using the JSP EL ${ } in JSTL tags rather than scriptlets <%= %> ), just remove that taglib declaration and continue using the jstl/core taglib.
You should also rather place both the JSTL and standard JAR in the classpath of the application server. In case of Tomcat, put it in its /lib directory. Then remove all unnecessary JSTL and Standard JAR and TLD files from your whole webapplication project and also remove any related entries from the web.xml of your webapplication project. To use JSTL you only need to put the JAR files in the classpath of the application server and define the taglib in your JSP. Nothing less and nothing more. If you're using JSTL 1.2 rather than JSTL 1.1, then you need to remove the standard.jar file too since it is already merged in the jstl-1.2.jar file.
Oh, the web.xml should also be declared that way that the application server uses at least servlet 2.4. -
Any problem using bseg and bkpf tables
For fico details i using bseg and bkpf tables.
I noted that programming is very difficult because of these tables are cluster table.
plz give me other tables
if i using these tables any problem will come?>
mysvijai197715 wrote:
> Hi Aniesh,
>
> BSEG and BKPF are cluster tables. It contains transperant tables like BSIS, BSIK etc. For example to take vendor details usr the BSIK.If you use BSEG and BKPF it will take long time search. suppose your concern having lot of data means may be your server will get shutdown. So use only trasnperant tables like BSIS, BSIK etc.
>
>
> Regards
> R.Vijai
Incorrect. BKPF is a transparent table and not a cluster table and you can use it just like any other transparent table. BSEG is a cluster table but there is no problem selecting from it so long as you use the key of BUKRS, BELNR, GJAHR - unless you are selecting a very large amount of data, but then this can cause problems when selecting from any type of table.
The advantage of using BSEG over the other FI line item tables such as BSIS and BSIK is that it holds all the lines of an FI document while the others will hold only a subset eg BSIK will only hold lines that contain a vendor reference and BSAS holds only cleared GL account lines. Though you can only use it when you have the key. If you need to search on vendor, you can use BSIK as a starting point, but since I usually need to get hold of all the lines on an FI document, I then have to select from BSEG anyway. -
Color palette problems using Toolbar and ImageList ActiveX Controls
I'm using Toolbar and ImageList ActiveX controls to implement toolbar functionality in a top-level VI.
I designed the icons used in the toolbar with a 256 color palette. When I initially added the icon images to the ImageList control and ran the VI, the icons were properly displayed in the toolbar, as expected. After saving VI, exiting LabVIEW, and reloading, it appears that a different palette has been applied to the images in the ImageList control. I'm attaching a screenshot of the problem as well.
Has anyone encountered this type of problem before? Any suggestions you provide will be greatly appreciated.
Thanks,
Zach
Software Engineer
OnWafer Technologies, Inc.
www.onwafer.com
Attachments:
icon.zip 3 KBI'm using Toolbar and ImageList ActiveX controls to implement toolbar functionality in a top-level VI.
I designed the icons used in the toolbar with a 256 color palette. When I initially added the icon images to the ImageList control and ran the VI, the icons were properly displayed in the toolbar, as expected. After saving VI, exiting LabVIEW, and reloading, it appears that a different palette has been applied to the images in the ImageList control. I'm attaching a screenshot of the problem as well.
Has anyone encountered this type of problem before? Any suggestions you provide will be greatly appreciated.
Thanks,
Zach
Software Engineer
OnWafer Technologies, Inc.
www.onwafer.com
Attachments:
icon.zip 3 KB -
Is anyone using JDev 10.1.3.1.0 production release on a Macbook Pro? I am experiencing problems using the delete and space keys. The delete key no longer seems to work at all when using any of the key bindings including Default MacOS X. Using the spacebar also seems to have a conflict with the code completion feature. I am finding that the code completion always pops up when the space bar is used and no space is inserted with the editor. The space bar only works when used in conjuction with the shift key. Can anyone verify if they are able to use these keys in JDeveloper 10.1.3.1.0 on a Macbook Pro?
Thanks,
RichardThis was from the dmg file.
I found that in Preferences | Accelerators, Completion Insight lists 'Space' as an accelerator, right after 'CommandAIC'. Removing that fixed the problem, but I still can't fix the Delete issue.
The Delete action is assigned to the 'Delete' key, which is recognizes as the key combination fn-Delete. I tried to assign the Delete Previous Char to just the delete key, but pressing the Delete key while in the New Accelerator field is not recognized - it just pretends as if I had not pressed a key.
I'm looking at the the file:
jdevhome/system/oracle.jdeveloper.10.1.3.39.84/Default_macosx.kdf
trying to find entries for Delete and they are not in there - is there some other place I should be looking?
Thanks,
--ee -
Problems using Hotmail and Twitter in Firefox
I'm having problems using both Hotmail and Twitter in Firefox (and Google Chrome) but they both seem to work fine in Internet Explorer. I can log-in to both sites but in Hotmail the drop-down menus and links don't work, and in Twitter the stream does not appear at all.
I've tried everything: deleted cache, history, cookies, disabled add-ons etc... I've also tried re-installing both new and older versions of Firefox and I've still had no joy. If anybody has any ideas for a fix I'd really appreciate it. I can't stand using IE but I am forced to at the moment.My problem with Firefox & yahoo seems similar - so you are not alone.
-
Problems using MAX and PXI 8186 RT
Hi all !
I'm facing to problems using MAX
1) We have a 1GB switch in order to connect my PXI 8186 RT controller and the host PC, when i use this switch, and i try to access the cards plugged in the PXI card with MAX, MAX crash! When i use a 10/100 Mb switch everything is ok, i can access to the card without any problem ! I know the PXI 8186 controller is only fitted with a 10/100 Mb Ethernet card, but i think that must not be a problem , am i wrong ? Is this problem a known bug ??
2) I want to install all software used by my application on the host computer (in order to be able to reinstall the PXI8186 controller in case of a crash)! To do that i installed MAX 3.1.1, then all drivers NI-DAQmx 7.4, CAN2.2, VISA 3.3, and finally Labview RT 7.1 Embedded on my gost computer! After that i tried to download these software in the controller using MAX! The problem is these software are on the host computer (there are visible in system/ software) , but when i try to install them on the controller, max don't see them ! I tried to uninstall and re-install all software but no changes ... Is there a procedure or an order to install all these software ??? What should i do ???Hello,
The process to install software on RT controller is :
1/ Install LabVIEW Real-Time 7.1 on your host computer
2/ Install all driveres you need on your RT target
3/ On your host machine, in MAX, go to "remote targets"
4/ Expand "Software"
5/ Clik on "Install" button.
This application note will give you more details about above process.
Our controller is only provided with 10/100 MB network device. You have to check if you can configure your 1GB switch into 10/100 MB.
Regards,
Isabelle
Ingénieur d'applications
National Instruments France -
[SOLVED] problem with spaces and ls command in bash script
I am going mad with a bash script I am trying to finish. The ls command is driving me mad with spaces in path names. This is the portion of my script that is giving me trouble:
HOMEDIR="/home/panos/Web Site"
for file in $(find "$HOMEDIR" -type f)
do
if [ "$(dateDiff -d $(ls -lh "$file" | awk '{ print $6 }') "$(date +%F)")" -gt 30 ];
then echo -e "File $file is $(dateDiff -d $(ls -lh "$file" | awk '{ print $6 }') "$(date +%F)") old\r" >> /home/panos/scripts/temp;
fi
done
The dateDiff() function is defined earlier and the script works fine when I change the HOMEDIR variable to a path where there are no spaces in directory and file names. I have isolated the problem to the ls command, so a simpler code sample that also doesn't work correctly with path names with spaces is this:
#!/bin/bash
HOMEDIR="/home/panos/test dir"
for file in $(find "$HOMEDIR" -type f)
do
ls -lh "$file"
done
TIA
Last edited by panosk (2009-11-08 21:55:31)oops, brain fart. *flushes with embarrassment*
-- Edit --
BTW, for this kind of thing, I usually do something like:
find "$HOMEDIR" -type f | while read file ; do something with "$file" ; done
Or put those in an array:
IFS=$'\n' ; files=($(find "$HOMEDIR" -type f)) ; unset IFS
for file in "${files[@]}" ; do something with "$file" ; done
The later method is useful when elements of "${files[@]}" will be used multiple times across the script.
Last edited by lolilolicon (2009-11-09 08:13:07) -
Various problems using extension manager with command line
Hello all,
We are installing our plugins to CS4/5/5.1 version of Adobe Photoshop as part of our installer and allow the users to select specific versions of Photoshop to install the panel for. There are a few old problems that I wanted to rant about for quite some while and now with a whole bunch of problems that the 5.1 update introduced I feel I just have to voice them. I will limit it to PC only as it seems to be the most troubled platform
#1 As we cannot install our plugin only by using the Extension Manager (simply because it cannot handle all we've to do upon the installation) we have to run commands from within the our installer, non-interactively, of course.
The interface to command line installation is xmancommand.exe (or "Extension manager (Version). exe" - not sure whether it makes any difference. ). Now the first question is how to find this executable on the target machine, from an installer. Users may specify different locations to install the Creative Suite and it certainly does NOT have to be C:\Program Files\...(or %PRGRAMFILES% in general). ATM we are using an odd place in the registry to to find the path to the most recent Extension Manager but first its sometimes overwritten by another installation and in any case it only shows ONE version of the extension manager which of course cannot handle other versions (see #2)
#2 Why the most recent version of Adobe Extension Manager (5.5) cannot install the extension for 5.0? Well, install it actually does, however its disabled for CS5 and it seems that the only way to enable it on this platform is to find previous (CS5) extension manager and to enable it. Oh, actually no - it doesn't work! The only way that I found here working is to find CS5 extension manager first, install the extension there and then use CS5.5 extension manager to enable it. Why do I need both utilities to manage my extensions?!
#3 The program is severely lacking in documentation AND it doesn't produce reasonable output messages, so determining what it can actually support is a puzzle. For example, why "Dreamweaver CS5" is a correct product name and "Photoshop CS5" is not (don't different teams talk to each other)? Ok, lets forget the consistency, but how do I make the utility output the list of all products it supports, in their magic token form that it will actually be understood if passed in in the command line? By trial and error? This menthod btw is also extremely painful: nany times when specifying wrong parameters the program doesn't provide any output and just shrugs "whatever, go figure it yourself"...
#4 Why the only way to enable/disable an extension in Photoshop seems to be using magic "productfamily" keyword that is not even listed on Adobe's help page for command line options (here: http://help.adobe.com/en_US/extensionmanager/cs/using/WSB4845EDD-14E5-476a-B749-FF328830D1 4F.html).? E.g. "xmancommand.exe" -suppress -remove product=Photoshop extension=OurExtension" will ALWAYS fail with a lovely "'Photoshop is not supported by Extension Manager CS5.5." error; I've tried "PhotoshopCS5", "Photoshop CS5", "PhotoshopCS5.1" "Photoshop CS5.1", "Photoshop-12" (mentioned in examples section in http://help.adobe.com/en_US/extensionmanager/cs/using/packaging_extension.pdf ) and a whole bunch of other permutations - none seem to work (see #3). Magic "productfamily=Photoshop" does work. But then it only aims the current version ("CS5.1") and I need it to work for CS5 (I'm not even mentioning CS4...."). Would there be any suggestions?
Really, the question is, how do we, third-party developers, are supposed to interact with the command-line utility without knowing where it is, what product names is capable to work with and without being able to target specific platforms (i86 vs x64 anyone (http://forums.adobe.com/thread/672537)? CS5 vs CS5.1 (above)?). I don't know what your test cases are for the command line tool (if any!), but this is simply insane, folks, simply insane.I am sorry for the poor documentation of Extension Manager which causes you so much trouble.
1. You can use BridgeTalk API to ask specific version of Extension Manager to do something. There is sample in packaging_extension.pdf about this. You don't need to know the installation path of Extension Manager. One thing to note is that the value of bt.target is version specific, i.e. "exman-5.0", "exman-5.5" send this message to different version of Extension Manager, so you can change this value to install/enable/disable/remove extensions using different version of Extension Manager. More detailed documentation of BridgeTalk can be found by clicking "Help" menu then clicking "Javascript Tools Guide CS5" in "Adobe ExtendScript Toolkit CS5".
2. Specific version of Extension Manager only manage extensions for corresponding version of product. You should use Extension Manager CS5 to install extensions for Photoshop CS5. The reason that the extension you installed for Photoshop CS5.1 using Extension Manager CS5.5 is displayed for Photoshop CS5 in Extension Manager CS5 is that two versions of Photoshop specified the same directory for Extension Manager to manage extensions. This is a defect and will cause some problems if multiple versions of Photoshop co-existed in one machine. But "to find previous (CS5) extension manager and to enable it" should work for you, I guess you use command line to enable it and specify wrong product name (see #3) so that it doesn't work.
3. When using command line, you should specify "product" attribute with the name displayed at the left panel of Extension Manager. So "Photoshop CS5 32" is correct. Remember to enclose it with double quote because of existence of space character.
4. As above mentioned, use display name of Photoshop, and call proper version of Extension Manager by BridgeTalk. -
Changing WL port using pack and unpack Commands
Hi,
I am an experienced WL8 user, just starting with WL9.
I created a first domain relatively easily using "config.sh"; and after finishing this proof of concept thought that it might be a good idea to create a template from it for the rest of the guys here.
For that I used the ?pack? command, which works fine.
The completing ?unpack? command also seems to works fine.
The only thing is that I fail to locate any option to determine the server?s listen port (always sets to be 7001 like my original domain), and this is problem because we all work on the same linux machine.
The only option I found so far is to start the server on it original port (7001) and than change it using the admin console. This is not good enough since we want to use an automatic install wizard?
Did I miss something?
Is there any command line to help?
Or any other tips?
Your help is appreciated,
zilbiHi Again,
solved it using the WLST offline tool.
the script (customCmpDomain.py):
#=======================================================================================
# Open the domain template.
#=======================================================================================
readTemplate("cmpDomainTemplate.jar")
#=======================================================================================
# Change server's port
#=======================================================================================
cd('Servers/AdminServer')
set('ListenPort', 7080)
#=======================================================================================
# Open (unpack) the domain.
#=======================================================================================
writeDomain("/home/rami/domains/cmpDomain")
#=======================================================================================
# Close & Exit
#=======================================================================================
closeTemplate()
exit()
and just run it using 'weblogic.WLST'
thanks anyway!
zilbi
Maybe you are looking for
-
Os 10.2.8 drivers for lucent waveLAN/ieee wireless card
I can't believe I'm the first to ask this but my search came up empty. I have a Wallstreet P3, 233Mhz, with OS 10.2.8 installed; repartitioning the drive erased 9.2.2, for which I have no install disks. I just got a Lucent waveLAN card from eBay that
-
How do I undo a dual boot?
I have a machine running win 8.1. I used Keith Mayer's instructions to setup dual boot with server 2012 R2 core with Gui. I would like to undo this and return to single boot. I have tried to run Diskpart and find the Vdisk and detach it. The system s
-
Hi Experts, we are sending orders IDOC to seeburger through PI. The format on receiver side is XCBL the adapter I am using is AS2(receiver) so I want to clarify onething In the content type parameter i gave application/xcbl (for ex when we use edifac
-
OracleDecimal and ORA-22053: overflow error
I have found an unexpected behavior when converting OracleDecimal to integer values. // This is OK dec = (OracleDecimal)(Int32.MinValue + 1); Int32 i32 = (Int32)dec; // This results in // System.OverflowException: ORA-22053: overflow error dec = (Ora
-
Why can't I print my document at A0 or A1 on a Plotter?
Hallo (We use the adobe Reader We can´t Prin A0 or A1 PDF´s on the Plotter if the PDF is bigger then 7MB. What have we do: - Update the Adobe Reader - disable the Protected Mode - connect the Plotter with USB to the PC - Call HP but no Driverproblems