Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

forms v4.5- load BMP images using READ_IMAGE_FILE

Posted on 2001-07-11
11
Medium Priority
?
1,141 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

 
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

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

718 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