Post Query(Image Problem)

Thanx to all of you and specially to
??Sajanka and Sudha all time good freind.
Problem: I want to load an image
with post query trigger on the block.
I am trying it by
filename:=get_file_name(PathVariable,FileFilter=>'*.*');
read_image_file(filename,'any','block.image_item');
But when the trigger is fired window's dialog box for the file is opened and I have to pick the file from the relative directory.
Please help me for this.
Again thanx!
Imran Amjad

Well me and Sanjana are the same ! Anyway the best way if it is possible is to keep all your image files in a separate directory and add that directory to the forms60path string in the registry, then all you need is the file name not the entire path.
Read_Image_File(file_name,'bmp',image_item);
If that is not possible then try changing the filter to the file name. See if that helps you. The first way is the best way to do.

Similar Messages

  • Post query trigger problem in master detail oracle forms

    Hello experts,
                        I am new in oracle forms n using Fission middleware 10g with oracle forms 11g at windows 7 platform.
    I have made a master detail form using a tab canvas.There is a database column STUDENTID and it is in my student tab with a TBL_STUDENTENTRY data block.Now I Have an another tab named previous_education with TBL_STUDENT_PREVIOU_EDU datablock here there is also a database column STUDENTID and corresponding field in my  previous_education TAB under TBL_STUDENT_PREVIOU_EDU  datablock.Now i want to add a display item to show  student name corresponding to STUDENTID.For this I have tried to make a select query in TBL_STUDENT_PREVIOU_EDU data block POPST_QUERY TRIGGER.
    begin
    select STUDENTNAME into :TBL_STUDENT_PREVIOU_EDU.STD_NM   from TBL_STUDENTENTRY where STUDENTID=:TBL_STUDENTENTRY.STUDENTID;
    end;
    But, This trigger is not fired at runtime,Please suggest me what is going wrong and give me the solution.
    Thank You
    AADITYA.

    http://www.club-oracle.com/forums/post_query-problem-in-oracle-forms-t9751/#post23794 ,  This is the link at where  I have tried to show my problem with the help of an image,Please get the link:
    thanx
    regards Aaditya.

  • Please verify my account so i can post an image of my problem. Thanks. Adam.

    Please verify my account so i can post an image of my problem. Thanks. Adam.

    All future people who find this thread - Click the link below and look for the current verification thread as a sticky:
    https://social.technet.microsoft.com/Forums/en-US/home?forum=reportabug
    EDIT: Clarification - accounts will be automatically verified after 15
    points have been accumulated.
    Don't retire TechNet! -
    (Don't give up yet - 13,225+ strong and growing)

  • Post query and lov problem

    I wonder if anyone can help me with this problem. I have a non database text item which holds a school name dependent on the school id. I have a post-query trigger to populate the school_name field so that the school_name is shown immediately. I also have a LOV on this field in case the school has to be updated.
    The problem I have is that when I query the data block the list of values pops up automatically and won't let me out of the screen until I have selected a school. I only want this LOV to appear when the user requests it.
    Can anyone advise me on how to get around this problem, maybe I'm using the wrong type of trigger?
    thanks,
    Ian

    In the LOV properties, set Automatic Display to false

  • LEFT OUTER JOIN, Problem in POST-QUERY TRIGGER

    Hi,
    Please guide for the following
    I wrote below query in POST-QUERY Trigger of a TABULAR DATA BLOCK, having only one text item, called INVENTORY_ITEM
    select c.cat||' '||s.subcat||' '||l1.lvl1 ITEM INTO :DATABLOCK.INVENTORY_ITEM
    from itemcat c
    LEFT OUTER JOIN itemsubcat s on (c.catid = s.catid)
    LEFT OUTER JOIN lvl1 l1 on (s.subcatid = l1.subcatid)
    When I compile the module an error is generated
    *" Encountered the symbol 'LEFT' when expecting one of the following ,; for group having intersect minus order start union where connect ".*
    Above query is working fine in ORACLE SQL DEVELOPER .
    Any solution please.
    Regards,

    Difference

  • Problem with post query trigger

    Hi,
    I have a multi record block and there is a post-query trigger on it. Based on values of this block I populate other values over the other control block.
    I wrote code in post-query trigger and when I execute the query and go to last but one record. The values in the control block are from last record instead of last but one record. Pls help me to fix
    Thanks,

    if you want to see the data in the control block synchronized with the database block then use the WHEN-NEW-RECORD-INSTANCE and not the POST-QUERY.
    with the POQ you add additional data (in non-basetable-items) to the records in the database block

  • Master-Detail Form - implementing some thing like Post-Query trigger

    Hi all,
    I am struggling to implement an eqivalent of a post-query trigger in Oracle Forms. Please bear with me as I am trying to explain in detail what the problem is.
    Here is my situation.
    I have three tables EMP, DEPT and LOCATION. I created a Master/Table pages on EMP and DEPT.
    Basic relationships.
    Each LOCATION has one or more DEPTs; Each DEPT is at one and only one LOCATION.
    Each DEPT has one ore more EMPs; Each EMP is assigned to only and only DEPT.
    Not getting too complicated, here are the table layouts:
    LOCATION:
    ID number(10,0) not null,
    NAME varchar2(20) not null
    DEPT
    ID number(10,0) not null,
    NAME varchar2(20) not null,
    LOC_ID number (10,0) not null foreign key from LOCATION
    EMP
    ID number(10,0) not null,
    NAME varchar2(20) not null,
    DEPT_ID number (10,0) not null foreign key from DEPT
    Assume I have all the constraints, BIU triggers, sequences defined properly.
    I am using the APEX page wizard to create a Master/Detail Form on DEPT and EMP. The first page is the Master Report on DEPT. I want to display the Location Name on this page also. Because the Master Report allows
    you to change the query, I was able to add the Location Name as part of the
    query. This was very simple.
    Select a.name "Department_Name",
    b.name "Location"
    from dept a, location b
    where a.loc_id = b.id
    Moving on, In the Master Detail Form, I would like to get the Location Name as part of the first Region (Dept Region).
    In this region, I would like to include the Location Name also. So my first region on the Master Detail form includes:
    Dept Id: ________
    Dept Name: _______
    Location Name: __________
    As Region are automatically populated using using a Fetch Row from EMP table (Automated Row Fetch) on an After Header process point, I don't have a way of including the Location as part of query. So I created a Region level Item called Location Name, made it Display only.
    In the old SQL*Forms, or Oracle Forms days, I used to use a Post-Query trigger, or Post-Change trigger to fire on the Loc_Id column to populate the Location Name. Simple fetch like:
    Select name
    into :P80_location_name
    from location
    where loc_id = :P80_loc_id
    However, I am struggling to implement some thing simple like this in APEX. Tried creating a processes, computatations etc, but nothing is working.
    I have seen some previous responses to fetching values from a foreign table
    using a button or AJAX script, but this should be very basic. What am I
    missing here?
    Appreciate any insights.
    Thanks.
    John

    Hi John,
    I'm not too familiar with the post-query triggers in Oracle Forms, but the use of a List of Values (LOV) on your LOCATION table might do the trick for you. If you create a dynamic LOV based on your LOCATIONS table, it can then be referenced by the LOC_ID item on the Master-Detail page, to display the Location Name. You could try doing the following:
    1. Create a new dynamic LOV, LOCATIONS, using a query similar to the following:
    select Name d, ID r
    from LOCATION
    order by 1
    2. Edit the "Create" button on the Master report page, and in the "Optional URL Redirect" section set "Request" to CREATE. Click Apply Changes, to save the setting.
    3. Edit the LOC_ID item on your Master-Detail page, and set the following:
    * in the "Name" region change the "Display As" setting to Select List
    * in the "Label" region change the Label to Location Name.
    * in the "List of Values" region set the "Named LOV" to LOCATIONS
    * in the "Read Only" section, set the condition to Request != Expression 1, and set Expression 1 to CREATE.
    Click Apply Changes to save the settings.
    When you run the pages now, the Location Name field will appear as Read-Only when editing a selected Master row. The item will appear as a Select List when the user clicks "Create" on the Master page, to create a new Master row.
    I hope this helps.
    Regards,
    Hilary

  • Image problem in V4.0

    Hi,
    Previously I had lots of problems with showing a BLOB image from a table
    in a report using the apex_util.get_blob_file_src function.
    Varad put me right on several ocassions: see the thread at
    Confusion with get_blob_file_src
    Eventually everything went well, and I got my images of a specific size on the screen.
    In the last month or two, the host database that I rent went up from version ten to version
    eleven, and the apex version changed too from 3.2.1 to some version of 4.
    I've only now discovered that the images don't display any more. I've re-read the thread
    mentioned above but can see no deviation from Varad's sterling advice. It still doesn't work,
    so my current guess is that something has changed when Apex went to its new version.
    Can anyone point me in the right direction regarding Image problems in version 4 ?
    I guess I'm not the first to experience such issues, and a checklist of things to try would
    be most welcome.
    I've done a View->Source on the page that doesn't work, and the issue with a missing value
    for the "d=" parameter on the apex_util.get_blob_file seems to have recurred:
    src="apex_util.get_blob_file?a=130&s=1718106956127950&p=13&d=&i=25615931827270369&p_pk1=5&p_pk2=&p_ck=947078FC54BB5126E7E0D19F8A24C416"
    Suggestions welcomed please; thankyou in advance.
    Mungo

    Hi Folks,
    I've found a solution to my "image" problem that caused this thread, hence the decent thing is to
    post it here.
    I read various other threads and stumbled across:
    PDF viewing with  apex_util.get_blob_file_src not working with 4.0
    PDF viewing with  apex_util.get_blob_file_src not working with 4.0 &# 4404695
    That thread mentioned the requirement for an "Automated Row FETCH" process as well as having
    an "Automated Row PROCESSING" process too.
    I had the latter, but didn't have the former, so throwing caution to the wind I tried adding a dummy
    Automated Row Fetch process and the damn thing worked!
    Haven't got a clue why on earth either of these are requirements on a page that is selecting data
    from the database - I don't understand where such processes are called in the big scheme of things.
    That's just me baiting some kind soul to spell out the fundamentals for this idiot... please?
    Happy to be corrected on any points.
    Regards until the next crisis...
    Mungo :-)
    P.S. How come there is no reasonable way to get the URL of a single post in a thread - I'd like to give
    reference to the single post that helped me, but all I seem to be able to get is the whole blooming thread.
    Suggestions?
    Edited by: MungoHenning on Sep 15, 2010 1:39 PM

  • Photosmart D110 All-In-One Printer - Shadow image problem

    I have been having a problem with this printer, ever since we purchased it about 2 months ago, where it will print a shadow image of text or pictures on some documets but not others. It is specific and consistent in that it will print this shadow image on some documents every time and on other documents none of the time. I have a PC and a Mac and it doesn't matter which computer I use, only which document. Sometimes it is only a part of a document, like the computer generated part of an email where it says " this person at this time on this date wrote.." but the other text will be fine. It happens on some coloring pages but not others. I spent  2 hours on the support line yesterday; it's still doing it. She had me unplug it, take off the printer software and reinstall it, update software (on my Mac)  and it did not fix it.  Any ideas on what may be causing this & how to fix it? I like the printer but am about to return it because of this problem.  The printer we had been using was an HP C4280 and did not have this problem. I'd like to keep the printer if I can fix this problem.

    I'm having the same shadow imaging problem on my Deskjet F4580, so if anyone knows how to correct it please post.. I've reinstalled/updated the driver, disabled advanced features, and deslected "Enable HP Real Life Technoliges".

  • POST-QUERY TRIGGER

    Hello.
    I'm a newbie here.
    I'm currently studying Oracle Form Builder and I'm a student.
    I've encountered this problem where I need to create a post-query trigger in a data block that counts a total number of rows in a particular item using a display item.
    I'm know I need to use the INTO clause to populate the display item but I got stuck.
    Please help.
    Thank you very much..

    First of all your code to calculate the total rows returned from a query is wrong.
    Try this one in a Post-Query Trigger
    DECLARE
    total_rows_returned NUMBER;
    BEGIN
    SELECT COUNT(*)
    INTO total_rows_returned
    FROM table_name;
    :block_name.display_item := total_rows_returned;
    END;
    Good Luck
    Saadat Ahmad
    Oracle Developer

  • Post-query trigger ? save changes?

    I have a similar problem to that posted by 'nova' on Dec. 27, 2000. I have a form generated by Designer. The problem is that upon subsequent querying (F8 pressed twice), it asks me if I want to save my changes, when I have not made any changes.
    I looked in the generated code for the post-query trigger and found SET_RECORD_PROPERTY(:SYSTEM.TRIGGER_RECORD, 'NEW_CUST', STATUS, QUERY_STATUS) which is apparently not the problem, according to this prior post. I am at a loss and have tried everything I could think of.
    What else could be causing this? I checked to see if there were any items being set in the property sheet to default values, and removed the defaults - that did not work.
    ??? I would greatly appreciate any assistance. Thanks.

    Hi Pina,
    my similar problem I have solved like this:
    Post-Record trigger:
    BEGIN
    *** this is important to test the record status - without this I had the same problem
    IF :SYSTEM.Record_Status='INSERT' THEN
    IF :TRANZIT_ZADAJ.ID_SADZBY_TV_PRENOSOV IS NULL THEN
    :TRANZIT_ZADAJ.ID_SADZBY_TV_PRENOSOV:=:SADZBY_ZADAJ.ID;
    END IF;
    END IF;
    END;
    You can check Pre-... and Post-... triggers
    if there are any items being set to any values.
    I hope this will help you.
    Helena

  • Post-query trigger order for data blocks in master detail relationship

    Using Forms [32 Bit] Version 10.1.2.2.0 (Production) Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production.
    I have the following problem with a form I am working on. It has a master data block with multiple detail data blocks. I am trying to create a post-query trigger on one of these detail blocks that will do a select using the value of a field from another of the detail blocks.
    The problem is that the post-query trigger of the data block I am trying to do the select with is firing before the post-query trigger of the block I need the value from is firing. I tested by just putting in a display message and having it return the value of the id I am tryign to use. Right after I do a query on the form, I get the messages saying:
    "Error: cannot find price for id:" and there is no id, and then the message from the other datablocks post-query saying, "id is: 123"
    Is there a way to change the order that the datablocks are queried? Or should I be using a different trigger to do this?

    Do you mean as it is displayed in the object navigator? It's not the first block under the data block section, but it is above the other block that is exceuting before it, so I assumed the order in that did not matter.
    EDIT: Thanks Magoo! That solved the issue.
    Edited by: a small rabbit on Sep 4, 2009 11:28 AM

  • How to stop trigger function when in post query?

    Hi All,
    I have a problem, not able to find the solution.
    I have created a form with 10 field items.
    For a field item called RECEIVED_15G, i have created a trigger:WHEN-VALIDATE-ITEM, it works fine as per my requirement.
    The problem is that i want this trigger to work only when i run the form , that when system is in NORMAL mode.
    I don't want this trigger to work after i do execute query, even here the system is in NORMAL mode.
    So how do i make it to work ??
    Is it possible to stop that trigger work after i click execute query (Something that i can code in Post query) ??
    Help me . Thank You.
    Oracle Forms 6i,
    Oracle DB 9i.

    Hi
    pls share with us the code my guess ; the When-Validate-Item (WVI) trigger is firing because you are setting a value in an item from post-Query Trigger>
    Note: just assign a name in a display item in post-query trigger DONT assign an id or any db item.
    Amatu Allah

  • Post query giving error

    Declare
    cursor fin_ACNTs IS
    SELECT aCODE,dr,cr,seq
    FROM acnts
    where CCODE = :xH_ccode
    and Tcode = :XH_tCODE
    aND tNO = :xh_Tno
    order by seq;
    total_rows NUMBER;
    the above query will return 2 or 3 rows. for example,
    aCODE DR CR SEq
    P30737 1907.600 .000 B1
    P30737 .000 1907.600 B2
    I have 3 rows wise control fields on my form canvas
    r1c1 r1c2 r1c3 r1c4
    r2c1 r2c2 r2c3 r2c4
    r3c1 r3c2 r3c3 r3c4
    & I want to Store the above query result in Such way that
    the 1st row returned should be saved in r1c1 r1c2 r1c3 r1c4
    and the 2nd row returned in r2c1 r2c2 r2c3 r2c4
    if the query returns 2 rows
    i tried to incorporate it in thiS way, but needs SOme help;
    declare
    cursor fin_ACNTs IS
    SELECT aCODE,dr,cr,seq
    FROM acnts
    where CCODE = :xH_ccode
    and Tcode = :XH_tCODE
    aND tNO = :xh_Tno
    order by seq;
    total_rows NUMBER;
    begin
    FOR i IN fin_ACNTs LOOP
    :ctrl.Rc1 := i.aCODE;
    :ctrl.R[i]C2 := i.dr;
    :ctrl.R[i]C3 := i.cr;
    :ctrl.R[i]C4 := i.seq;
    num_total_rows := fin_ACNTs%ROWCOUNT;
    END LOOP;
    end;
    while compling the trigger am getting the errors;
    Error 49 line 15 column 5
    Bad bind var :ctrl.R
    Error 103 line 15 column 5
    Encountered th symbol "[" when expecting one of the following
    := . ( @ % ; indicator

    TYVM, Mr. Kuba,
    those 4 rows r1c1....did get filled properly. I have now 1 more problem. about this form so,
    I have a columnar tables
    inventotry_header (Inv_head) and
    inventory_detail (Inv_detail)
    in post-database-commit i am saving some details in to a 3rd table, ACNTS
    Inv_head is linked to inv_detail thru primary-foreign key, table ACNTS is independant.
    i have joined inv_head==>ACNTs in forms.
    i wrote this post-query Suggested by you. i want to display ONLY the control fields r1c1.....
    derived from the acnts table in post query and keep acnts table fields hidden.
    the acnts table should just be saved in the background(in post-database-commit) and
    its values will be displayed on form thru the control fields.
    but when i make the visible property of the acnts table fields to "NO", the post query result does not display
    the control fields r1c1.... and on querying, at first record it gives error,
    FRM-40106 No navigable items in destinations block
    and why i dont want to use the acnts tables for display, because i want to assign & display the control fields
    as i enter the details in inv_head and inv_detail, in the sequence of r1c1 r1c2 r1c3 r1c4....
    which i dont think will be possible with acnts tables (which is a linked actual db table).
    hope i have made it clear.

  • Macbook pro retina ghost image problem

    I have heard about the burn-in problem on macbook pro retina display especially on LG screen. After I got my macbook retina for 3 months, the ghost image problem become really really unacceptable. After 4~5mins, the image on screen will burn in obviously for quite a long time. IT IS VERY OBVIOUS!! So I drop by apple store and find a genius, he did a persistence test on my macbook. The test is under a very low brightness, and I can not even know how he was operating. After 6 minutes, he said there is no burn-in problem. He explained that, if my macbook pass the test, it means my screen is within inspection. But I can tell if this screen is good, APPLE you should take a look at your inspection and change it RIGHT NOW. Everyone of my friend who have seen the problem on my screen says it is unacceptabe, how can it be within inspection? If anyone need a photo of that, i will provide.

    MoonnooM wrote:
    I have made an applecare call appointment. I'll post the result after I make the call. Thank you.
    Good work...
    Back-up all your data.
    If they replace your MacBookPro, you can avoid a service charge for runniing the back-up for you.

Maybe you are looking for

  • Aperture and Snow Leopard problems

    I have multiple issues with Aperture after upgrading to SL (currently on 10.6.2). The major issues are: (1) Whenever I import new images or make modification to existing images Aperture does not quit anymore. Command quit doesn't do anything and I ha

  • HT5957 My 4th generation ipod won't update and says iOS 6.1.3 is up to date

    My ipod isn't updating to any new update even though it's out and millions are using it. My ipod is connected to the internet and is a 4th generation. It just contiues to say iOS 6.1.3 is up to date. I have eveb tryed going though itunes store and on

  • How do I change the text color in a call out box?

    How do I change the text color in a call out box?

  • Red X

    i'm trying to built a wrestling website with the most profiles possible.  I download some of their pictures and i've out them on my site, each on two different pages.  My images were on the desk in front of me an dit was working fine.  But, I've deci

  • Rotating objects in a table

    I have dropped an object (picture) into a pages document. Then I rotated it with 90°. When I copy or drop the picture into the cell of a table, it is rotated back into the original orientation and I cannot rotate it any more. Is there a possibility t