Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

forms v4.5- load BMP images using READ_IMAGE_FILE

Posted on 2001-07-11
11
Medium Priority
?
1,146 Views
Last Modified: 2008-03-10
this is what i want to do:
I have two buttons.

 The first one executes a query.
           execute_query;

 Then the next button  executes a series of FORMS_DDL statments.

forms_ddl ('DELETE FROM PY_SC_VACATION');
forms_ddl ('COMMIT');
forms_ddl ('read_image_file(''c:\dev2000 \step1.bmp'', ''BMP'', ''py_sc_vacation_control.image92'')');

I am trying to use the READ_IMAGE_FILE to display a BMP in the display item , called IMAGE92, in the PY_SC_VACATION_CONTROL block.

It does not work. So if anybody can shed some light on it for me as to possibly why, I would appreciate it.

Thank you
0
Comment
Question by:joekeri
11 Comments
 
LVL 1

Expert Comment

by:bkm
ID: 6274304
First of all, you don't needto use form_ddl for DML statements like SELECT, DELETE etc.

Also, why do yo uhave forms_ddl for the read_image_file built in ? It's a form built-in.

0
 

Author Comment

by:joekeri
ID: 6274323
what are your suggestions there that will do what I want?
0
 
LVL 1

Expert Comment

by:bkm
ID: 6274324
You can use
READ_IMAGE_FILE('c:\dev2000 \step1.bmp', 'BMP', 'py_sc_vacation_control.image92');

0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 1

Expert Comment

by:bkm
ID: 6274326
Also,

DELETE FROM PY_SC_VACATION;
COMMIT;

will work.
0
 

Expert Comment

by:vijayakumar_vs
ID: 6274358
FORMS_DDL is used when u require to execute any DDL statements in Forms. Since u cannot execute any DDL statements directly from a front-end tool like forms, this functionality is provided. To execute any DML statements like SELECT, DELETE, INSERT and UPDATE you need not use FORMS_DDL. Also reading a BMP file also does not require FORMS_DDL. Simply u can fire the following statements

DELETE FROM PY_SC_VACATION;
COMMIT;
read_image_file('c:\dev2000\step1.bmp','BMP', py_sc_vacation_control.image92');

These statements will do!! In case if it does not work try including the BMP file path 'c:\dev2000' in the autoexec.bat file, restart the machine and try.


0
 

Author Comment

by:joekeri
ID: 6274424
this change u suggested isnot working. the first button which executes_query, does not work now.

tell me how u would have a form which uses 2 buttons.

first button executes the query

the second button does a commit and then loads a BMP into a DISPLAY ITEM defined on the form.
0
 

Author Comment

by:joekeri
ID: 6274426
this change u suggested isnot working. the first button which executes_query, does not work now.

tell me how u would have a form which uses 2 buttons.

first button executes the query

the second button does a commit and then loads a BMP into a DISPLAY ITEM defined on the form.
0
 
LVL 1

Expert Comment

by:annu_vinayak
ID: 6275637
What seems to me is that the code for the first button is fine i.e. you can use 'execute_query' in that.

As button #2 is concerned in this case your code on that button should be like this: -


delete_record;
commit_form();
read_image_file(filename varchar, filetype varhcar, item_name varhcar);

hope this helps.
0
 
LVL 6

Expert Comment

by:Mindphaser
ID: 7038106
Please update and finalize this old, open question. Please:

1) Award points ... if you need Moderator assistance to split points, comment here with details please or advise us in Community Support with a zero point question and this question link.
2) Ask us to delete it if it has no value to you or others
3) Ask for a refund so that we can move it to our PAQ at zero points if it did not help you but may help others.

EXPERT INPUT WITH CLOSING RECOMMENDATIONS IS APPRECIATED IF ASKER DOES NOT RESPOND.

Thanks,

** Mindphaser - Community Support Moderator **

P.S.  Click your Member Profile, choose View Question History to go through all your open and locked questions to update them.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7053132
Lacking timely response from joekeri or contributing experts, but seeing that there is some useful info here, I recommend:

    Refund points and save as a 0-pt PAQ.

DanRollins -- EE database cleanup volunteer
0
 
LVL 1

Accepted Solution

by:
Moondancer earned 0 total points
ID: 7054091
Thanks, Dan.
I finalized this today and will monitor it in the event an adjustment is needed.
50 points refunded, question moved to our PAQ at zero points and closed.
Moondancer - EE Moderator
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question