Solved

forms v4.5- load BMP images using READ_IMAGE_FILE

Posted on 2001-07-11
11
1,117 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
Comment Utility
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
Comment Utility
what are your suggestions there that will do what I want?
0
 
LVL 1

Expert Comment

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

0
 
LVL 1

Expert Comment

by:bkm
Comment Utility
Also,

DELETE FROM PY_SC_VACATION;
COMMIT;

will work.
0
 

Expert Comment

by:vijayakumar_vs
Comment Utility
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:joekeri
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
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…

772 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now