How to add "open" file button in form 4.5
Hi all,
I want to add a button "open file" on the form (like any
application's "OPEN FILE" button, user can select the driver, dir
of the file located). Then the path of the file will stored in a
text box and then a procedure will open that file and read all
data of that file and it will insert the data into table.
I know it can be done easily by asking the user to type in the
path in the text box directly, but i want to add a "OPEN FILE"
button to do this.
Should U have any comment, pls tell me and help me!!
Thank for your help!!
Regards,
A beginer of Oralce developer/2000
null
HK, Cheung (guest) wrote:
: Hi all,
: I want to add a button "open file" on the form (like any
: application's "OPEN FILE" button, user can select the driver,
dir
: of the file located). Then the path of the file will stored in
a
: text box and then a procedure will open that file and read all
: data of that file and it will insert the data into table.
: I know it can be done easily by asking the user to type in
the
: path in the text box directly, but i want to add a "OPEN FILE"
: button to do this.
: Should U have any comment, pls tell me and help me!!
: Thank for your help!!
: Regards,
: A beginer of Oralce developer/2000
Hi,
I have done similar things with cmdlg.vbx (Common Dialog 16 bit
version) in Windows 3.11 as follows:
1. Create a VBX item
2. Open up Properties and set location of your cmdlg.vbx
3. Write a simple pl/sql such as FileOpen with a series of
Set_Property such as follows (example only):
VBX.Set_Property('<name of VBXItem>','<vbxproperty>','c:\temp');
where <vbxproperty> could be DialogTitle, InitDir, Filter etc.
(these can all be seen in Properties) depending on your
requirements.
Also, use
VBX.Set_Property('<name of VBXItem>','Flags','&H1800') to force
File Must Exist and Path Must Exist conditions when OPEN
and
VBX.Set_Property('<name of VBXItem>','CancelError','1') to trap
click on Cancel in the File Open dialog box.
4. To activate the File Open dialog box, use
VBX.Set_Property('<name of VBXItem>','Action','1');
5. To capture the selected filename, use
retFilename := VBX.Get_Property('<name of VBXItem>','Filename');
NB.
a) Instead of using '<name of VBXItem>', you could use Find_Item
and refer to its Handle. See VBX package spec.
b) All VBX properties are case-sensitive.
Will extract complete code and post it to you later.
Regards,
TP
null
Similar Messages
-
How to add a link button in system form?
how to add a link button in system form in the edit text?
HI
see the following code
This creates an item "55" caption, and exittext ("550") and creates linked button "51" linked to "550"
oItem = otmpform.Items.Add("55", SAPbouiCOM.BoFormItemTypes.it_STATIC)
With oItem
.Top = 315 + 30 + 15
.Left = 12
.Width = 100
.Specific.Caption = "Többlet"
End With
otmpform.DataSources.UserDataSources.Add("550", SAPbouiCOM.BoDataType.dt_SHORT_TEXT)
oItem = otmpform.Items.Add("550", SAPbouiCOM.BoFormItemTypes.it_EDIT)
With oItem
.Top = 315 + 30 + 15
.Left = 120
.Width = 100
.Specific.DataBind.SetBound(True, "", "550")
.AffectsFormMode = True
.Description = otmpform.Items.Item("55").Specific.Caption
.DisplayDesc = True
End With
oItem = otmpform.Items.Add("551", SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON)
With oItem
.Top = 316 + 30 + 15
.Left = 120 - 14
.Width = 13
.LinkTo = "550"
.Specific.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_GLAccounts
End With
Regards,
J. -
How To Open a subVi by pressing an "open file button",
I got this Readdatasubvi I want to run when I press a 'Open file' button in the main vi, Then The sub vi runs and a open file menu opens to choose a file to read from and plot out to a graph. It is working but how can I see the readDataSub VI as an application wich are running parallel with the main VI. It only runs in the background, and I cant see the plottet data Why????? The sub vi has a graph for the plotted data! but it never shows up!
an example is attached..
I'll appreciate any suggestions .
The stars are ofcourse waiting!
Regards
Zamzam
HFZ
Attachments:
Main.zip 35 KBHi,
i tweaked you example.
I guess that's what you're looking for.
Rainer
P.S.: I unchecked the "open frontpanel" in the vi properties. i open (close) the frontpanel using property nodes now.
Attachments:
Main1.vi 22 KB
ReadDataSub.vi 97 KB -
How to add image file while creating addon...pathsetup?
Hi friends,
i have a problem while creating addon.
while creating addon we can add all the files(.vb,xml).but if i add image files(.bmp,.jpg)they are not displayed in runtime.
--how to add image file while creating addon..?
we are useing SAP Business One 2005A(6.80.317)SP:01 PL:04Somebody knows like I can indicate to him to a button that I have in a form, that accedes to the image in the route where will settle addon? I have this, but it does not work to me
oButton.Image = IO.Directory.GetParent(Application.StartupPath).ToString & "\CFL.BMP" -
How to add PDF files into a slides? (Flash 8)
I am new to flash and I am using Macromedia Flash 8. My task is simple enough: I need create a Presentation with Screens from PDF files: I have 10-12 PDF files which I want convert into flash presentation.
I have read this tutorial:
http://w3.id.tue.nl/fileadmin/id/objects/E-Atelier/Phidgets/Software/Flash/fl8_tutorials.p df
Chapter 11: Basic Tasks: Create a Presentation with Screens.
I'm having trouble how to add PDF files into a slides: I want insert a whole pdf file as separate slide, without splitting pdf file into separate elements: pictures, text, etc. I tried import pdf file into Flash, wheen import there is shown prompt how program should process this pdf file(add in stage, library, as keyframes, etc) , not clear which option is correct for my task. What I got is pdf file splitted into multiple images, text, - which is not what I want. I want keep PDF files without changes, preserve original design and formatting, just convert this pdf into flash, so presentation will consist of PDFs organized in correct order, then add navigation buttons and some effects. How to solve this task?Just to avoid potential confusion... PDF is an Adobe format, but Flash 8 is/was not. Flash 8 came out before Adobe bought Macromedia. Even today, I don't believe anything has been done to accomodate direct integration of PDF content in Flash.
-
How to Add C3PO Toolbar Buttons with GroupWise in C#
Hello
i try How to Add C3PO Toolbar Buttons with GroupWise in C#. I do all like
i read here
http://support.novell.com/techcenter...a20000906.html
But i can see any result
i create file with Wizard(witout project)
Then i add this file to my EXE project
and add 2 button "Reg C3PO"(RegC3po();) and "Unreg C3PO"(UnRegC3po();)
and init
what i do wrong?
i try find ansver but find only this
http://newsportal.novell.com/article...sup.gwc3po#925
what its mean?
news:SR%Zg.16416$[email protected]:
about this question
http://newsportal.novell.com/article...sup.gwc3po#673
C3POs still don't work in the address book?
KirillKirill wrote:
> Hello and Merry Chritmas :)
>
> regsvr32 onlu for DLL. My project create EXE file :(
>
> Kirill
Ups......
You'll, according to the readme generated by your C3PO Wizard, have to run
Regasm.exe <your C3PO server>
That will create the needed regkeys...
Also, you might have to add the typelib wrapper and assambly to the GAC, bu typing:
Gacutil -i <your C3PO server>
Best Regards
Tommy Mikkelsen
IT Quality A/S
Denmark
Novell Developer Forums SYSOP
Please Report back any success or failure, That way we all learn
Sorry, but no support through email
"I hate bugs".......Tommy Lee Jones, MIB
Be a GroupWiseR, go http://www.groupwiser.net -
How to add ndf files in alwaysOn ?
HI All,
How to add ndf files in alwayson (database added in ag group).
Thank
VijayAs per me:In Always ON you can add the data without breaking by alter database statement the file path (including the drive letter) of a given secondary database be identical to the path of the corresponding primary database.
In case drive letter is different, follow steps mentioned in below link:
http://technet.microsoft.com/en-us/library/hh510190.aspx
Please click the Mark as answer button and vote as helpful if this reply solves your problem -
How to run batch file from oracle forms 9i
Hi everyone.
i have a data in csv file. i want to upload it to my database. i am using sql loader for it.
i have made a batch file which run the sql loader and transfer my data to database.
How to run batch file from oracle forms 9i.
when i press the button, nothing uploads in my database. (when i simply run the batch file it works).
here is my code
Begin
HOST('C:\temp\batchfile.bat');
message('done');
end;
Thanks in advance
regards
sajidthis is my log file, when i run manually.
SQL*Loader: Release 10.2.0.1.0 - Production on Thu Jul 1 23:27:53 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Control File: file_to_upload.ctl
There are 2 data files:
Data File: sk.csv
Bad File: sk.bad
Discard File: none specified
(Allow all discards)
Data File: sk1.csv
Bad File: sk1.bad
Discard File: none specified
(Allow all discards)
Number to load: ALL
Number to skip: 0
Errors allowed: 50
Bind array: 64 rows, maximum of 256000 bytes
Continuation: none specified
Path used: Conventional
Table KHAN, loaded from every logical record.
Insert option in effect for this table: APPEND
Column Name Position Len Term Encl Datatype
SR FIRST * , O(") CHARACTER
DATES NEXT * , O(") CHARACTER
AGENT NEXT * , O(") CHARACTER
COUNTRY NEXT * , O(") CHARACTER
TRANSACTIONS NEXT * , O(") CHARACTER
PKR NEXT * , O(") CHARACTER
USD NEXT * , O(") CHARACTER
BANK NEXT * , O(") CHARACTER
Table KHAN:
11088 Rows successfully loaded.
0 Rows not loaded due to data errors.
0 Rows not loaded because all WHEN clauses were failed.
0 Rows not loaded because all fields were null.
Space allocated for bind array: 132096 bytes(64 rows)
Read buffer bytes: 1048576
Total logical records skipped: 0
Total logical records read: 11088
Total logical records rejected: 0
Total logical records discarded: 0
Run began on Thu Jul 01 23:27:53 2010
Run ended on Thu Jul 01 23:27:54 2010
Elapsed time was: 00:00:00.63
CPU time was: 00:00:00.17 -
How to add audio files.
I'm using Premiere Elements 11 on my iMac. I can't for the life of me figure out how to add music files to the 8 or so that come with the program. Anybody else having this problem or am I just dumber than most?
Comstar 11 wrote:
As I put in my original post I might be dumber than most and that's still a possibility. I also tried the "Use Smartsound" same feeling that I didn't like the add on that just took me to another site to sell me music. I couldn't find the "Project Assets" box after looking almost everywhere. But..... I was in the "Quick" mode. Knowing I was a rank beginner I avoided the "Expert" tab. But after looking everywhere else I opened that tab and "It's A Miracle" there it was. Still stumbling through the learning process so thanks for your kind help. If I hit the wall again I'll make another post looking for help. Thanks Again.
I tried the Quick mode. When I did 'add media' in the upper left corner, video files went straigt to the project box. Then I tried an audio file and it went below the video in the project box. So, I see where in 'Quick' the 'Project Assets' box and step are skipped. Sorry about misleading you.
Either way, audio files get to the project box when you pick them up as a file on your computer.
There are two great sources to speed the learning process. lynda.com has courses that are like a personal demo of everything PrE does with a great coach explaining it. http://www.lynda.com/Premiere-Elements-tutorials/Up-Running-Premiere-Elements-11/109763-2. html A few if the chapters are free as a trial. The fee is $25 for a month of access. One month is more than enough if all you want is the one course.
If you prefere owning a course on a disk, video2brain is an alternative, but I don't think it is as thorough.
Bill
Bill -
How To Add ChooseFromList to UDO Default Form
Dear All,
I have one problem in UDO's (Master Data Type). I created one default form it's working fine but i want to add choosefrom list to this form how to add it is system created form.Please give me you suggestions.
thanks
MadhuGanjiC:\Program Files\SAP\SAP Business One SDK\Samples\COM UI\VB.NET\17.ChooseFromList
-
How can i open file from adobe reader..i already have adobe read
how can i open file from adobe reader..i already have adobe reader installed and cannot open a
file and i cannot convert my file into pdf..Is the file really a PDF? Where is it? Have you tried opening it from within Reader?
-
How do I open files in InDesign CS5.5 CS5?
How do I open files in InDesign CS5.5 CS5?
Hi, are you trying to open up a CS5.5 document in CS5? If so you need to export the docment while in InDesign CS5.5 to the IDML format.
Please refer to this document: http://help.adobe.com/en_US/indesign/cs/using/WSa285fff53dea4f8617383751001ea8cb3f-6d52a.h tml#WSa285fff53dea4f8617383751001ea8cb3f-6d4da -
How to add a custom button in WD screen to call a workflow in siebel?
Hi All,
We have a requirement to have a custom button at the summary screen(after the rule execution) "Create Opportunity", on clicking on it a new opportunity record should be created in Siebel. As we know the "Save" link calls "PolicyAutomationSaveSession" inbound web service method and saves the information in session table and we can modify the PreSession and PostSession workflows. But we are not sure how it calls the service method and where is the mapping defined.
Can you please help me on how to add a custom button and how to invoke a workflow in siebel side to implement this requirement?
Also is there any document which can help me to add a custom button in screen and to add the code behind the button?
Thanks in advance!!
Regards,
SubhradeepSubhradeep,
Closing a Web Determinations window is essentially the same as closing any HTML window. It involves javascript, which you would have to add to the Web Determinations templates.
Essentially the javascript command to close a window is {{window.close}} or {{top.close}}
For timing, you might be able to use the setTimeout function of Javascript (see: http://www.w3schools.com/jsref/met_win_settimeout.asp)
At the risk of exposing exactly how bad my javascript skills are, I have attached a super-simple html fragment, a page that closes itself after 3 seconds. It may help you get started in the right direction. In general closing a window is a fairly dubious activity and is often not permitted by certain browsers. This html page at least works in Internet Explorer.
<html>
<head>
<script language="JavaScript">
setTimeout(closeMe, 3000);
function closeMe() {
alert("This window will close");
top.close();
</script>
</head>
<body><B>This window will close in three seconds</B></body>
</html>
{code} -
How can I OPEN files I just downloaded? They're on the DOWNLOADS screen of Firefox but I can't open them even after double-clicking? And they're not on the FOLDERS as well. Even the right-click is not working ... the "open containing folder" does not work.
== This happened ==
Not sure how often
== ALWAYS! ==
== User Agent ==
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6.5; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2)Open Containing Folders is never active.
-
How to add the REFRESH button in OOPs ALV grid
how to add the REFRESH button in OOPs ALV grid
Hi Naidu.
Check the below code:
Local Class Definition and implementation For events handeling
CLASS LCL_EVENT DEFINITION .
PUBLIC SECTION.
METHODS :TOOLBAR FOR EVENT TOOLBAR OF CL_GUI_ALV_GRID
IMPORTING E_OBJECT,
USER_COMMAND FOR EVENT USER_COMMAND OF CL_GUI_ALV_GRID
IMPORTING E_UCOMM.
ENDCLASS.
CLASS LCL_EVENT IMPLEMENTATION.
METHOD TOOLBAR.
WA_TOOL-FUNCTION = 'ZFC1'.
WA_TOOL-TEXT = 'TEST'.
WA_TOOL-ICON = '@EA@'.
APPEND WA_TOOL TO E_OBJECT->MT_TOOLBAR.
ENDMETHOD. "DISPLAY
METHOD USER_COMMAND.
IF E_UCOMM = 'ZFC1'.
ENDIF.
ENDMETHOD. "USER_COMMAND
ENDCLASS. "LCL_EVENT IMPLEMENTATION
MODULE STATUS_0200 OUTPUT.
SET PF-STATUS 'ZALV_BTON'.
SELECT * FROM VBAK INTO TABLE GT_VBAK
UP TO 30 ROWS.
**** CREATE CONTAINER OBJECT
CREATE OBJECT MY_CONTAINER
EXPORTING
CONTAINER_NAME = 'CC1'
EXCEPTIONS
CNTL_ERROR = 1
CNTL_SYSTEM_ERROR = 2
CREATE_ERROR = 3
LIFETIME_ERROR = 4
LIFETIME_DYNPRO_DYNPRO_LINK = 5
OTHERS = 6 .
****** GRID TO CONTAINER
CREATE OBJECT ALV
EXPORTING
I_PARENT = MY_CONTAINER
EXCEPTIONS
ERROR_CNTL_CREATE = 1
ERROR_CNTL_INIT = 2
ERROR_CNTL_LINK = 3
ERROR_DP_CREATE = 4
OTHERS = 5.
CREATE OBJECT OBJ.
SET HANDLER : OBJ->TOOLBAR FOR ALV.
SET HANDLER : OBJ->USER_COMMAND FOR ALV.
****** ALV DISPLAY
CALL METHOD ALV->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
I_STRUCTURE_NAME = 'VBAK'
CHANGING
IT_OUTTAB = GT_VBAK[]
EXCEPTIONS
INVALID_PARAMETER_COMBINATION = 1
PROGRAM_ERROR = 2
TOO_MANY_LINES = 3
OTHERS = 4.
ENDMODULE. " STATUS_0200 OUTPUT
*& Module USER_COMMAND_0200 INPUT
* text
MODULE USER_COMMAND_0200 INPUT.
IF SY-UCOMM EQ 'BACK'.
LEAVE PROGRAM.
ENDIF.
ENDMODULE. " USER_COMMAND_0200 INPUT
Regards
Kumar M
Maybe you are looking for
-
When displaying images in web browser, next images appears on page where I left last doc
Hello, I am in need of some help here. I have an application that displays PDF images using Adobe Reader X v 10.1.4 through a web browser. What is happening is I view a document and scroll down to say page 2. When I leave that document and go the nex
-
Business Area vs Business Place
Dear All, Does anybody know if there is any relationship or configuration between business place and business area? l did not find anything in customizing. Also, when l run FS10N GL report, l see that the business place does not reflect in all open i
-
I enter password and username...why does it say my computer is not compatible with the ap store ??????
-
Someone please help before I go insane. Ok, I recently changed ISP's and with that came a new e-mail address. For the time being, I was using my old and new email until everyone is transitioned. My new ISP's webmail portal is brutal for the kind o
-
Toshiba Controls freeze Windows Explorer on Satellite L350D
Hey guys, my Toshiba Controls (Mute, play, stop, next and forward) buttons literally freeze Windows Explorer. I am not 100% sure if there is a driver that comes pre-installed, but if there is then could somebody point me in the right direction on how